Mercurial > libavcodec.hg
comparison g729dec.c @ 7693:dc309e45a671 libavcodec
Another set of definitions for G.729
author | voroshil |
---|---|
date | Tue, 26 Aug 2008 07:10:38 +0000 |
parents | bdb1bdcd4cd0 |
children | 272a13ae94c0 |
comparison
equal
deleted
inserted
replaced
7692:3ced4fb23342 | 7693:dc309e45a671 |
---|---|
47 * 0.0391 in Q13 | 47 * 0.0391 in Q13 |
48 */ | 48 */ |
49 #define LSFQ_DIFF_MIN 321 | 49 #define LSFQ_DIFF_MIN 321 |
50 | 50 |
51 /** | 51 /** |
52 * minimum gain pitch value (3.8, Equation 47) | |
53 * 0.2 in (1.14) | |
54 */ | |
55 #define SHARP_MIN 3277 | |
56 | |
57 /** | |
58 * maximum gain pitch value (3.8, Equation 47) | |
59 * (EE) This does not comply with the specification. | |
60 * Specification says about 0.8, which should be | |
61 * 13107 in (1.14), but reference C code uses | |
62 * 13017 (equals to 0.7945) instead of it. | |
63 */ | |
64 #define SHARP_MAX 13017 | |
65 | |
66 /** | |
52 * \brief pseudo random number generator | 67 * \brief pseudo random number generator |
53 */ | 68 */ |
54 static inline uint16_t g729_random(uint16_t value) | 69 static inline uint16_t g729_random(uint16_t value) |
55 { | 70 { |
56 return 31821 * value + 13849; | 71 return 31821 * value + 13849; |