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

Commit b8904e56 authored by Songyue Han's avatar Songyue Han
Browse files

Native CodecCapabilities: Change default alignment and blockSize to 1.

aosp/3002925 has changed the Java implementation. This change is to
sync the native implementation with it.

Bug: 389120542
Test: NativeAMediaCodecInfoTest
Change-Id: I58d29235c11fa1f85b53ebe0c629e06ffc50cfa3
parent 3bb9ecfe
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -479,11 +479,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();
}