Commit 2283b942 by olly Committed by Ian Baker

Add AV1 support to the getCodecMaxInputSize function.

PiperOrigin-RevId: 445973162
parent ad25c2a8
......@@ -808,6 +808,8 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
maxPixels = Util.ceilDivide(width, 16) * Util.ceilDivide(height, 16) * 16 * 16;
minCompressionRatio = 2;
break;
case MimeTypes.VIDEO_AV1:
// AV1 does not specify a ratio so use the values from the platform's C2SoftAomDec.cpp.
case MimeTypes.VIDEO_VP8:
// VPX does not specify a ratio so use the values from the platform's SoftVPX.cpp.
maxPixels = width * height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment