[FFmpeg-devel] [PATCH 04/27] avfilter/buffersink: export color_range from filtergraph output

Nicolas George george at nsup.org
Sun Dec 10 12:55:13 EET 2017


Paul B Mahol (2017-12-09):
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  libavfilter/buffersink.c | 1 +
>  libavfilter/buffersink.h | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
> index 0f87b5439a..5f3c932d92 100644
> --- a/libavfilter/buffersink.c
> +++ b/libavfilter/buffersink.c
> @@ -194,6 +194,7 @@ MAKE_AVFILTERLINK_ACCESSOR(AVRational       , frame_rate         )
>  MAKE_AVFILTERLINK_ACCESSOR(int              , w                  )
>  MAKE_AVFILTERLINK_ACCESSOR(int              , h                  )
>  MAKE_AVFILTERLINK_ACCESSOR(AVRational       , sample_aspect_ratio)

> +MAKE_AVFILTERLINK_ACCESSOR(int              , color_range        )

enum AVColorRange, not int. This applies to all occurrences except when
it is handled by options.

>  
>  MAKE_AVFILTERLINK_ACCESSOR(int              , channels           )
>  MAKE_AVFILTERLINK_ACCESSOR(uint64_t         , channel_layout     )
> diff --git a/libavfilter/buffersink.h b/libavfilter/buffersink.h
> index 21d6bb505b..c0acee48d6 100644
> --- a/libavfilter/buffersink.h
> +++ b/libavfilter/buffersink.h
> @@ -114,6 +114,7 @@ AVRational       av_buffersink_get_frame_rate          (const AVFilterContext *c
>  int              av_buffersink_get_w                   (const AVFilterContext *ctx);
>  int              av_buffersink_get_h                   (const AVFilterContext *ctx);
>  AVRational       av_buffersink_get_sample_aspect_ratio (const AVFilterContext *ctx);
> +int              av_buffersink_get_color_range         (const AVFilterContext *ctx);
>  
>  int              av_buffersink_get_channels            (const AVFilterContext *ctx);
>  uint64_t         av_buffersink_get_channel_layout      (const AVFilterContext *ctx);

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171210/f3074507/attachment.sig>


More information about the ffmpeg-devel mailing list