00001 /* 00002 * The simplest AC-3 encoder 00003 * Copyright (c) 2000 Fabrice Bellard 00004 * Copyright (c) 2006-2010 Justin Ruggles <justin.ruggles@gmail.com> 00005 * Copyright (c) 2006-2010 Prakash Punnoor <prakash@punnoor.de> 00006 * 00007 * This file is part of FFmpeg. 00008 * 00009 * FFmpeg is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 * FFmpeg is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with FFmpeg; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 */ 00023 00029 #ifndef AVCODEC_AC3ENC_FIXED_H 00030 #define AVCODEC_AC3ENC_FIXED_H 00031 00032 #include <stdint.h> 00033 00034 00035 typedef int16_t SampleType; 00036 typedef int32_t CoefType; 00037 typedef int64_t CoefSumType; 00038 00039 00044 typedef struct IComplex { 00045 int16_t re,im; 00046 } IComplex; 00047 00048 typedef struct AC3MDCTContext { 00049 const int16_t *window; 00050 int nbits; 00051 int16_t *costab; 00052 int16_t *sintab; 00053 int16_t *xcos1; 00054 int16_t *xsin1; 00055 int16_t *rot_tmp; 00056 IComplex *cplx_tmp; 00057 } AC3MDCTContext; 00058 00059 #endif /* AVCODEC_AC3ENC_FIXED_H */