Skip to content
  • Sreerenj Balachandran's avatar
    msdk: dec: Add non-packetized stream handling support · 55c0d720
    Sreerenj Balachandran authored
    The gst-msdk decoders prefer packetized streams as input
    and in this case we can avoid unnecessary input bitstream copy
    to mfxBitstream. This works fine for codecs like h264 where
    we only support byte-stream with au alignment. Other format
    conversions should be done thorugh parsers. But this won't work
    for codecs like vc1 where we don't have an autoplugged parser.
    Even the parser is not capable to do format conversions.
    
    Packetizing through base decoders parse() routine will bring a
    lot of uncecessary of complexities and codecparser libraray dependency.
    So we just use an interal gst_adaper to keep track of bitstream
    which is not consumed by msdk durig AsynchronusDecoding.
    This adapter will get used only if subclass implementations
    set the "is_packetized" to FALSE for msdk base encoder.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792589
    55c0d720