diff options
author | Mark Thompson <sw@jkqxz.net> | 2019-07-07 22:26:49 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2019-07-29 00:34:26 +0300 |
commit | 33871478605812a94502e33a6d1b965f71e6818a (patch) | |
tree | 0ab852ce17cf378ecdda0c74283e5d4852d080a7 /libavcodec/vaapi_encode_h264.c | |
parent | 62e6b634a8022c24d53d9c3c3ce958b20f55a5fe (diff) |
vaapi_encode: Add ROI support
Diffstat (limited to 'libavcodec/vaapi_encode_h264.c')
-rw-r--r-- | libavcodec/vaapi_encode_h264.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c index d1427112ea..f4965d8b09 100644 --- a/libavcodec/vaapi_encode_h264.c +++ b/libavcodec/vaapi_encode_h264.c @@ -1130,6 +1130,8 @@ static av_cold int vaapi_encode_h264_configure(AVCodecContext *avctx) } } + ctx->roi_quant_range = 51 + 6 * (ctx->profile->depth - 8); + return 0; } |