comparison apedec.c @ 8683:a262391f1ac6 libavcodec

Fix Doxygen comments for APE decoder.
author kostya
date Wed, 28 Jan 2009 07:15:22 +0000
parents f11197441364
children e9d9d946f213
comparison
equal deleted inserted replaced
8682:5698999894ec 8683:a262391f1ac6
246 } 246 }
247 } 247 }
248 248
249 /** 249 /**
250 * Calculate culmulative frequency for next symbol. Does NO update! 250 * Calculate culmulative frequency for next symbol. Does NO update!
251 * @param ctx decoder context
251 * @param tot_f is the total frequency or (code_value)1<<shift 252 * @param tot_f is the total frequency or (code_value)1<<shift
252 * @return the culmulative frequency 253 * @return the culmulative frequency
253 */ 254 */
254 static inline int range_decode_culfreq(APEContext * ctx, int tot_f) 255 static inline int range_decode_culfreq(APEContext * ctx, int tot_f)
255 { 256 {
258 return ctx->rc.low / ctx->rc.help; 259 return ctx->rc.low / ctx->rc.help;
259 } 260 }
260 261
261 /** 262 /**
262 * Decode value with given size in bits 263 * Decode value with given size in bits
264 * @param ctx decoder context
263 * @param shift number of bits to decode 265 * @param shift number of bits to decode
264 */ 266 */
265 static inline int range_decode_culshift(APEContext * ctx, int shift) 267 static inline int range_decode_culshift(APEContext * ctx, int shift)
266 { 268 {
267 range_dec_normalize(ctx); 269 range_dec_normalize(ctx);
270 } 272 }
271 273
272 274
273 /** 275 /**
274 * Update decoding state 276 * Update decoding state
277 * @param ctx decoder context
275 * @param sy_f the interval length (frequency of the symbol) 278 * @param sy_f the interval length (frequency of the symbol)
276 * @param lt_f the lower end (frequency sum of < symbols) 279 * @param lt_f the lower end (frequency sum of < symbols)
277 */ 280 */
278 static inline void range_decode_update(APEContext * ctx, int sy_f, int lt_f) 281 static inline void range_decode_update(APEContext * ctx, int sy_f, int lt_f)
279 { 282 {
328 3, 2, 1, 1, 1, 331 3, 2, 1, 1, 1,
329 }; 332 };
330 333
331 /** 334 /**
332 * Decode symbol 335 * Decode symbol
336 * @param ctx decoder context
333 * @param counts probability range start position 337 * @param counts probability range start position
334 * @param count_diffs probability range widths 338 * @param counts_diff probability range widths
335 */ 339 */
336 static inline int range_get_symbol(APEContext * ctx, 340 static inline int range_get_symbol(APEContext * ctx,
337 const uint16_t counts[], 341 const uint16_t counts[],
338 const uint16_t counts_diff[]) 342 const uint16_t counts_diff[])
339 { 343 {