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;