FFmpeg
nellymoser.h
Go to the documentation of this file.
1 /*
2  * Common code between Nellymoser encoder and decoder
3  * Copyright (c) 2007 a840bda5870ba11f19698ff6eb9581dfb0f95fa5,
4  * 539459aeb7d425140b62a3ec7dbf6dc8e408a306, and
5  * 520e17cd55896441042b14df2566a6eb610ed444
6  * Copyright (c) 2007 Loic Minier <lool at dooz.org>
7  * Benjamin Larsson
8  *
9  * Permission is hereby granted, free of charge, to any person obtaining a
10  * copy of this software and associated documentation files (the "Software"),
11  * to deal in the Software without restriction, including without limitation
12  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13  * and/or sell copies of the Software, and to permit persons to whom the
14  * Software is furnished to do so, subject to the following conditions:
15  *
16  * The above copyright notice and this permission notice shall be included in
17  * all copies or substantial portions of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25  * DEALINGS IN THE SOFTWARE.
26  */
27 
28 /**
29  * @file
30  * The 3 alphanumeric copyright notices are md5summed they are from the original
31  * implementors. The original code is available from http://code.google.com/p/nelly2pcm/
32  */
33 
34 #ifndef AVCODEC_NELLYMOSER_H
35 #define AVCODEC_NELLYMOSER_H
36 
37 #include <stdint.h>
38 
39 #define NELLY_BANDS 23
40 #define NELLY_BLOCK_LEN 64
41 #define NELLY_HEADER_BITS 116
42 #define NELLY_DETAIL_BITS 198
43 #define NELLY_BUF_LEN 128
44 #define NELLY_FILL_LEN 124
45 #define NELLY_BIT_CAP 6
46 #define NELLY_BASE_OFF 4228
47 #define NELLY_BASE_SHIFT 19
48 #define NELLY_SAMPLES (2 * NELLY_BUF_LEN)
49 
50 extern const float ff_nelly_dequantization_table[127];
51 extern const uint8_t ff_nelly_band_sizes_table[NELLY_BANDS];
52 extern const uint16_t ff_nelly_init_table[64];
53 extern const int16_t ff_nelly_delta_table[32];
54 
55 void ff_nelly_get_sample_bits(const float *buf, int *bits);
56 
57 #endif /* AVCODEC_NELLYMOSER_H */
NELLY_BANDS
#define NELLY_BANDS
Definition: nellymoser.h:39
bits
uint8_t bits
Definition: vp3data.h:128
ff_nelly_delta_table
const int16_t ff_nelly_delta_table[32]
Definition: nellymoser.c:81
ff_nelly_get_sample_bits
void ff_nelly_get_sample_bits(const float *buf, int *bits)
Definition: nellymoser.c:118
ff_nelly_init_table
const uint16_t ff_nelly_init_table[64]
Definition: nellymoser.c:72
ff_nelly_band_sizes_table
const uint8_t ff_nelly_band_sizes_table[NELLY_BANDS]
Definition: nellymoser.c:68
ff_nelly_dequantization_table
const float ff_nelly_dequantization_table[127]
Definition: nellymoser.c:41