summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapiencoder_priv.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-01-23 15:10:11 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-01-23 15:48:58 +0100
commit1dc9837dd99e0418c083d9bd358d488ded40ba94 (patch)
treeb5ed79386ba1044e5e78d95284fc5e674131a1df /gst-libs/gst/vaapi/gstvaapiencoder_priv.h
parent14ad694fdcd10035f4e62714d322d1f2beb59f19 (diff)
encoder: fix and factor out check for supported rate-control modes.
Cache the first compatible GstVaapiProfile found if the encoder is not configured yet. Next, factor out the code to check for the supported rate-control modes by moving out vaGetConfigAttributes() to a separate function, while also making sure that the attribute type is actually supported by the encoder. Also fix the default set of supported rate control modes to not the "none" variant. It's totally useless to expose it at this point.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapiencoder_priv.h')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_priv.h b/gst-libs/gst/vaapi/gstvaapiencoder_priv.h
index 61067588..96b0d1e4 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_priv.h
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_priv.h
@@ -224,6 +224,8 @@ struct _GstVaapiEncoder
GstVaapiVideoPool *codedbuf_pool;
GAsyncQueue *codedbuf_queue;
guint32 num_codedbuf_queued;
+
+ guint got_rate_control_mask:1;
};
struct _GstVaapiEncoderClassData