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

Commit e63e1471 authored by Vinay Kalia's avatar Vinay Kalia
Browse files

Revert "Codec2Buffer: vstride to match height"

This reverts commit d8c48101.

Reason for revert: There is a better way to fix this problem by updating the KEY_HEIGHT to correct value rather than changing the way data is copied.

Change-Id: Id5919fa62b3557f6218b51d117bcb472e0490d6e
parent fd124e4e
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -248,10 +248,7 @@ public:

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

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

        bool tryWrapping = !copy;