Commit 76c28360 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Ronald S. Bultje

vf_colorspace: Add modern names for color range option

Allows to use values returned from API and from ffprobe directly.
Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent 92dbd657
...@@ -1038,7 +1038,9 @@ static const AVOption colorspace_options[] = { ...@@ -1038,7 +1038,9 @@ static const AVOption colorspace_options[] = {
{ "range", "Output color range", { "range", "Output color range",
OFFSET(user_rng), AV_OPT_TYPE_INT, { .i64 = AVCOL_RANGE_UNSPECIFIED }, OFFSET(user_rng), AV_OPT_TYPE_INT, { .i64 = AVCOL_RANGE_UNSPECIFIED },
AVCOL_RANGE_UNSPECIFIED, AVCOL_RANGE_NB - 1, FLAGS, "rng" }, AVCOL_RANGE_UNSPECIFIED, AVCOL_RANGE_NB - 1, FLAGS, "rng" },
ENUM("tv", AVCOL_RANGE_MPEG, "rng"),
ENUM("mpeg", AVCOL_RANGE_MPEG, "rng"), ENUM("mpeg", AVCOL_RANGE_MPEG, "rng"),
ENUM("pc", AVCOL_RANGE_JPEG, "rng"),
ENUM("jpeg", AVCOL_RANGE_JPEG, "rng"), ENUM("jpeg", AVCOL_RANGE_JPEG, "rng"),
{ "primaries", "Output color primaries", { "primaries", "Output color primaries",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment