History

vaapi_encode: Add flag to mark encoders supporting only constant-quality

And set it for MJPEG.

Mark Thompson committed 8 years ago

Commit fef21621 parent a7eda763 files · +6 −1Browse files

Showing the changes to libavcodec/vaapi_encode.c (1 of 3 files). Show all

Unified · Split

libavcodec/vaapi_encode.c+2−1
@@ -1277,7 +1277,8 @@ static av_cold int vaapi_encode_init_rate_control(AVCodecContext *avctx) · 1276 unmodified lines
1277 ctx->va_rc_mode = VA_RC_CQP;1277 ctx->va_rc_mode = VA_RC_CQP;
1278 return 0;1278 return 0;
1279 }1279 }
1280 if (avctx->flags & AV_CODEC_FLAG_QSCALE ||1280 if (ctx->codec->flags & FLAG_CONSTANT_QUALITY_ONLY ||
1281 avctx->flags & AV_CODEC_FLAG_QSCALE ||
1281 avctx->bit_rate <= 0) {1282 avctx->bit_rate <= 0) {
1282 if (rc_attr.value & VA_RC_CQP) {1283 if (rc_attr.value & VA_RC_CQP) {
1283 av_log(avctx, AV_LOG_VERBOSE, "Using constant-quality mode.\n");1284 av_log(avctx, AV_LOG_VERBOSE, "Using constant-quality mode.\n");

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