History

vaapi_encode: Add common options between all encoders

The only common option here is low_power - it was previously supported for H.264 only, that specific option is removed.

Mark Thompson committed 8 years ago

Commit aa2563a1 parent 3b188666 files · +27 −8Browse files

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

Unified · Split

libavcodec/vaapi_encode.h+9−0
@@ -298,4 +298,13 @@ int ff_vaapi_encode2(AVCodecContext *avctx, AVPacket *pkt, · 297 unmodified lines
298298 int ff_vaapi_encode_init(AVCodecContext *avctx);
299299 int ff_vaapi_encode_close(AVCodecContext *avctx);
300300
301+
302+#define VAAPI_ENCODE_COMMON_OPTIONS \
303+ { "low_power", \
304+ "Use low-power encoding mode (only available on some platforms; " \
305+ "may not support all encoding features)", \
306+ OFFSET(common.low_power), AV_OPT_TYPE_BOOL, \
307+ { .i64 = 0 }, 0, 1, FLAGS }
308+
309+
301310 #endif /* AVCODEC_VAAPI_ENCODE_H */

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