[vlc-devel] [PATCH] hqdn3d video filter, ported from mplayer

Rémi Denis-Courmont remi at remlab.net
Wed Nov 23 07:40:10 CET 2011


On Tue, 22 Nov 2011 18:48:35 -0500, Rafaël Carré <funman at videolan.org>
wrote:
>> +    deNoise(src->p[0].p_pixels, dst->p[0].p_pixels,
>> +            cfg->Line, &cfg->Frame[0], sys->w[0], sys->h[0],
>> +            src->p[0].i_pitch, dst->p[0].i_pitch,
>> +            cfg->Coefs[0],
>> +            cfg->Coefs[0],
>> +            cfg->Coefs[1]);
>> +    deNoise(src->p[1].p_pixels, dst->p[1].p_pixels,
>> +            cfg->Line, &cfg->Frame[1], sys->w[1], sys->h[1],
>> +            src->p[1].i_pitch, dst->p[1].i_pitch,
>> +            cfg->Coefs[2],
>> +            cfg->Coefs[2],
>> +            cfg->Coefs[3]);
>> +    deNoise(src->p[2].p_pixels, dst->p[2].p_pixels,
>> +            cfg->Line, &cfg->Frame[2], sys->w[2], sys->h[2],
>> +            src->p[2].i_pitch, dst->p[2].i_pitch,
>> +            cfg->Coefs[2],
>> +            cfg->Coefs[2],
>> +            cfg->Coefs[3]);
> 
> can this be a for loop?

Indeed. And does it really work with the same Line for each plane? That
seems very suspicious.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list