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

Commit ec6acd63 authored by Songyue Han's avatar Songyue Han Committed by Gerrit Code Review
Browse files

Merge "Native CodecCapabilities: Change default alignment and blockSize to 1." into main

parents 5154a2ed b8904e56
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -492,11 +492,10 @@ void VideoCapabilities::initWithPlatformLimits() {
    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 = VideoSize::GetAllowedDimensionRange().upper();
}