~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-updates

« back to all changes in this revision

Viewing changes to libavcodec/mpegaudio.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-02-05 21:45:05 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090205214505-fvn0jkiv3lrkaaq4
Tags: 3:0.svn20090204-2ubuntu1+unstripped1
rebuild using a clean, uncrippled ffmpeg tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 */
20
20
 
21
21
/**
22
 
 * @file mpegaudio.h
 
22
 * @file libavcodec/mpegaudio.h
23
23
 * mpeg audio declarations for both encoder and decoder.
24
24
 */
25
25
 
90
90
 
91
91
struct GranuleDef;
92
92
 
 
93
#define MPA_DECODE_HEADER \
 
94
    int frame_size; \
 
95
    int error_protection; \
 
96
    int layer; \
 
97
    int sample_rate; \
 
98
    int sample_rate_index; /* between 0 and 8 */ \
 
99
    int bit_rate; \
 
100
    int nb_channels; \
 
101
    int mode; \
 
102
    int mode_ext; \
 
103
    int lsf;
 
104
 
 
105
typedef struct MPADecodeHeader {
 
106
  MPA_DECODE_HEADER
 
107
} MPADecodeHeader;
 
108
 
93
109
typedef struct MPADecodeContext {
 
110
    MPA_DECODE_HEADER
94
111
    DECLARE_ALIGNED_8(uint8_t, last_buf[2*BACKSTEP_SIZE + EXTRABYTES]);
95
112
    int last_buf_size;
96
 
    int frame_size;
97
113
    /* next header (used in free format parsing) */
98
114
    uint32_t free_format_next_header;
99
 
    int error_protection;
100
 
    int layer;
101
 
    int sample_rate;
102
 
    int sample_rate_index; /* between 0 and 8 */
103
 
    int bit_rate;
104
115
    GetBitContext gb;
105
116
    GetBitContext in_gb;
106
 
    int nb_channels;
107
 
    int mode;
108
 
    int mode_ext;
109
 
    int lsf;
110
117
    DECLARE_ALIGNED_16(MPA_INT, synth_buf[MPA_MAX_CHANNELS][512 * 2]);
111
118
    int synth_buf_offset[MPA_MAX_CHANNELS];
112
119
    DECLARE_ALIGNED_16(int32_t, sb_samples[MPA_MAX_CHANNELS][36][SBLIMIT]);