decoder: allow pictures to be cloned for field decoding.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 28 Mar 2012 14:05:58 +0000 (16:05 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 28 Mar 2012 16:58:27 +0000 (18:58 +0200)
commit195a61fa022b4d828d50c545ee4ac6f936ecbaf9
tree6c9aaa588f09b6c4aea08f09b70572c4a4ceb715
parentc27385aa8d74ffb33bc9a2bfe10103a2b80d25ba
decoder: allow pictures to be cloned for field decoding.

Add gst_vaapi_picture_new_field() function that clones a picture, while
preserving the parent picture surface. i.e. the surface proxy reference
count is increased and other fields copied as is. Besides, the picture
is reset into a "non-output" mode.
gst-libs/gst/vaapi/gstvaapicodec_objects.c
gst-libs/gst/vaapi/gstvaapicodec_objects.h
gst-libs/gst/vaapi/gstvaapidecoder_objects.c
gst-libs/gst/vaapi/gstvaapidecoder_objects.h