~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-updates

« back to all changes in this revision

Viewing changes to libavcodec/apedec.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-02-05 21:45:05 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090205214505-fvn0jkiv3lrkaaq4
Tags: 3:0.svn20090204-2ubuntu1+unstripped1
rebuild using a clean, uncrippled ffmpeg tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "bytestream.h"
28
28
 
29
29
/**
30
 
 * @file apedec.c
 
30
 * @file libavcodec/apedec.c
31
31
 * Monkey's Audio lossless audio decoder
32
32
 */
33
33
 
248
248
 
249
249
/**
250
250
 * Calculate culmulative frequency for next symbol. Does NO update!
 
251
 * @param ctx decoder context
251
252
 * @param tot_f is the total frequency or (code_value)1<<shift
252
253
 * @return the culmulative frequency
253
254
 */
260
261
 
261
262
/**
262
263
 * Decode value with given size in bits
 
264
 * @param ctx decoder context
263
265
 * @param shift number of bits to decode
264
266
 */
265
267
static inline int range_decode_culshift(APEContext * ctx, int shift)
272
274
 
273
275
/**
274
276
 * Update decoding state
 
277
 * @param ctx decoder context
275
278
 * @param sy_f the interval length (frequency of the symbol)
276
279
 * @param lt_f the lower end (frequency sum of < symbols)
277
280
 */
330
333
 
331
334
/**
332
335
 * Decode symbol
 
336
 * @param ctx decoder context
333
337
 * @param counts probability range start position
334
 
 * @param count_diffs probability range widths
 
338
 * @param counts_diff probability range widths
335
339
 */
336
340
static inline int range_get_symbol(APEContext * ctx,
337
341
                                   const uint16_t counts[],