decoder: use POC to maintain the DPB.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 30 Mar 2012 15:03:28 +0000 (17:03 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 30 Mar 2012 15:08:37 +0000 (17:08 +0200)
commit75538bbc9bf116113248e39511ad261e7d651774
treeafcac14fe67b559dd65cc2102efa2f8cee3bdb3e
parentd51bb8748211f1ad90fcf49a87cbd7e930bfe5d9
decoder: use POC to maintain the DPB.

Introduce a POC field in GstVaapiPicture so that to store simpler sequential
numbers. A signed 32-bit integer should be enough for 1 year of continuous
video streaming at 60 Hz.

Use this new POC value to maintain the DPB, instead of 64-bit timestamps.
This also aligns with H.264 that will be migrated to GstVaapiDpb infrastructure.
gst-libs/gst/vaapi/gstvaapidecoder_dpb.c
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
gst-libs/gst/vaapi/gstvaapidecoder_objects.c
gst-libs/gst/vaapi/gstvaapidecoder_objects.h