We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb6810 commit 60592ffCopy full SHA for 60592ff
src/video_display/ndi.c
@@ -305,12 +305,12 @@ static void ndi_disp_convert_Y416_to_PA16(const struct video_frame *f, char *out
305
for (unsigned int i = 0; i < f->tiles[0].height; ++i) {
306
unsigned int width = f->tiles[0].width;
307
OPTIMIZED_FOR (unsigned int j = 0; j < (width + 1) / 2; j += 1) {
308
- *out_a++ = in[0];
+ *out_cb_cr++ = (in[0] + in[4]) / 2;
309
*out_y++ = in[1];
310
*out_cb_cr++ = (in[2] + in[6]) / 2;
311
- *out_a++ = in[4];
+ *out_a++ = in[3];
312
*out_y++ = in[5];
313
- *out_cb_cr++ = (in[3] + in[7]) / 2;
+ *out_a++ = in[7];
314
in += 8;
315
}
316
0 commit comments