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

Commit cb3046d0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix TIYUV420PackSemiPlanor color converter to use src crop"

parents a4c38d6e 7576c343
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);