chromeos / cros-codecs

BSD 3-Clause "New" or "Revised" License
30 stars 11 forks source link

`StatelessVideoDecoder` implementations for `StatelessDecoder` can be factorized? #77

Open Gnurou opened 5 months ago

Gnurou commented 5 months ago

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.