![]() |
Sunshine v2026.319.132152
Self-hosted game stream host for Moonlight.
|
Definitions for colorspace functions. More...
#include "video_colorspace.h"#include "logging.h"#include "video.h"#include <libswscale/swscale.h>Functions | |
| avcodec_colorspace_t | video::avcodec_colorspace_from_sunshine_colorspace (const sunshine_colorspace_t &sunshine_colorspace) |
| const color_t * | video::color_vectors_from_colorspace (const sunshine_colorspace_t &colorspace, bool unorm_output) |
| Get static RGB->YUV color conversion matrix. This matrix expects RGB input in UNORM (0.0 to 1.0) range and doesn't perform any gamut mapping or gamma correction. | |
| sunshine_colorspace_t | video::colorspace_from_client_config (const config_t &config, bool hdr_display) |
| bool | video::colorspace_is_hdr (const sunshine_colorspace_t &colorspace) |
Definitions for colorspace functions.
| const color_t * video::color_vectors_from_colorspace | ( | const sunshine_colorspace_t & | colorspace, |
| bool | unorm_output ) |
Get static RGB->YUV color conversion matrix. This matrix expects RGB input in UNORM (0.0 to 1.0) range and doesn't perform any gamut mapping or gamma correction.
| colorspace | Targeted YUV colorspace. |
| unorm_output | Whether the matrix should produce output in UNORM or UINT range. |
const color_t* that contains RGB->YUV transformation vectors. Components range_y and range_uv are there for backwards compatibility and can be ignored in the computation.