[FFmpeg-devel] [PATCH] avfilter: add palettedbg filter

wm4 nfxjfg at googlemail.com
Thu Jan 15 14:56:52 CET 2015


On Thu, 15 Jan 2015 14:21:18 +0100
Clément Bœsch <u at pkh.me> wrote:

> From: Clément Bœsch <clement at stupeflix.com>
> 
> ---
>  Changelog                        |   1 +
>  doc/filters.texi                 |  13 ++
>  libavfilter/Makefile             |   1 +
>  libavfilter/allfilters.c         |   1 +
>  libavfilter/version.h            |   4 +-
>  libavfilter/vf_palettedbg.c      | 127 ++++++++++++++++
>  tests/fate/filter-video.mak      |   3 +
>  tests/ref/fate/filter-palettedbg | 316 +++++++++++++++++++++++++++++++++++++++
>  8 files changed, 464 insertions(+), 2 deletions(-)
>  create mode 100644 libavfilter/vf_palettedbg.c
>  create mode 100644 tests/ref/fate/filter-palettedbg
> 
> diff --git a/Changelog b/Changelog
> index 4fc3800..4dd02e0 100644
> --- a/Changelog
> +++ b/Changelog
> @@ -15,6 +15,7 @@ version <next>:
>  - VOC seeking support
>  - Closed caption Decoder
>  - fspp, uspp, pp7 MPlayer postprocessing filters ported to native filters
> +- palettedbg filter
>  
>  
>  version 2.5:
> diff --git a/doc/filters.texi b/doc/filters.texi
> index 154508c..faaeeaf 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -6885,6 +6885,19 @@ pad="2*iw:2*ih:ow-iw:oh-ih"
>  @end example
>  @end itemize
>  
> + at section palettedbg
> +
> +Displays the 256 colors palette of each frame. This filter is only relevant for
> + at var{pal8} pixel format frames.
> +

Maybe call it show_palette? You could make it overly fancy by rendering
the palette on top of the video frame. (I don't know what this patch
makes it look like.)

Note: some other pixfmts have a palette too (PSEUDOPAL crap).


More information about the ffmpeg-devel mailing list