vf_colorspace: Add modern names for color range option

Allows to use values returned from API and from ffprobe directly.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
Vittorio Giovara 2016-09-14 23:09:03 +02:00 committed by Ronald S. Bultje
parent 92dbd65700
commit 76c28360b5

View File

@ -1038,7 +1038,9 @@ static const AVOption colorspace_options[] = {
{ "range", "Output color range",
OFFSET(user_rng), AV_OPT_TYPE_INT, { .i64 = AVCOL_RANGE_UNSPECIFIED },
AVCOL_RANGE_UNSPECIFIED, AVCOL_RANGE_NB - 1, FLAGS, "rng" },
ENUM("tv", AVCOL_RANGE_MPEG, "rng"),
ENUM("mpeg", AVCOL_RANGE_MPEG, "rng"),
ENUM("pc", AVCOL_RANGE_JPEG, "rng"),
ENUM("jpeg", AVCOL_RANGE_JPEG, "rng"),
{ "primaries", "Output color primaries",