diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-08-23 00:44:40 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-08-27 16:21:38 +0100 |
commit | c5b4ad247b9d691a4ebfb464633098368d7fbb4f (patch) | |
tree | 1272d1f0e2b39042bfd745fb83a599d342ec1081 /libavcodec/vaapi_encode.h | |
parent | 1616106f1168982c7a6e060512447d917cfd6076 (diff) | |
download | ffmpeg-c5b4ad247b9d691a4ebfb464633098368d7fbb4f.tar.gz |
vaapi_encode: Remove common priv_data and options fields
The codec-specific context now contains both the common context and the
codec-specific options directly.
Diffstat (limited to 'libavcodec/vaapi_encode.h')
-rw-r--r-- | libavcodec/vaapi_encode.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libavcodec/vaapi_encode.h b/libavcodec/vaapi_encode.h index bcb9d57371..c7370a17e2 100644 --- a/libavcodec/vaapi_encode.h +++ b/libavcodec/vaapi_encode.h @@ -113,9 +113,6 @@ typedef struct VAAPIEncodeContext { // Everything above this point must be set before calling // ff_vaapi_encode_init(). - // Codec-specific state. - void *priv_data; - // Configuration attributes to use when creating va_config. VAConfigAttrib config_attributes[MAX_CONFIG_ATTRIBUTES]; int nb_config_attributes; @@ -205,18 +202,10 @@ typedef struct VAAPIEncodeContext { int gop_counter; int p_counter; int end_of_stream; - - // Codec-local options are allocated to follow this structure in - // memory (in the AVCodec definition, set priv_data_size to - // sizeof(VAAPIEncodeContext) + sizeof(VAAPIEncodeFooOptions)). - void *codec_options; - char codec_options_data[0]; } VAAPIEncodeContext; typedef struct VAAPIEncodeType { - size_t priv_data_size; - // Perform any extra codec-specific configuration after the // codec context is initialised (set up the private data and // add any necessary global parameters). |