]> git.sesse.net Git - bmusb/commitdiff
Fix 8-bit noninterleaved encoding for fake colors; it's UYVY, not YUVV, of course.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 10 Nov 2018 19:48:51 +0000 (20:48 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 10 Nov 2018 19:48:51 +0000 (20:48 +0100)
fake_capture.cpp

index 072864fa26536fa16d692fef52584db9507297a6..e06ac3a098b4bf3e11b3b4649beae807c9f2a3b0 100644 (file)
@@ -230,7 +230,7 @@ void fill_color_noninterleaved(uint8_t *dst, uint8_t y, uint8_t cb, uint8_t cr,
                pix[3] = (y  << 2) | (cr << 12) | ( y << 22);
                memset16(dst, pix, video_format.stride * video_format.height / sizeof(pix));
        } else {
-               uint8_t ycbcr[] = { y, cb, y, cr };
+               uint8_t ycbcr[] = { cb, y, cr, y };
                memset4(dst, ycbcr, video_format.width * video_format.height / 2);
        }
 }