[FFmpeg-devel] [PATCH] Unsharp filter

Bobby Bingham uhmmmm
Wed Apr 7 03:12:34 CEST 2010


On Mon, 05 Apr 2010 10:06:34 -0400
"Daniel G. Taylor" <dan at programmer-art.org> wrote:

> Hey,
> 
> On 04/04/2010 11:29 PM, Bobby Bingham wrote:
> > On Fri, 26 Mar 2010 11:21:39 -0400
> > "Daniel G. Taylor"<dan at programmer-art.org>  wrote:
> >> +static void init_filter_param(AVFilterContext *ctx, FilterParam *fp, const char *effect_type, int width)
> >> +{
> >> +    int z;
> >> +    const char *effect;
> >> +
> >> +    effect = fp->amount == 0 ? "none" : fp->amount<  0 ? "blur" : "sharpen";
> >> +
> >> +    av_log(ctx, AV_LOG_INFO, "effect:%s type:%s msize_x:%d msize_y:%d amount:%0.2f\n", effect, effect_type, fp->msize_x, fp->msize_y, fp->amount / 65535.0);
> >> +
> >> +    memset(fp->sc, 0, sizeof(fp->sc));
> >
> > This memset doesn't look necessary.
> 
> Fixed this and fixed all nits from Stefano.
> 
> >> +    for (z = 0; z<  2 * fp->steps_y; z++)
> >> +        fp->sc[z] = av_malloc(sizeof(*(fp->sc[z])) * (width + 2 * fp->steps_x));
> >> +}
> >
> 
> Attached is the latest patch. I also have permission to relicense from 
> Remi under the LGPL as of yesterday, so this latest patch uses the LGPL 
> and removes the change to configure to check for the GPL.
> 
> Take care,

Applied.

-- 
Bobby Bingham
??????????????????????



More information about the ffmpeg-devel mailing list