History

vaapi_encode: Clean up the packed header configuration

Add a larger warning more clearly explaining the consequences of missing packed header support in the driver. Also only write the extradata if the user actually requests it via the GLOBAL_HEADER flag.

Mark Thompson committed 8 years ago

Commit 851a63c1 parent bf726c28 files · +80 −68Browse files

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

Unified · Split

libavcodec/vaapi_encode.h+4−3
@@ -116,9 +116,8 @@ typedef struct VAAPIEncodeContext { · 115 unmodified lines
116116 // Use low power encoding mode.
117117 int low_power;
118118
119− // Supported packed headers (initially the desired set, modified
120− // later to what is actually supported).
121− unsigned int va_packed_headers;
119+ // Desired packed headers.
120+ unsigned int desired_packed_headers;
122121
123122 // The required size of surfaces. This is probably the input
124123 // size (AVCodecContext.width|height) aligned up to whatever
@@ -140,6 +139,8 @@ typedef struct VAAPIEncodeContext { · 15 unmodified lines
140139 unsigned int va_rc_mode;
141140 // Bitrate for codec-specific encoder parameters.
142141 unsigned int va_bit_rate;
142+ // Packed headers which will actually be sent.
143+ unsigned int va_packed_headers;
143144
144145 // Configuration attributes to use when creating va_config.
145146 VAConfigAttrib config_attributes[MAX_CONFIG_ATTRIBUTES];

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