• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libavcodec/mpegaudio3.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2007 Michael Niedermayer
00003  *
00004  * This file is part of FFmpeg.
00005  *
00006  * FFmpeg is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * FFmpeg is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with FFmpeg; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00019  */
00020 
00021 /* layer 3 "granule" */
00022 typedef struct GranuleDef {
00023     uint8_t scfsi;
00024     int part2_3_length;
00025     int big_values;
00026     int global_gain;
00027     int scalefac_compress;
00028     uint8_t block_type;
00029     uint8_t switch_point;
00030     int table_select[3];
00031     int subblock_gain[3];
00032     uint8_t scalefac_scale;
00033     uint8_t count1table_select;
00034     int region_size[3]; /* number of huffman codes in each region */
00035     int preflag;
00036     int short_start, long_end; /* long/short band indexes */
00037     uint8_t scale_factors[40];
00038     int32_t sb_hybrid[SBLIMIT * 18]; /* 576 samples */
00039 } GranuleDef;
00040 
00041 void ff_mp3_init(void);
00042 
00046 void ff_init_short_region(MPADecodeContext *s, GranuleDef *g);
00047 
00051 void ff_init_long_region(MPADecodeContext *s, GranuleDef *g, int ra1, int ra2);
00052 
00053 void ff_compute_band_indexes(MPADecodeContext *s, GranuleDef *g);

Generated on Fri Sep 16 2011 17:17:40 for FFmpeg by  doxygen 1.7.1