History

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.

Mark Thompson committed 8 years ago

Commit c5b4ad21 parent 16161068 files · +0 −33Browse files

Showing the changes to libavcodec/vaapi_encode.h (1 of 8 files). Show all

Unified · Split

libavcodec/vaapi_encode.h+0−11
@@ -113,9 +113,6 @@ typedef struct VAAPIEncodeContext { · 112 unmodified lines
113113 // Everything above this point must be set before calling
114114 // ff_vaapi_encode_init().
115115
116− // Codec-specific state.
117− void *priv_data;
118−
119116 // Configuration attributes to use when creating va_config.
120117 VAConfigAttrib config_attributes[MAX_CONFIG_ATTRIBUTES];
121118 int nb_config_attributes;
@@ -205,18 +202,10 @@ typedef struct VAAPIEncodeContext { · 83 unmodified lines
205202 int gop_counter;
206203 int p_counter;
207204 int end_of_stream;
208−
209− // Codec-local options are allocated to follow this structure in
210− // memory (in the AVCodec definition, set priv_data_size to
211− // sizeof(VAAPIEncodeContext) + sizeof(VAAPIEncodeFooOptions)).
212− void *codec_options;
213− char codec_options_data[0];
214205 } VAAPIEncodeContext;
215206
216207
217208 typedef struct VAAPIEncodeType {
218− size_t priv_data_size;
219−
220209 // Perform any extra codec-specific configuration after the
221210 // codec context is initialised (set up the private data and
222211 // add any necessary global parameters).

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t