Mercurial > libavcodec.hg
comparison ac3dec.c @ 5376:83682d6837e4 libavcodec
revise comment for exponent decoding function
author | jbr |
---|---|
date | Thu, 19 Jul 2007 02:09:58 +0000 |
parents | 7659a1acfba4 |
children | 2020fab0e37a |
comparison
equal
deleted
inserted
replaced
5375:7659a1acfba4 | 5376:83682d6837e4 |
---|---|
443 skip_bits(gb, 8); | 443 skip_bits(gb, 8); |
444 } while(i--); | 444 } while(i--); |
445 } | 445 } |
446 } | 446 } |
447 | 447 |
448 /* Decodes the grouped exponents. | 448 /** |
449 * Decodes the grouped exponents. | |
449 * This function decodes the coded exponents according to exponent strategy | 450 * This function decodes the coded exponents according to exponent strategy |
450 * and stores them in the decoded exponents buffer. | 451 * and stores them in the decoded exponents buffer. |
451 * | 452 * |
452 * @param gb GetBitContext which points to start of coded exponents | 453 * @param[in] gb GetBitContext which points to start of coded exponents |
453 * @param expstr Exponent coding strategy | 454 * @param[in] expstr Exponent coding strategy |
454 * @param ngrps Number of grouped exponetns | 455 * @param[in] ngrps Number of grouped exponents |
455 * @param absexp Absolute exponent | 456 * @param[in] absexp Absolute exponent or DC exponent |
456 * @param dexps Decoded exponents are stored in dexps | 457 * @param[out] dexps Decoded exponents are stored in dexps |
457 * @return Returns 0 if exponents are decoded successfully, -1 if error occurs | |
458 */ | 458 */ |
459 static void decode_exponents(GetBitContext *gb, int expstr, int ngrps, | 459 static void decode_exponents(GetBitContext *gb, int expstr, int ngrps, |
460 uint8_t absexp, uint8_t *dexps) | 460 uint8_t absexp, uint8_t *dexps) |
461 { | 461 { |
462 int i, j, grp, grpsize; | 462 int i, j, grp, grpsize; |