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
12771277 ctx->va_rc_mode = VA_RC_CQP;
12781278 return 0;
12791279 }
1280− if (avctx->flags & AV_CODEC_FLAG_QSCALE ||
1280+ if (ctx->codec->flags & FLAG_CONSTANT_QUALITY_ONLY ||
1281+ avctx->flags & AV_CODEC_FLAG_QSCALE ||
12811282 avctx->bit_rate <= 0) {
12821283 if (rc_attr.value & VA_RC_CQP) {
12831284 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