summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_encode.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-09-18 23:30:45 +0100
committerMark Thompson <sw@jkqxz.net>2018-09-23 14:42:33 +0100
commitaf532c921575eb8ee805cc2c64a914f6302442e1 (patch)
tree374d7b38b0f404530c2102cda7e77c947d57b354 /libavcodec/vaapi_encode.h
parent2562dd9e7831743ba6dc5680501fb7d26a2ec62c (diff)
downloadffmpeg-af532c921575eb8ee805cc2c64a914f6302442e1.tar.gz
vaapi_encode: Clean up rate control configuration
Query which modes are supported and select between VBR and CBR based on that - this removes all of the codec-specific rate control mode selection code.
Diffstat (limited to 'libavcodec/vaapi_encode.h')
-rw-r--r--libavcodec/vaapi_encode.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/vaapi_encode.h b/libavcodec/vaapi_encode.h
index 30c3f7fbec..e61e900e8d 100644
--- a/libavcodec/vaapi_encode.h
+++ b/libavcodec/vaapi_encode.h
@@ -116,8 +116,6 @@ typedef struct VAAPIEncodeContext {
// Use low power encoding mode.
int low_power;
- // Rate control mode.
- unsigned int va_rc_mode;
// Supported packed headers (initially the desired set, modified
// later to what is actually supported).
unsigned int va_packed_headers;
@@ -138,6 +136,10 @@ typedef struct VAAPIEncodeContext {
VAProfile va_profile;
// Encoding entrypoint (VAEntryoint*).
VAEntrypoint va_entrypoint;
+ // Rate control mode.
+ unsigned int va_rc_mode;
+ // Bitrate for codec-specific encoder parameters.
+ unsigned int va_bit_rate;
// Configuration attributes to use when creating va_config.
VAConfigAttrib config_attributes[MAX_CONFIG_ATTRIBUTES];