[FFmpeg-devel] [PATCH][BULK] new multimedia filter avf_showcqt.c

Michael Niedermayer michaelni at gmx.at
Mon May 26 06:04:10 CEST 2014


On Sun, May 25, 2014 at 07:24:07PM -0700, Muhammad Faiz wrote:
> Hi,
> I'm sorry, I send this again
> this filter is same as showspectrum but with constant Q transform,
> so frequency is spaced logarithmically

> diff -ruN a/libavfilter/allfilters.c b/libavfilter/allfilters.c
> --- a/libavfilter/allfilters.c	2014-05-02 00:20:06.000000000 +0700
> +++ b/libavfilter/allfilters.c	2014-05-19 11:07:44.977770955 +0700
> @@ -233,6 +233,7 @@
>      REGISTER_FILTER(CONCAT,         concat,         avf);
>      REGISTER_FILTER(SHOWSPECTRUM,   showspectrum,   avf);
>      REGISTER_FILTER(SHOWWAVES,      showwaves,      avf);
> +    REGISTER_FILTER(SHOWCQT,        showcqt,        avf);
>  
>      /* multimedia sources */
>      REGISTER_FILTER(AMOVIE,         amovie,         avsrc);
> diff -ruN a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c
> --- a/libavfilter/avf_showcqt.c	1970-01-01 07:00:00.000000000 +0700
> +++ b/libavfilter/avf_showcqt.c	2014-05-19 11:39:51.000000000 +0700
> @@ -0,0 +1,864 @@
> +/*
> + * Copyright (c) 2014 Muhammad Faiz <mfcc64 at gmail.com>
> + *
> + * This file is part of FFmpeg.
> + *
> + * FFmpeg is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU Lesser General Public
> + * License as published by the Free Software Foundation; either
> + * version 2.1 of the License, or (at your option) any later version.
> + *
> + * FFmpeg is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with FFmpeg; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> + */
> +
> +#include "libavcodec/avfft.h"
> +#include "libavutil/avassert.h"
> +#include "libavutil/channel_layout.h"
> +#include "libavutil/opt.h"
> +#include "avfilter.h"
> +#include "internal.h"
> +
> +#include <math.h>
> +#include <stdlib.h>
> +

> +#define VIDEO_WIDTH 1920
> +#define VIDEO_HEIGHT 1080

these shouldnt be constant, not everyone has a HD display yet

[...]


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140526/11f5240e/attachment.asc>


More information about the ffmpeg-devel mailing list