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

Commit 16b6cdc9 authored by Angela Stegmaier's avatar Angela Stegmaier Committed by android-build-merger
Browse files

Merge "Fix TIYUV420PackSemiPlanor color converter to use src crop"

am: cb3046d0

Change-Id: I17b4f367bd1d95dee31297b0b31b0d6e6843cef7
parents 2b82a9a1 cb3046d0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -577,7 +577,8 @@ status_t ColorConverter::convertTIYUV420PackedSemiPlanar(
    uint16_t *dst_ptr = (uint16_t *)dst.mBits
        + dst.mCropTop * dst.mWidth + dst.mCropLeft;

    const uint8_t *src_y = (const uint8_t *)src.mBits;
    const uint8_t *src_y =
        (const uint8_t *)src.mBits + src.mCropTop * src.mWidth + src.mCropLeft;

    const uint8_t *src_u =
        (const uint8_t *)src_y + src.mWidth * (src.mHeight - src.mCropTop / 2);