[FFmpeg-devel] [PATCH 2/2] vf_colorspace: Add modern names for color range option

Ronald S. Bultje rsbultje at gmail.com
Thu Sep 15 00:26:13 EEST 2016


Hi,

On Wed, Sep 14, 2016 at 5:09 PM, Vittorio Giovara <
vittorio.giovara at gmail.com> wrote:

> Allows to use values returned from API and from ffprobe directly.
>
> Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
> ---
>  libavfilter/vf_colorspace.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libavfilter/vf_colorspace.c b/libavfilter/vf_colorspace.c
> index 7e87cd8..b993928 100644
> --- a/libavfilter/vf_colorspace.c
> +++ b/libavfilter/vf_colorspace.c
> @@ -1039,7 +1039,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",
> --
> 2.9.3


OK, and pushed.

Ronald


More information about the ffmpeg-devel mailing list