decoder: h264: reduce ReferenceFrames entries to the essential set.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 3 Jun 2014 15:36:38 +0000 (17:36 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 6 Jun 2014 15:34:02 +0000 (17:34 +0200)
commit60af04901f770ea0b89dff678d61ef6af19ee776
tree663fe5ea03092263ff63e577d298266b96f8a915
parente670e3600709602ddc6a9db651cc18e91dba4a09
decoder: h264: reduce ReferenceFrames entries to the essential set.

When decoding Multiview High profile streams with a large number of
views, it is not possible to make the VAPictureParameterBufferH264.
ReferenceFrames[] array hold the complete DPB, with all possibly
active pictures to be used for inter-view prediction in the current
access unit.

So reduce the scope of the ReferenceFrames[] array to only include
the set of reference pictures that are going to be used for decoding
the current picture. Basically, this is a union of all RefPicListX[]
array, for all slices constituting the decoded picture.
gst-libs/gst/vaapi/gstvaapidecoder_h264.c