[FFmpeg-devel] [PATCH 6/8] avfilter/vf_scale: simplify color matrix parsing logic
Niklas Haas
ffmpeg at haasn.xyz
Sat Oct 28 16:31:32 EEST 2023
On Fri, 27 Oct 2023 19:04:44 +0200 Niklas Haas <ffmpeg at haasn.xyz> wrote:
> - { "in_color_matrix", "set input YCbCr type", OFFSET(in_color_matrix), AV_OPT_TYPE_STRING, { .str = "auto" }, .flags = FLAGS, "color" },
> - { "out_color_matrix", "set output YCbCr type", OFFSET(out_color_matrix), AV_OPT_TYPE_STRING, { .str = NULL }, .flags = FLAGS, "color"},
> + { "in_color_matrix", "set input YCbCr type", OFFSET(in_color_matrix), AV_OPT_TYPE_INT, { .i64 = AVCOL_SPC_UNSPECIFIED }, 0, AVCOL_SPC_NB-1, .flags = FLAGS, "color" },
> + { "out_color_matrix", "set output YCbCr type", OFFSET(out_color_matrix), AV_OPT_TYPE_INT, { .i64 = AVCOL_SPC_UNSPECIFIED }, 0, AVCOL_SPC_NB-1, .flags = FLAGS, "color"},
Bug: Should be set to -1 by default, to preserve old behavior. Will fix
in v2.
More information about the ffmpeg-devel
mailing list