[vlc-devel] [PATCH] avcodec: map more transfer functions to VLC equivalents
Steve Lhomme
robux4 at videolabs.io
Thu Jan 5 09:48:45 CET 2017
--
replaces https://patches.videolan.org/patch/15359/
---
modules/codec/avcodec/video.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 461057d..f305603 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -231,6 +231,15 @@ static int lavc_GetVideoFormat(decoder_t *dec, video_format_t *restrict fmt,
case AVCOL_TRC_BT2020_12:
fmt->transfer = TRANSFER_FUNC_BT2020;
break;
+ case AVCOL_TRC_SMPTE2084:
+ fmt->transfer = TRANSFER_FUNC_SMPTE_ST2084;
+ break;
+ case AVCOL_TRC_SMPTE240M:
+ fmt->transfer = TRANSFER_FUNC_SMPTE_240;
+ break;
+ case AVCOL_TRC_GAMMA28:
+ fmt->transfer = TRANSFER_FUNC_BT470_BG;
+ break;
default:
break;
}
--
2.10.2
More information about the vlc-devel
mailing list