summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapitypes.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-01-06 15:10:36 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-01-13 17:31:54 +0100
commita24c52e4d0b3d0c168b30939aae406879c6c6a94 (patch)
tree40fcd88481d33409390d4a6846a164b576e2d569 /gst-libs/gst/vaapi/gstvaapitypes.h
parent076d75aeb89b2b7cc09a2297f8fa6ebecab6cf68 (diff)
downloadgst-vaapi-a24c52e4d0b3d0c168b30939aae406879c6c6a94.tar.gz
encoder: add rate control API.
Add gst_vaapi_encoder_set_rate_control() interface to request a new rate control mode for encoding. Changing the rate control mode is only valid prior to encoding the very first frame. Afterwards, an error ("operation-failed") is issued. https://bugzilla.gnome.org/show_bug.cgi?id=719529
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapitypes.h')
-rw-r--r--gst-libs/gst/vaapi/gstvaapitypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapitypes.h b/gst-libs/gst/vaapi/gstvaapitypes.h
index 771ad75d..159b85b3 100644
--- a/gst-libs/gst/vaapi/gstvaapitypes.h
+++ b/gst-libs/gst/vaapi/gstvaapitypes.h
@@ -144,6 +144,10 @@ typedef enum {
GST_VAAPI_RATECONTROL_VBR_CONSTRAINED,
} GstVaapiRateControl;
+/* Define a mask for GstVaapiRateControl */
+#define GST_VAAPI_RATECONTROL_MASK(RC) \
+ (1 << G_PASTE(GST_VAAPI_RATECONTROL_,RC))
+
G_END_DECLS
#endif /* GST_VAAPI_TYPES_H */