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

Commit a158049b 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

Change-Id: I50f273ce152376efa955f50ab8d78c9f9fed5f6e
parents 4accad2f 16b6cdc9
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);