Mercurial > libavcodec.hg
comparison dv.c @ 7708:5b1991f9f129 libavcodec
Cosmetic change aimed at making it easier to see how bits are consumed
author | romansh |
---|---|
date | Wed, 27 Aug 2008 20:25:47 +0000 |
parents | beabdadf79e6 |
children | e8f71784062e |
comparison
equal
deleted
inserted
replaced
7707:beabdadf79e6 | 7708:5b1991f9f129 |
---|---|
383 init_get_bits(&gb, buf_ptr, last_index); | 383 init_get_bits(&gb, buf_ptr, last_index); |
384 | 384 |
385 /* get the dc */ | 385 /* get the dc */ |
386 dc = get_sbits(&gb, 9); | 386 dc = get_sbits(&gb, 9); |
387 dct_mode = get_bits1(&gb); | 387 dct_mode = get_bits1(&gb); |
388 class1 = get_bits(&gb, 2); | |
388 mb->idct_put = s->idct_put[dct_mode && log2_blocksize==3]; | 389 mb->idct_put = s->idct_put[dct_mode && log2_blocksize==3]; |
389 mb->scan_table = s->dv_zigzag[dct_mode]; | 390 mb->scan_table = s->dv_zigzag[dct_mode]; |
390 class1 = get_bits(&gb, 2); | |
391 mb->factor_table = s->dv_idct_factor[class1 == 3][dct_mode] | 391 mb->factor_table = s->dv_idct_factor[class1 == 3][dct_mode] |
392 [quant + dv_quant_offset[class1]]; | 392 [quant + dv_quant_offset[class1]]; |
393 dc = dc << 2; | 393 dc = dc << 2; |
394 /* convert to unsigned because 128 is not added in the | 394 /* convert to unsigned because 128 is not added in the |
395 standard IDCT */ | 395 standard IDCT */ |