mirror of
https://github.com/androidx/media.git
synced 2025-05-03 21:57:46 +08:00
Add a comment to explain the input size calculation.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=111833857
This commit is contained in:
parent
c6cdf7e083
commit
b7d5ce366a
@ -536,6 +536,7 @@ public class MediaCodecVideoTrackRenderer extends MediaCodecTrackRenderer {
|
||||
// Leave the default max input size.
|
||||
return;
|
||||
}
|
||||
// Estimate the maximum input size assuming three channel 4:2:0 subsampled input frames.
|
||||
int maxInputSize = (maxPixels * 3) / (2 * minCompressionRatio);
|
||||
format.setInteger(android.media.MediaFormat.KEY_MAX_INPUT_SIZE, maxInputSize);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user