[x264-devel] commit: Use a gaussian window for cplxblur (Jason Garrett-Glaser )
Gabriel Bouvigne
gabriel.bouvigne at joost.com
Thu Jun 5 09:58:09 CEST 2008
> for(j=0; j<=cplxblur*2 && j<=i; j++){
> ratecontrol_entry_t *rcj = &rcc->entry[i-j];
> - weight_sum += weight;
> - cplx_sum += weight * (qscale2bits(rcj, 1) - rcj->misc_bits);
> + double gaussian_weight = weight * exp(-j*j/200.0);
I know recent versions of the C standard allow defining variables in the
middle of blocks (and not just at top), but some compilers (well, at
least msvc) don't like it.
--
Gabriel
More information about the x264-devel
mailing list