h264: simplify reference picture marking process.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 31 Oct 2012 13:24:09 +0000 (14:24 +0100)
committerWind Yuan <feng.yuan@intel.com>
Fri, 16 Nov 2012 07:03:33 +0000 (15:03 +0800)
commit30e0a0d8169ea55154270fafe33f15188b0b05f9
tree03230a94b651bd1326542ddf7e8ac16f0bbdfced
parente7ac87cc96e0d099b393174cf73134688141b95d
h264: simplify reference picture marking process.

... to build the short_ref[] and long_ref[] lists from the DPB, instead
of maintaining them separately. This avoids refs/unrefs while making it
possible to generate the list based on the actual picture structure.

This also ensures that the list of generated ReferenceFrames[] actually
matches what reference frames are available in the DPB. i.e. short_ref[]
and long_ref[] entries are implied from the DPB, so there is no risk of
having "dangling" references.
gst-libs/gst/vaapi/gstvaapidecoder_h264.c