diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-01-06 18:01:33 +0100 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-01-13 17:31:54 +0100 |
commit | 70b3600f115d737df876c6fab36319759b070000 (patch) | |
tree | 207b35bf68bb64744d0d308518d9bfc1c92e4e4f /gst-libs/gst/vaapi/gstvaapiencoder.h | |
parent | a24c52e4d0b3d0c168b30939aae406879c6c6a94 (diff) | |
download | gst-vaapi-70b3600f115d737df876c6fab36319759b070000.tar.gz |
encoder: add bitrate API.
Add gst_vaapi_encoder_set_bitrate() interface to allow the user control
the bitrate for encoding. Currently, changing this parameter is only
valid before the first frame is encoded. Should the value be modified
afterwards, then GST_VAAPI_ENCODER_STATUS_ERROR_OPERATION_FAILED is
returned.
https://bugzilla.gnome.org/show_bug.cgi?id=719529
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapiencoder.h')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.h b/gst-libs/gst/vaapi/gstvaapiencoder.h index 03305414..2fc3e74a 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder.h +++ b/gst-libs/gst/vaapi/gstvaapiencoder.h @@ -91,6 +91,9 @@ gst_vaapi_encoder_set_rate_control (GstVaapiEncoder * encoder, GstVaapiRateControl rate_control); GstVaapiEncoderStatus +gst_vaapi_encoder_set_bitrate (GstVaapiEncoder * encoder, guint bitrate); + +GstVaapiEncoderStatus gst_vaapi_encoder_put_frame (GstVaapiEncoder * encoder, GstVideoCodecFrame * frame); |