mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avfilter/vf_colormatrix: update output AVFrame colorspace
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3e41e747d6
commit
b50efe85ea
@ -359,6 +359,13 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
|
||||
} else
|
||||
color->mode = color->source * 4 + color->dest;
|
||||
|
||||
switch(color->dest) {
|
||||
case COLOR_MODE_BT709 : av_frame_set_colorspace(out, AVCOL_SPC_BT709) ; break;
|
||||
case COLOR_MODE_FCC : av_frame_set_colorspace(out, AVCOL_SPC_FCC) ; break;
|
||||
case COLOR_MODE_SMPTE240M: av_frame_set_colorspace(out, AVCOL_SPC_SMPTE240M); break;
|
||||
case COLOR_MODE_BT601 : av_frame_set_colorspace(out, AVCOL_SPC_BT470BG) ; break;
|
||||
}
|
||||
|
||||
calc_coefficients(ctx);
|
||||
|
||||
if (in->format == AV_PIX_FMT_YUV422P)
|
||||
|
Loading…
Reference in New Issue
Block a user