Logo Search packages:      
Sourcecode: ffmpeg-debian version File versions

void ff_ref_dct_init ( void   ) 

Initialize the double precision discrete cosine transform functions fdct & idct.

Definition at line 39 of file dctref.c.

{
    unsigned int i, j;

    for (j = 0; j < 8; ++j) {
        coefficients[j] = sqrt(0.125);
        for (i = 8; i < 64; i += 8) {
            coefficients[i + j] = 0.5 * cos(i * (j + 0.5) * M_PI / 64.0);
        }
    }
}


Generated by  Doxygen 1.6.0   Back to index