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

Commit 1665bc7a authored by Songyue Han's avatar Songyue Han Committed by Automerger Merge Worker
Browse files

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

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

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/3451205



Change-Id: Ife6fca3b2a9a3f4f7320cfc80c64986ba125d086
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents fd116f46 f4c149bb
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();
}