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

Commit 2a8ba1d3 authored by Wonsik Kim's avatar Wonsik Kim Committed by Automerger Merge Worker
Browse files

Merge "Codec2Buffer: vstride to match height" into sc-dev am: 57571ed1 am: e15ad67a

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

Change-Id: I163effdc3b680779da90456cbfcb439ec8f66863
parents 5c6514ca e15ad67a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -248,7 +248,10 @@ public:

        // align width and height to support subsampling cleanly
        uint32_t stride = align(view.crop().width, 2) * divUp(layout.planes[0].allocatedDepth, 8u);
        uint32_t vStride = align(view.crop().height, 2);

        int32_t fmtHeight = mHeight;
        format->findInt32(KEY_HEIGHT, &fmtHeight);
        uint32_t vStride = align(fmtHeight, 2);

        bool tryWrapping = !copy;