decoder: vp9: Fix the context and surface pool reset for multi resolution video
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 13 Nov 2015 17:23:05 +0000 (19:23 +0200)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 13 Nov 2015 17:23:05 +0000 (19:23 +0200)
commita48eebefd63b37b842f45d2e8a040a0e2c57a36f
tree26b9041f1704b9b30efef96d6dfbf3daaef477d2
parent4aa523f8b426eadd16990978a75c73404b4ecce0
decoder: vp9: Fix the context and surface pool reset for multi resolution video

Unlike other decoders, vp9 decoder doesn't need to reset the
whole context and surfaces for each resolution change. Context
reset only needed if resolution of any frame is greater than
what actullay configured. There are streams where a bigger
resolution set in ivf header or webm header but actual resolution
of all frames are less. Also it is possible to have inter-prediction
between these multi resolution frames.
gst-libs/gst/vaapi/gstvaapidecoder_vp9.c