Files
Sunshine/src/platform/linux
Wouter Bijlsma 7f53388304 Fix CUDA RGBA to NV12 conversion
On linux hosts with Nvidia GPU and CUDA support enabled, a CUDA kernel
is used to convert captured RGBA frames to NV12 before encoding. This
kernel contained a bug affecting image quality, in particular when
rendering high-contrast colored text and sharp lines. See [1] for more
information.

This commit fixes the format conversion kernel by taking 2x2 RGBA blocks
to generate 4 luma (Y) values and 1 chroma (UV) pair, ie: 12 bits per
pixel YUV420 (NV12). Previous code incorrectly generated 1 UV pair for
every 2 pixels.

[1] https://github.com/LizardByte/Sunshine/issues/154
2022-10-10 21:39:58 +02:00
..
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-10-10 21:39:58 +02:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-28 16:42:00 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00
2022-08-07 23:37:57 -04:00