~ubuntu-branches/ubuntu/oneiric/libav/oneiric

« back to all changes in this revision

Viewing changes to libavcodec/rdft.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2011-04-30 14:27:42 UTC
  • mfrom: (1.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110430142742-quvblxk1tj6adlh5
Tags: 4:0.7~b1-1ubuntu1
* Merge from debian. Remaining changes:
  - don't build against libfaad, libdirac, librtmp and libopenjpeg
    (all in universe)
  - explicitly --enable-pic on powerpc, cf. LP #654666
  - different arm configure bits that should probably better be
    merged into debian
* Cherry-picked from git: 
  - install doc/APIChanges and refer to them in NEWS.Debian (Closes: #623682)
  - don't try to install non-existing documentation, fixes FTBFS on powerpc

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * (I)RDFT transforms
3
3
 * Copyright (c) 2009 Alex Converse <alex dot converse at gmail dot com>
4
4
 *
5
 
 * This file is part of FFmpeg.
 
5
 * This file is part of Libav.
6
6
 *
7
 
 * FFmpeg is free software; you can redistribute it and/or
 
7
 * Libav is free software; you can redistribute it and/or
8
8
 * modify it under the terms of the GNU Lesser General Public
9
9
 * License as published by the Free Software Foundation; either
10
10
 * version 2.1 of the License, or (at your option) any later version.
11
11
 *
12
 
 * FFmpeg is distributed in the hope that it will be useful,
 
12
 * Libav is distributed in the hope that it will be useful,
13
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
15
 * Lesser General Public License for more details.
16
16
 *
17
17
 * You should have received a copy of the GNU Lesser General Public
18
 
 * License along with FFmpeg; if not, write to the Free Software
 
18
 * License along with Libav; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
20
 */
21
21
#include <stdlib.h>
22
22
#include <math.h>
23
23
#include "libavutil/mathematics.h"
24
 
#include "fft.h"
 
24
#include "rdft.h"
25
25
 
26
26
/**
27
27
 * @file
44
44
SINTABLE(32768);
45
45
SINTABLE(65536);
46
46
#endif
47
 
SINTABLE_CONST FFTSample * const ff_sin_tabs[] = {
 
47
static SINTABLE_CONST FFTSample * const ff_sin_tabs[] = {
48
48
    NULL, NULL, NULL, NULL,
49
49
    ff_sin_16, ff_sin_32, ff_sin_64, ff_sin_128, ff_sin_256, ff_sin_512, ff_sin_1024,
50
50
    ff_sin_2048, ff_sin_4096, ff_sin_8192, ff_sin_16384, ff_sin_32768, ff_sin_65536,
65
65
    const FFTSample *tsin = s->tsin;
66
66
 
67
67
    if (!s->inverse) {
68
 
        ff_fft_permute(&s->fft, (FFTComplex*)data);
69
 
        ff_fft_calc(&s->fft, (FFTComplex*)data);
 
68
        s->fft.fft_permute(&s->fft, (FFTComplex*)data);
 
69
        s->fft.fft_calc(&s->fft, (FFTComplex*)data);
70
70
    }
71
71
    /* i=0 is a special case because of packing, the DC term is real, so we
72
72
       are going to throw the N/2 term (also real) in with it. */
91
91
    if (s->inverse) {
92
92
        data[0] *= k1;
93
93
        data[1] *= k1;
94
 
        ff_fft_permute(&s->fft, (FFTComplex*)data);
95
 
        ff_fft_calc(&s->fft, (FFTComplex*)data);
 
94
        s->fft.fft_permute(&s->fft, (FFTComplex*)data);
 
95
        s->fft.fft_calc(&s->fft, (FFTComplex*)data);
96
96
    }
97
97
}
98
98