Mercurial > libavcodec.hg
comparison dv.c @ 2247:f8ac68cd4fa8 libavcodec
* simplification patch by Jeffrey Ryan Muizelaar
author | romansh |
---|---|
date | Wed, 22 Sep 2004 05:04:18 +0000 |
parents | 141a9539e270 |
children | 26560d4fdb1f |
comparison
equal
deleted
inserted
replaced
2246:3414ac0b8c55 | 2247:f8ac68cd4fa8 |
---|---|
392 for(j = 0;j < 6; j++) { | 392 for(j = 0;j < 6; j++) { |
393 last_index = block_sizes[j]; | 393 last_index = block_sizes[j]; |
394 init_get_bits(&gb, buf_ptr, last_index); | 394 init_get_bits(&gb, buf_ptr, last_index); |
395 | 395 |
396 /* get the dc */ | 396 /* get the dc */ |
397 dc = get_bits(&gb, 9); | 397 dc = get_sbits(&gb, 9); |
398 dc = (dc << (32 - 9)) >> (32 - 9); | |
399 dct_mode = get_bits1(&gb); | 398 dct_mode = get_bits1(&gb); |
400 mb->dct_mode = dct_mode; | 399 mb->dct_mode = dct_mode; |
401 mb->scan_table = s->dv_zigzag[dct_mode]; | 400 mb->scan_table = s->dv_zigzag[dct_mode]; |
402 class1 = get_bits(&gb, 2); | 401 class1 = get_bits(&gb, 2); |
403 mb->shift_table = s->dv_idct_shift[class1 == 3][dct_mode] | 402 mb->shift_table = s->dv_idct_shift[class1 == 3][dct_mode] |