[FFmpeg-devel] [PATCH] lavfi: add showspectrum filter.
Clément Bœsch
ubitux at gmail.com
Fri Aug 10 00:33:02 CEST 2012
On Fri, Aug 10, 2012 at 12:30:27AM +0200, Clément Bœsch wrote:
> TODO: bump
> ---
> libavfilter/Makefile | 1 +
> libavfilter/allfilters.c | 1 +
> libavfilter/avf_showspectrum.c | 318 +++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 320 insertions(+)
> create mode 100644 libavfilter/avf_showspectrum.c
>
[...]
> +/**
> + * @file
> + * audio to spectrum (video) transmedia filter, based on ffplay rdft showmode
> + * and lavfi/avf_showwaves
> + */
> +
> +#include <math.h>
> +
> +#include "libavcodec/avfft.h"
> +#include "libavutil/audioconvert.h"
> +#include "libavutil/opt.h"
> +#include "libavutil/parseutils.h"
> +#include "avfilter.h"
> +#include "formats.h"
> +#include "audio.h"
> +#include "video.h"
> +#include "internal.h"
> +#include "drawutils.h"
Consider this...
> +
> +typedef struct {
> + const AVClass *class;
> + int w, h;
> + int xpos;
> + AVFilterBufferRef *outpicref;
> + FFDrawContext draw;
...and this removed leftovers.
[...]
I'll add the documentation in the next version; I'm sure I'll get a bunch
of other things to fix on this first version anyway.
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120810/5b3e6de1/attachment.asc>
More information about the ffmpeg-devel
mailing list