Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa33da55 authored by Wonsik Kim's avatar Wonsik Kim Committed by Gerrit Code Review
Browse files

Merge "MediaCodecInfo: Change default alignment and block size to 1x1" into main

parents 7f444170 1c144d88
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -2651,11 +2651,10 @@ public final class MediaCodecInfo {
            mBlockAspectRatioRange = POSITIVE_RATIONALS;
            mAspectRatioRange      = POSITIVE_RATIONALS;

            // YUV 4:2:0 requires 2:2 alignment
            mWidthAlignment = 2;
            mHeightAlignment = 2;
            mBlockWidth = 2;
            mBlockHeight = 2;
            mWidthAlignment = 1;
            mHeightAlignment = 1;
            mBlockWidth = 1;
            mBlockHeight = 1;
            mSmallerDimensionUpperLimit = getSizeRange().getUpper();
        }