00001 /* 00002 * AC-3 tables 00003 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard 00004 * 00005 * This file is part of FFmpeg. 00006 * 00007 * FFmpeg is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * FFmpeg is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with FFmpeg; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00022 #ifndef AVCODEC_AC3TAB_H 00023 #define AVCODEC_AC3TAB_H 00024 00025 #include "libavutil/common.h" 00026 00027 extern const uint16_t ff_ac3_frame_size_tab[38][3]; 00028 extern const uint8_t ff_ac3_channels_tab[8]; 00029 extern const uint16_t ff_ac3_sample_rate_tab[3]; 00030 extern const uint16_t ff_ac3_bitrate_tab[19]; 00031 extern const int16_t ff_ac3_window[256]; 00032 extern const uint8_t ff_ac3_log_add_tab[260]; 00033 extern const uint16_t ff_ac3_hearing_threshold_tab[50][3]; 00034 extern const uint8_t ff_ac3_bap_tab[64]; 00035 extern const uint8_t ff_ac3_slow_decay_tab[4]; 00036 extern const uint8_t ff_ac3_fast_decay_tab[4]; 00037 extern const uint16_t ff_ac3_slow_gain_tab[4]; 00038 extern const uint16_t ff_ac3_db_per_bit_tab[4]; 00039 extern const int16_t ff_ac3_floor_tab[8]; 00040 extern const uint16_t ff_ac3_fast_gain_tab[8]; 00041 extern const uint8_t ff_ac3_critical_band_size_tab[50]; 00042 extern const uint16_t ff_eac3_default_chmap[8]; 00043 00049 enum CustomChannelMapLocation{ 00050 AC3_CHMAP_L= 1<<(15-0), 00051 AC3_CHMAP_C= 1<<(15-1), 00052 AC3_CHMAP_R= 1<<(15-2), 00053 AC3_CHMAP_L_SUR= 1<<(15-3), 00054 AC3_CHMAP_R_SUR = 1<<(15-4), 00055 AC3_CHMAP_C_SUR= 1<<(15-7), 00056 AC3_CHMAP_LFE = 1<<(15-15) 00057 }; 00058 00059 #endif /* AVCODEC_AC3TAB_H */