Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StatelessVideoDecoder implementations for StatelessDecoder can be factorized? #77

Open
Gnurou opened this issue Jun 13, 2024 · 0 comments

Comments

@Gnurou
Copy link
Collaborator

Gnurou commented Jun 13, 2024

We have one implementation per codec, with many methods that are strictly identical. We should be able to factorize this by implementing the methods that differ as regular methods of StatelessDecoder, and having a single StatelessVideoDecoder impl block that calls these.

next_event would probably require another trait method on the decoder device.

Gnurou added a commit that referenced this issue Jun 16, 2024
These implementations do essentially the same thing, only with a different
format change callback, so factorize the common behavior into a single
method taking the callback as argument.

This has the benefit of performing the state change in a single place,
which is less error-prone.

Helps with issue #77.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant