vf_colorspace: Add modern names for color range option
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 14 Sep 2016 21:09:03 +0000 (23:09 +0200)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 14 Sep 2016 21:24:22 +0000 (17:24 -0400)
Allows to use values returned from API and from ffprobe directly.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavfilter/vf_colorspace.c

index b9ecb5f..e69be50 100644 (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",