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

Commit d8c48101 authored by Vinay Kalia's avatar Vinay Kalia Committed by Wonsik Kim
Browse files

Codec2Buffer: vstride to match height



Make sure vstride matches height from the format to
accommodate apps with this assumption.

Bug: 198104271
Test: cts/media/device-small
Signed-off-by: default avatarVinay Kalia <vinaykalia@google.com>
Change-Id: I27db6483e74c0981a76f9c7dcd208ef9b31ad947
parent e72ff02b
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;