intel / libyami

Yet Another Media Infrastructure. it is core part of media codec with hardware acceleration, it is yummy to your video experience on Linux like platform.
Apache License 2.0
146 stars 106 forks source link

refact vc1 parser to make code more read able. #869

Closed xuguangxin closed 5 years ago

xuguangxin commented 5 years ago

Made following improvement:

  1. remove memory copy for rbdu, we only need few headers. And hw can handle emulation bytes by him self.Copy and remove emulation byte in the entire stream is unnecessary.
  2. isolate dpb and reference management logical to DPB class. it will make the code more readable..
  3. introduce RDBU class, to hide rdbu parser details.
xuguangxin commented 5 years ago

I will rebase this for new Nal reader changes