mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
demux: expose demuxer colorimetry metadata to player
Implementation-wise, the values from the demuxer/codec header are merged with the values from the decoder such that the former are used only where the latter are unknown (0/auto).
This commit is contained in:
@@ -125,6 +125,9 @@ struct mp_colorspace {
|
||||
float sig_peak; // signal peak, highest value that occurs in the source
|
||||
};
|
||||
|
||||
// Replaces unknown values in the first struct by those of the second struct
|
||||
void mp_colorspace_merge(struct mp_colorspace *orig, struct mp_colorspace *new);
|
||||
|
||||
struct mp_csp_params {
|
||||
struct mp_colorspace color; // input colorspace
|
||||
enum mp_csp_levels levels_out; // output device
|
||||
|
||||
Reference in New Issue
Block a user