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

libavcodec/nellymoser.h

Go to the documentation of this file.
00001 /*
00002  * Common code between Nellymoser encoder and decoder
00003  * Copyright (c) 2007 a840bda5870ba11f19698ff6eb9581dfb0f95fa5,
00004  *                    539459aeb7d425140b62a3ec7dbf6dc8e408a306, and
00005  *                    520e17cd55896441042b14df2566a6eb610ed444
00006  * Copyright (c) 2007 Loic Minier <lool at dooz.org>
00007  *                    Benjamin Larsson
00008  *
00009  * Permission is hereby granted, free of charge, to any person obtaining a
00010  * copy of this software and associated documentation files (the "Software"),
00011  * to deal in the Software without restriction, including without limitation
00012  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00013  * and/or sell copies of the Software, and to permit persons to whom the
00014  * Software is furnished to do so, subject to the following conditions:
00015  *
00016  * The above copyright notice and this permission notice shall be included in
00017  * all copies or substantial portions of the Software.
00018  *
00019  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00020  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00021  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00022  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00023  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00024  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00025  * DEALINGS IN THE SOFTWARE.
00026  */
00027 
00034 #ifndef AVCODEC_NELLYMOSER_H
00035 #define AVCODEC_NELLYMOSER_H
00036 
00037 #include "avcodec.h"
00038 
00039 #define NELLY_BANDS       23
00040 #define NELLY_BLOCK_LEN   64
00041 #define NELLY_HEADER_BITS 116
00042 #define NELLY_DETAIL_BITS 198
00043 #define NELLY_BUF_LEN     128
00044 #define NELLY_FILL_LEN    124
00045 #define NELLY_BIT_CAP     6
00046 #define NELLY_BASE_OFF    4228
00047 #define NELLY_BASE_SHIFT  19
00048 #define NELLY_SAMPLES     (2 * NELLY_BUF_LEN)
00049 
00050 extern const float    ff_nelly_dequantization_table[127];
00051 extern const uint8_t  ff_nelly_band_sizes_table[NELLY_BANDS];
00052 extern const uint16_t ff_nelly_init_table[64];
00053 extern const int16_t  ff_nelly_delta_table[32];
00054 
00055 void ff_nelly_get_sample_bits(const float *buf, int *bits);
00056 
00057 #endif

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