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

« back to all changes in this revision

Viewing changes to libavcodec/acelp_vectors.h

  • 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:
3
3
 *
4
4
 * Copyright (c) 2008 Vladimir Voroshilov
5
5
 *
6
 
 * This file is part of FFmpeg.
 
6
 * This file is part of Libav.
7
7
 *
8
 
 * FFmpeg is free software; you can redistribute it and/or
 
8
 * Libav is free software; you can redistribute it and/or
9
9
 * modify it under the terms of the GNU Lesser General Public
10
10
 * License as published by the Free Software Foundation; either
11
11
 * version 2.1 of the License, or (at your option) any later version.
12
12
 *
13
 
 * FFmpeg is distributed in the hope that it will be useful,
 
13
 * Libav is distributed in the hope that it will be useful,
14
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
16
 * Lesser General Public License for more details.
17
17
 *
18
18
 * You should have received a copy of the GNU Lesser General Public
19
 
 * License along with FFmpeg; if not, write to the Free Software
 
19
 * License along with Libav; if not, write to the Free Software
20
20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
21
 */
22
22
 
47
47
 *
48
48
 * Table contains only first the pulse indexes.
49
49
 *
50
 
 * Used in G.729 @8k, G.729 @4.4k, AMR @7.95k, AMR @7.40k
 
50
 * Used in G.729 @@8k, G.729 @@4.4k, AMR @@7.95k, AMR @@7.40k
51
51
 */
52
52
extern const uint8_t ff_fc_4pulses_8bits_tracks_13[16];
53
53
 
60
60
 *
61
61
 * @remark Track in the table should be read top-to-bottom, left-to-right.
62
62
 *
63
 
 * Used in G.729 @8k, G.729 @4.4k, AMR @7.95k, AMR @7.40k
 
63
 * Used in G.729 @@8k, G.729 @@4.4k, AMR @@7.95k, AMR @@7.40k
64
64
 */
65
65
extern const uint8_t ff_fc_4pulses_8bits_track_4[32];
66
66
 
76
76
 * @note (EE) Reference G.729D code also uses gray decoding for each
77
77
 *            pulse index before looking up the value in the table.
78
78
 *
79
 
 * Used in G.729 @6.4k (with gray coding), AMR @5.9k (without gray coding)
 
79
 * Used in G.729 @@6.4k (with gray coding), AMR @@5.9k (without gray coding)
80
80
 */
81
81
extern const uint8_t ff_fc_2pulses_9bits_track1[16];
82
82
extern const uint8_t ff_fc_2pulses_9bits_track1_gray[16];
108
108
 * @note (EE.2) Reference G.729D code also uses gray decoding for each
109
109
 *              pulse index before looking up the value in the table.
110
110
 *
111
 
 * Used in G.729 @6.4k (with gray coding)
 
111
 * Used in G.729 @@6.4k (with gray coding)
112
112
 */
113
113
extern const uint8_t ff_fc_2pulses_9bits_track2_gray[32];
114
114
 
134
134
 
135
135
/**
136
136
 * Decode fixed-codebook vector (3.8 and D.5.8 of G.729, 5.7.1 of AMR).
137
 
 * @param fc_v [out] decoded fixed codebook vector (2.13)
 
137
 * @param[out] fc_v decoded fixed codebook vector (2.13)
138
138
 * @param tab1 table used for first pulse_count pulses
139
139
 * @param tab2 table used for last pulse
140
140
 * @param pulse_indexes fixed codebook indexes
144
144
 * @param pulse_count number of pulses decoded using first table
145
145
 * @param bits length of one pulse index in bits
146
146
 *
147
 
 * Used in G.729 @8k, G.729 @4.4k, G.729 @6.4k, AMR @7.95k, AMR @7.40k
 
147
 * Used in G.729 @@8k, G.729 @@4.4k, G.729 @@6.4k, AMR @@7.95k, AMR @@7.40k
148
148
 */
149
149
void ff_acelp_fc_pulse_per_track(int16_t* fc_v,
150
150
                                 const uint8_t *tab1,
174
174
 
175
175
/**
176
176
 * weighted sum of two vectors with rounding.
177
 
 * @param out [out] result of addition
 
177
 * @param[out] out result of addition
178
178
 * @param in_a first vector
179
179
 * @param in_b second vector
180
180
 * @param weight_coeff_a first vector weight coefficient
198
198
 
199
199
/**
200
200
 * float implementation of weighted sum of two vectors.
201
 
 * @param out [out] result of addition
 
201
 * @param[out] out result of addition
202
202
 * @param in_a first vector
203
203
 * @param in_b second vector
204
204
 * @param weight_coeff_a first vector weight coefficient