From e9aa80b8e6a09cf2c8b3458a1c395b6f1b6a58cc Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 10 Nov 2018 20:48:51 +0100 Subject: [PATCH] Fix 8-bit noninterleaved encoding for fake colors; it's UYVY, not YUVV, of course. --- fake_capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fake_capture.cpp b/fake_capture.cpp index 072864f..e06ac3a 100644 --- a/fake_capture.cpp +++ b/fake_capture.cpp @@ -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); } } -- 2.39.2