mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
libs: encoder: objects: Add a reference flag
We can have p-frame as non-ref and also b-frame as ref which are not supported yet. Reference flag is the first machinery needed for more advanced reference picture selection modes. Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=788918
This commit is contained in:
parent
e1f9959eb5
commit
89717a447f
1 changed files with 6 additions and 2 deletions
|
@ -223,8 +223,9 @@ gst_vaapi_enc_huffman_table_new (GstVaapiEncoder * encoder, guint8 * data,
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
GST_VAAPI_ENC_PICTURE_FLAG_IDR = (GST_VAAPI_CODEC_OBJECT_FLAG_LAST << 0),
|
GST_VAAPI_ENC_PICTURE_FLAG_IDR = (GST_VAAPI_CODEC_OBJECT_FLAG_LAST << 0),
|
||||||
GST_VAAPI_ENC_PICTURE_FLAG_LAST = (GST_VAAPI_CODEC_OBJECT_FLAG_LAST << 1),
|
GST_VAAPI_ENC_PICTURE_FLAG_REFERENCE = (GST_VAAPI_CODEC_OBJECT_FLAG_LAST << 1),
|
||||||
|
GST_VAAPI_ENC_PICTURE_FLAG_LAST = (GST_VAAPI_CODEC_OBJECT_FLAG_LAST << 2),
|
||||||
} GstVaapiEncPictureFlags;
|
} GstVaapiEncPictureFlags;
|
||||||
|
|
||||||
#define GST_VAAPI_ENC_PICTURE_FLAGS GST_VAAPI_MINI_OBJECT_FLAGS
|
#define GST_VAAPI_ENC_PICTURE_FLAGS GST_VAAPI_MINI_OBJECT_FLAGS
|
||||||
|
@ -235,6 +236,9 @@ typedef enum
|
||||||
#define GST_VAAPI_ENC_PICTURE_IS_IDR(picture) \
|
#define GST_VAAPI_ENC_PICTURE_IS_IDR(picture) \
|
||||||
GST_VAAPI_ENC_PICTURE_FLAG_IS_SET(picture, GST_VAAPI_ENC_PICTURE_FLAG_IDR)
|
GST_VAAPI_ENC_PICTURE_FLAG_IS_SET(picture, GST_VAAPI_ENC_PICTURE_FLAG_IDR)
|
||||||
|
|
||||||
|
#define GST_VAAPI_ENC_PICTURE_IS_REFRENCE(picture) \
|
||||||
|
GST_VAAPI_ENC_PICTURE_FLAG_IS_SET(picture, GST_VAAPI_ENC_PICTURE_FLAG_REFERENCE)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstVaapiEncPicture:
|
* GstVaapiEncPicture:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue