Tuning mediaformatshaper
-- allow per-resolution QPmax setting
-- additional tuning for Android 12 release
Bug: 183211971
Test: videoquality tests
Change-Id: I763c7f56016ab335b4f73fde1eda410991a8c7b5
diff --git a/media/libmediaformatshaper/VQApply.cpp b/media/libmediaformatshaper/VQApply.cpp
index 28ce43f..585ec6c 100644
--- a/media/libmediaformatshaper/VQApply.cpp
+++ b/media/libmediaformatshaper/VQApply.cpp
@@ -115,7 +115,7 @@
bool qpPresent = hasQpMax(inFormat);
// calculate a target QP value
- int32_t qpmax = codec->targetQpMax();
+ int32_t qpmax = codec->targetQpMax(width, height);
if (!qpPresent) {
// user didn't, so shaper wins
if (qpmax != INT32_MAX) {