diff options
author | Mark Thompson <sw@jkqxz.net> | 2019-07-07 20:26:49 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2019-07-28 22:34:26 +0100 |
commit | 33871478605812a94502e33a6d1b965f71e6818a (patch) | |
tree | 0ab852ce17cf378ecdda0c74283e5d4852d080a7 /libavcodec/vaapi_encode_h265.c | |
parent | 62e6b634a8022c24d53d9c3c3ce958b20f55a5fe (diff) | |
download | ffmpeg-33871478605812a94502e33a6d1b965f71e6818a.tar.gz |
vaapi_encode: Add ROI support
Diffstat (limited to 'libavcodec/vaapi_encode_h265.c')
-rw-r--r-- | libavcodec/vaapi_encode_h265.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index 758bd40a37..538862a9d5 100644 --- a/libavcodec/vaapi_encode_h265.c +++ b/libavcodec/vaapi_encode_h265.c @@ -1102,6 +1102,8 @@ static av_cold int vaapi_encode_h265_configure(AVCodecContext *avctx) priv->fixed_qp_b = 30; } + ctx->roi_quant_range = 51 + 6 * (ctx->profile->depth - 8); + return 0; } |