You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
libavcodec/libaomdec: add support for transfer characteristics and color primaries
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -89,7 +89,9 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
|
|||||||
AVCOL_RANGE_MPEG, AVCOL_RANGE_JPEG
|
AVCOL_RANGE_MPEG, AVCOL_RANGE_JPEG
|
||||||
};
|
};
|
||||||
avctx->color_range = color_ranges[img->range];
|
avctx->color_range = color_ranges[img->range];
|
||||||
|
avctx->color_primaries = img->cp;
|
||||||
avctx->colorspace = img->mc;
|
avctx->colorspace = img->mc;
|
||||||
|
avctx->color_trc = img->tc;
|
||||||
|
|
||||||
switch (img->fmt) {
|
switch (img->fmt) {
|
||||||
case AOM_IMG_FMT_I420:
|
case AOM_IMG_FMT_I420:
|
||||||
|
Reference in New Issue
Block a user