mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add AV1 support to the getCodecMaxInputSize function.
PiperOrigin-RevId: 445973162
This commit is contained in:
parent
ad25c2a8c3
commit
2283b9425e
1 changed files with 2 additions and 0 deletions
|
|
@ -808,6 +808,8 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
||||||
maxPixels = Util.ceilDivide(width, 16) * Util.ceilDivide(height, 16) * 16 * 16;
|
maxPixels = Util.ceilDivide(width, 16) * Util.ceilDivide(height, 16) * 16 * 16;
|
||||||
minCompressionRatio = 2;
|
minCompressionRatio = 2;
|
||||||
break;
|
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:
|
case MimeTypes.VIDEO_VP8:
|
||||||
// VPX does not specify a ratio so use the values from the platform's SoftVPX.cpp.
|
// VPX does not specify a ratio so use the values from the platform's SoftVPX.cpp.
|
||||||
maxPixels = width * height;
|
maxPixels = width * height;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue