mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
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.
This commit is contained in:
parent
3b188666f1
commit
aa2563aecc
6 changed files with 27 additions and 8 deletions
|
|
@ -298,4 +298,13 @@ int ff_vaapi_encode2(AVCodecContext *avctx, AVPacket *pkt,
|
|||
int ff_vaapi_encode_init(AVCodecContext *avctx);
|
||||
int ff_vaapi_encode_close(AVCodecContext *avctx);
|
||||
|
||||
|
||||
#define VAAPI_ENCODE_COMMON_OPTIONS \
|
||||
{ "low_power", \
|
||||
"Use low-power encoding mode (only available on some platforms; " \
|
||||
"may not support all encoding features)", \
|
||||
OFFSET(common.low_power), AV_OPT_TYPE_BOOL, \
|
||||
{ .i64 = 0 }, 0, 1, FLAGS }
|
||||
|
||||
|
||||
#endif /* AVCODEC_VAAPI_ENCODE_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue