annotate synth_filter.h @ 12530:63edd10ad4bc libavcodec tip

Try to fix crashes introduced by r25218 r25218 made assumptions about the existence of past reference frames that weren't necessarily true.
author darkshikari
date Tue, 28 Sep 2010 09:06:22 +0000
parents b7fa70eabb1f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10467
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
1 /*
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
2 * copyright (c) 2008 Michael Niedermayer <michaelni@gmx.at>
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
3 *
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
4 * This file is part of FFmpeg.
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
5 *
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
6 * FFmpeg is free software; you can redistribute it and/or
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
7 * modify it under the terms of the GNU Lesser General Public
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
8 * License as published by the Free Software Foundation; either
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
9 * version 2.1 of the License, or (at your option) any later version.
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
10 *
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
11 * FFmpeg is distributed in the hope that it will be useful,
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
14 * Lesser General Public License for more details.
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
15 *
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
16 * You should have received a copy of the GNU Lesser General Public
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
17 * License along with FFmpeg; if not, write to the Free Software
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
19 */
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
20
10481
473d52076994 Multiple inclusion guards for synth_filter.h.
michael
parents: 10479
diff changeset
21 #ifndef AVCODEC_SYNTH_FILTER_H
473d52076994 Multiple inclusion guards for synth_filter.h.
michael
parents: 10479
diff changeset
22 #define AVCODEC_SYNTH_FILTER_H
473d52076994 Multiple inclusion guards for synth_filter.h.
michael
parents: 10479
diff changeset
23
11412
811467079ec9 Add lots of missing includes
mru
parents: 10481
diff changeset
24 #include "fft.h"
10467
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
25
11592
18f17f44de37 Make synth_filter a function pointer
mru
parents: 11412
diff changeset
26 typedef struct SynthFilterContext {
18f17f44de37 Make synth_filter a function pointer
mru
parents: 11412
diff changeset
27 void (*synth_filter_float)(FFTContext *imdct,
18f17f44de37 Make synth_filter a function pointer
mru
parents: 11412
diff changeset
28 float *synth_buf_ptr, int *synth_buf_offset,
18f17f44de37 Make synth_filter a function pointer
mru
parents: 11412
diff changeset
29 float synth_buf2[32], const float window[512],
18f17f44de37 Make synth_filter a function pointer
mru
parents: 11412
diff changeset
30 float out[32], const float in[32],
18f17f44de37 Make synth_filter a function pointer
mru
parents: 11412
diff changeset
31 float scale, float bias);
18f17f44de37 Make synth_filter a function pointer
mru
parents: 11412
diff changeset
32 } SynthFilterContext;
18f17f44de37 Make synth_filter a function pointer
mru
parents: 11412
diff changeset
33
18f17f44de37 Make synth_filter a function pointer
mru
parents: 11412
diff changeset
34 void ff_synth_filter_init(SynthFilterContext *c);
11593
b7fa70eabb1f ARM: NEON optimised synth_filter_float
mru
parents: 11592
diff changeset
35 void ff_synth_filter_init_arm(SynthFilterContext *c);
10467
212a837ebd27 Split synth filter out of dca.c.
michael
parents:
diff changeset
36
10481
473d52076994 Multiple inclusion guards for synth_filter.h.
michael
parents: 10479
diff changeset
37 #endif /* AVCODEC_SYNTH_FILTER_H */