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

Commit 8f77b413 authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "The color conversion from YUV420Planar to RGB only requires the image...

Merge "The color conversion from YUV420Planar to RGB only requires the image width to be a multiple of 2, not 4."
parents fbaa6741 94738e40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ status_t ColorConverter::convertCbYCrY(

status_t ColorConverter::convertYUV420Planar(
        const BitmapParams &src, const BitmapParams &dst) {
    if (!((dst.mWidth & 3) == 0
    if (!((dst.mWidth & 1) == 0
            && (src.mCropLeft & 1) == 0
            && src.cropWidth() == dst.cropWidth()
            && src.cropHeight() == dst.cropHeight())) {