mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
dct: fix indentation
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
721d6f2dc5
commit
9503fbb859
@ -188,26 +188,26 @@ av_cold int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType inverse)
|
|||||||
if (inverse == DCT_II && nbits == 5) {
|
if (inverse == DCT_II && nbits == 5) {
|
||||||
s->dct_calc = dct32_func;
|
s->dct_calc = dct32_func;
|
||||||
} else {
|
} else {
|
||||||
ff_init_ff_cos_tabs(nbits+2);
|
ff_init_ff_cos_tabs(nbits+2);
|
||||||
|
|
||||||
s->costab = ff_cos_tabs[nbits+2];
|
s->costab = ff_cos_tabs[nbits+2];
|
||||||
|
|
||||||
s->csc2 = av_malloc(n/2 * sizeof(FFTSample));
|
s->csc2 = av_malloc(n/2 * sizeof(FFTSample));
|
||||||
|
|
||||||
if (ff_rdft_init(&s->rdft, nbits, inverse == DCT_III) < 0) {
|
if (ff_rdft_init(&s->rdft, nbits, inverse == DCT_III) < 0) {
|
||||||
av_free(s->csc2);
|
av_free(s->csc2);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < n/2; i++)
|
for (i = 0; i < n/2; i++)
|
||||||
s->csc2[i] = 0.5 / sin((M_PI / (2*n) * (2*i + 1)));
|
s->csc2[i] = 0.5 / sin((M_PI / (2*n) * (2*i + 1)));
|
||||||
|
|
||||||
switch(inverse) {
|
switch(inverse) {
|
||||||
case DCT_I : s->dct_calc = ff_dct_calc_I_c; break;
|
case DCT_I : s->dct_calc = ff_dct_calc_I_c; break;
|
||||||
case DCT_II : s->dct_calc = ff_dct_calc_II_c ; break;
|
case DCT_II : s->dct_calc = ff_dct_calc_II_c ; break;
|
||||||
case DCT_III: s->dct_calc = ff_dct_calc_III_c; break;
|
case DCT_III: s->dct_calc = ff_dct_calc_III_c; break;
|
||||||
case DST_I : s->dct_calc = ff_dst_calc_I_c; break;
|
case DST_I : s->dct_calc = ff_dst_calc_I_c; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
s->dct32 = dct32;
|
s->dct32 = dct32;
|
||||||
|
Loading…
Reference in New Issue
Block a user