Skip to content

Add generic ActionType to Codec struct #105

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FreezyLemon
Copy link
Contributor

It's becoming a bit much boilerplate, but I think this could help in the long run.

  • Allows removing src/traits.rs because we already know if a codec can en-/decode based on the generics
  • Later, if AVCodecContext gets reworked, we can carry this information with us
    -> we can simplify the API by making only things available that make sense for the current state (frame rate only for video, sample rate only for audio, X only for decoding, Y only for encoding etc.)

Dictionary also needs a rework I think.. this disown / own pattern is a bit sketchy

This allows removing the Encoder/Decoder traits in src/traits.rs.
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

Successfully merging this pull request may close these issues.

1 participant