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

Commit c0e4f721 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 am: 16b6cdc9

am: a158049b

Change-Id: I63500a5b3843f4b5dbb5fb4d7d1547b3e3a1fcc8
parents 009c7c08 a158049b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -818,7 +818,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);