diff options
author | Niklas Haas <git@nand.wakku.to> | 2014-03-26 01:46:38 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-22 19:00:38 +0200 |
commit | 70f50ddc5e97020d64ea0702748a00eddebc2473 (patch) | |
tree | f115668aa97cf11770459a169cc777ffca113840 /video/decode | |
parent | 86d3d11a68510764504a2a3c5987ab8e059d6df5 (diff) | |
download | mpv-70f50ddc5e97020d64ea0702748a00eddebc2473.tar.bz2 mpv-70f50ddc5e97020d64ea0702748a00eddebc2473.tar.xz |
video: Add support for non-BT.709 primaries
This add support for reading primary information from lavc, categorized
into BT.601-525, BT.601-625, BT.709 and BT.2020; and passes it on to the
vo. In vo_opengl, we always generate the 3dlut against the wider BT.2020
and transform our source into this colorspace in the shader.
Diffstat (limited to 'video/decode')
-rw-r--r-- | video/decode/vd_lavc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 721461fdb7..a59fffa790 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -477,6 +477,7 @@ static void update_image_params(struct dec_video *vd, AVFrame *frame, .d_h = d_h, .colorspace = avcol_spc_to_mp_csp(ctx->avctx->colorspace), .colorlevels = avcol_range_to_mp_csp_levels(ctx->avctx->color_range), + .primaries = avcol_pri_to_mp_csp_prim(ctx->avctx->color_primaries), .chroma_location = avchroma_location_to_mp(ctx->avctx->chroma_sample_location), .rotate = vd->header->video->rotate, |