Skip to content

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