~ubuntu-dev/mplayer/ubuntu-feisty

« back to all changes in this revision

Viewing changes to libavcodec/amr.c

  • Committer: William Grant
  • Date: 2007-02-03 03:16:07 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: william.grant@ubuntu.org.au-20070203031607-08gc2ompbz6spt9i
Update to 1.0rc1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * AMR Audio decoder stub
3
3
 * Copyright (c) 2003 the ffmpeg project
4
4
 *
5
 
 * This library is free software; you can redistribute it and/or
 
5
 * This file is part of FFmpeg.
 
6
 *
 
7
 * FFmpeg is free software; you can redistribute it and/or
6
8
 * modify it under the terms of the GNU Lesser General Public
7
9
 * License as published by the Free Software Foundation; either
8
 
 * version 2 of the License, or (at your option) any later version.
 
10
 * version 2.1 of the License, or (at your option) any later version.
9
11
 *
10
 
 * This library is distributed in the hope that it will be useful,
 
12
 * FFmpeg is distributed in the hope that it will be useful,
11
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
15
 * Lesser General Public License for more details.
14
16
 *
15
17
 * You should have received a copy of the GNU Lesser General Public
16
 
 * License along with this library; if not, write to the Free Software
 
18
 * License along with FFmpeg; if not, write to the Free Software
17
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
20
 */
19
21
 /*
55
57
 
56
58
#include "avcodec.h"
57
59
 
58
 
#ifdef AMR_NB_FIXED
 
60
#ifdef CONFIG_AMR_NB_FIXED
59
61
 
60
62
#define MMS_IO
61
63
 
107
109
    return(MR122);
108
110
}
109
111
 
110
 
#ifdef AMR_NB_FIXED
 
112
#ifdef CONFIG_AMR_NB_FIXED
111
113
/* fixed point version*/
112
114
/* frame size in serial bitstream file (frame type + serial stream + flags) */
113
115
#define SERIAL_FRAMESIZE (1+MAX_SERIAL_SIZE+5)
326
328
}
327
329
 
328
330
 
329
 
#elif defined(AMR_NB) /* Float point version*/
 
331
#elif defined(CONFIG_AMR_NB) /* Float point version*/
330
332
 
331
333
typedef struct AMRContext {
332
334
    int frameCount;
457
459
 
458
460
#endif
459
461
 
460
 
#if defined(AMR_NB) || defined(AMR_NB_FIXED)
 
462
#if defined(CONFIG_AMR_NB) || defined(CONFIG_AMR_NB_FIXED)
461
463
 
462
464
AVCodec amr_nb_decoder =
463
465
{
486
488
#endif
487
489
 
488
490
/* -----------AMR wideband ------------*/
489
 
#ifdef AMR_WB
 
491
#ifdef CONFIG_AMR_WB
490
492
 
491
493
#ifdef _TYPEDEF_H
492
494
//To avoid duplicate typedefs from typdef in amr-nb
661
663
    NULL,
662
664
};
663
665
 
664
 
#endif //AMR_WB
 
666
#endif //CONFIG_AMR_WB