summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-01-23 15:13:06 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-01-23 15:48:58 +0100
commit4481c155b8726190dfb466dc0b9d2fb41d92ae12 (patch)
treeec2e77d1e0e21462a3de24e03c934907e96cb6f1 /gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
parent1dc9837dd99e0418c083d9bd358d488ded40ba94 (diff)
encoder: notify the encoder of the submitted packed headers.
Make sure to configure the encoder with the set of packed headers we intend to generate and submit. i.e. make selection of packed headers to submit more robust.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
index d9938cb1..45363653 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
@@ -50,6 +50,11 @@
#define SUPPORTED_TUNE_OPTIONS \
(GST_VAAPI_ENCODER_TUNE_MASK (NONE))
+/* Supported set of VA packed headers, within this implementation */
+#define SUPPORTED_PACKED_HEADERS \
+ (VA_ENC_PACKED_HEADER_SEQUENCE | \
+ VA_ENC_PACKED_HEADER_PICTURE)
+
static gboolean
gst_bit_writer_write_sps (GstBitWriter * bitwriter,
const VAEncSequenceParameterBufferMPEG2 * seq_param);