diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-03-28 14:24:40 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-03-28 17:59:19 +0200 |
commit | a7ec623279b6f63633df8f6f54581d85fc5deb35 (patch) | |
tree | ae4991a98cbe69d9a2d98b2a870dd99e64ec2bbc /gst-libs/gst/vaapi/gstvaapidecoder_objects.h | |
parent | b98d334dce30746df20787dfc8d0d7c4324ccaea (diff) | |
download | gst-vaapi-a7ec623279b6f63633df8f6f54581d85fc5deb35.tar.gz |
decoder: fix semantics of SKIPPED pictures.
If GstVaapiPicture has flag SKIPPED set, this means gst_vaapi_picture_output()
will not push the underlying surface for rendering. Besides, VC-1 skipped P-frame
has nothing to do with rendering. This only means that the currently decoded
picture is just a copy of its reference picture.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidecoder_objects.h')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidecoder_objects.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_objects.h b/gst-libs/gst/vaapi/gstvaapidecoder_objects.h index 6566fec0..c53492df 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_objects.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_objects.h @@ -101,6 +101,9 @@ enum { #define GST_VAAPI_PICTURE_FLAG_SET GST_MINI_OBJECT_FLAG_SET #define GST_VAAPI_PICTURE_FLAG_UNSET GST_MINI_OBJECT_FLAG_UNSET +#define GST_VAAPI_PICTURE_IS_SKIPPED(picture) \ + GST_VAAPI_PICTURE_FLAG_IS_SET(picture, GST_VAAPI_PICTURE_FLAG_SKIPPED) + #define GST_VAAPI_PICTURE_IS_REFERENCE(picture) \ GST_VAAPI_PICTURE_FLAG_IS_SET(picture, GST_VAAPI_PICTURE_FLAG_REFERENCE) |