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);
}
}
memset2(video_frame.data, cbcr, width * height / 2);
memset(video_frame.data2, y, width * height);
} else {
- fill_color_noninterleaved(video_frame.data, y, cb, cr, video_format, current_pixel_format);
+ fill_color_noninterleaved(video_frame.data, y, cb, cr, video_format, current_pixel_format == PixelFormat_10BitYCbCr);
}
if (video_frame.data_copy != nullptr) {
- fill_color_noninterleaved(video_frame.data_copy, y, cb, cr, video_format, current_pixel_format);
+ fill_color_noninterleaved(video_frame.data_copy, y, cb, cr, video_format, current_pixel_format == PixelFormat_10BitYCbCr);
}
video_frame.len = video_format.stride * height;
video_frame.received_timestamp = timestamp;