Mercurial > libavcodec.hg
comparison g729dec.c @ 9819:fbc565735c4d libavcodec
Remove ff_g729_ and g729_ prefixes from static routines.
author | voroshil |
---|---|
date | Fri, 05 Jun 2009 17:11:46 +0000 |
parents | 0dce4fe6e6f3 |
children | b72fbafc9408 |
comparison
equal
deleted
inserted
replaced
9818:038c7940a21e | 9819:fbc565735c4d |
---|---|
83 } G729_format_description; | 83 } G729_format_description; |
84 | 84 |
85 /** | 85 /** |
86 * \brief pseudo random number generator | 86 * \brief pseudo random number generator |
87 */ | 87 */ |
88 static inline uint16_t g729_random(uint16_t value) | 88 static inline uint16_t random(uint16_t value) |
89 { | 89 { |
90 return 31821 * value + 13849; | 90 return 31821 * value + 13849; |
91 } | 91 } |
92 | 92 |
93 /** | 93 /** |
94 * Get parity bit of bit 2..7 | 94 * Get parity bit of bit 2..7 |
95 */ | 95 */ |
96 static inline int g729_get_parity(uint8_t value) | 96 static inline int get_parity(uint8_t value) |
97 { | 97 { |
98 return (0x6996966996696996ULL >> (value >> 2)) & 1; | 98 return (0x6996966996696996ULL >> (value >> 2)) & 1; |
99 } | 99 } |
100 | 100 |
101 if(avctx->channels != 1) | 101 if(avctx->channels != 1) |
153 { | 153 { |
154 "g729", | 154 "g729", |
155 CODEC_TYPE_AUDIO, | 155 CODEC_TYPE_AUDIO, |
156 CODEC_ID_G729, | 156 CODEC_ID_G729, |
157 sizeof(G729_Context), | 157 sizeof(G729_Context), |
158 ff_g729_decoder_init, | 158 decoder_init, |
159 NULL, | 159 NULL, |
160 NULL, | 160 NULL, |
161 ff_g729_decode_frame, | 161 decode_frame, |
162 .long_name = NULL_IF_CONFIG_SMALL("G.729"), | 162 .long_name = NULL_IF_CONFIG_SMALL("G.729"), |
163 }; | 163 }; |