History

vaapi_encode: Add support for max QP in rate control

This was added in libva 2.1.0 (VAAPI 1.1.0). Use AVCodecContext.qmax, matching the existing behaviour for qmin, and clean up the defaults so that we only pass min/max when explicitly set.

Mark Thompson committed 8 years ago

Commit 8479f991 parent af532c97 files · +15 −2Browse files

Showing the changes to libavcodec/vaapi_encode_mpeg2.c (1 of 7 files). Show all

Unified · Split

libavcodec/vaapi_encode_mpeg2.c+2−0
@@ -672,6 +672,8 @@ static const AVCodecDefault vaapi_encode_mpeg2_defaults[] = { · 671 unmodified lines
672672 { "b_qfactor", "6/5" },
673673 { "b_qoffset", "0" },
674674 { "global_quality", "10" },
675+ { "qmin", "-1" },
676+ { "qmax", "-1" },
675677 { NULL },
676678 };
677679

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