[FFmpeg-devel] [PATCH 3/4] avfilter/vf_histogram: add support for subsampled planar yuv modes in waveform mode

Paul B Mahol onemda at gmail.com
Tue Oct 1 22:42:12 CEST 2013


On 10/1/13, Marton Balint <cus at passwd.hu> wrote:
> Signed-off-by: Marton Balint <cus at passwd.hu>
> ---
>  libavfilter/vf_histogram.c  | 24 +++++++++++++++++++-----
>  tests/fate/filter-video.mak |  2 +-
>  2 files changed, 20 insertions(+), 6 deletions(-)
>
> diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c
> index f513a25..5fd997b 100644
> --- a/libavfilter/vf_histogram.c
> +++ b/libavfilter/vf_histogram.c
> @@ -86,6 +86,15 @@ static const enum AVPixelFormat levels_pix_fmts[] = {
>      AV_PIX_FMT_GRAY8, AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_NONE
>  };
>
> +static const enum AVPixelFormat waveform_pix_fmts[] = {
> +     AV_PIX_FMT_GBRP,       AV_PIX_FMT_GBRAP,
> +     AV_PIX_FMT_YUV420P,    AV_PIX_FMT_YUV422P,    AV_PIX_FMT_YUV444P,
> AV_PIX_FMT_YUV410P,
> +     AV_PIX_FMT_YUV411P,    AV_PIX_FMT_YUVJ411P,   AV_PIX_FMT_GRAY8,
> AV_PIX_FMT_YUVJ420P,
> +     AV_PIX_FMT_YUVJ422P,   AV_PIX_FMT_YUVJ444P,   AV_PIX_FMT_YUV440P,
> AV_PIX_FMT_YUVJ440P,
> +     AV_PIX_FMT_YUVA420P,   AV_PIX_FMT_YUVA422P,   AV_PIX_FMT_YUVA444P,
> AV_PIX_FMT_GRAY8A,

Removed as that one is not planar.

> +     AV_PIX_FMT_NONE
> +};
> +

[...]


More information about the ffmpeg-devel mailing list