aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbohu <bohu@google.com>2020-02-27 07:51:56 -0800
committerRoman Kiryanov <rkir@google.com>2020-05-07 13:15:36 -0700
commit4cbda82fdaf8035c5817b5704a9fa9208dbec90a (patch)
treee3d85ee1369334cafe57fc4cb0b8e62d7e9e6473
parenta7a1ee645f970d5d057411aaa33f9818777fc97c (diff)
downloaddevice_generic_goldfish-opengl-4cbda82fdaf8035c5817b5704a9fa9208dbec90a.tar.gz
device_generic_goldfish-opengl-4cbda82fdaf8035c5817b5704a9fa9208dbec90a.tar.bz2
device_generic_goldfish-opengl-4cbda82fdaf8035c5817b5704a9fa9208dbec90a.zip
goldfish-codecs: use 2560x2560 as largest resolution for vpx
This is needed for XL screen (2560x1440) BUG: 134087891 Test: presubmit Merged-In: Ia17938c1826a5b7bdb60bb42cff0a0ae86add318 Change-Id: I89f3d0f667177e7a4c05246d8ce3c5f56bf665c6
-rw-r--r--system/codecs/omx/vpxdec/GoldfishVPX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/codecs/omx/vpxdec/GoldfishVPX.cpp b/system/codecs/omx/vpxdec/GoldfishVPX.cpp
index e10dec23..5b9fb2db 100644
--- a/system/codecs/omx/vpxdec/GoldfishVPX.cpp
+++ b/system/codecs/omx/vpxdec/GoldfishVPX.cpp
@@ -56,7 +56,7 @@ GoldfishVPX::GoldfishVPX(
// arbitrary from avc/hevc as vpx does not specify a min compression ratio
const size_t kMinCompressionRatio = mMode == MODE_VP8 ? 2 : 4;
const char *mime = mMode == MODE_VP8 ? MEDIA_MIMETYPE_VIDEO_VP8 : MEDIA_MIMETYPE_VIDEO_VP9;
- const size_t kMaxOutputBufferSize = 2048 * 2048 * 3 / 2;
+ const size_t kMaxOutputBufferSize = 2560 * 2560 * 3 / 2;
initPorts(
kNumBuffers, kMaxOutputBufferSize / kMinCompressionRatio /* inputBufferSize */,
kNumBuffers, mime, kMinCompressionRatio);