55 |
* 22.12.2001 lock based interpolation |
* 22.12.2001 lock based interpolation |
56 |
* 01.12.2001 inital version; (c)2001 peter ross <pross@cs.rmit.edu.au> |
* 01.12.2001 inital version; (c)2001 peter ross <pross@cs.rmit.edu.au> |
57 |
* |
* |
58 |
* $Id: decoder.c,v 1.37 2002-09-04 03:23:23 h Exp $ |
* $Id: decoder.c,v 1.37.2.1 2002-09-26 01:54:54 h Exp $ |
59 |
* |
* |
60 |
*************************************************************************/ |
*************************************************************************/ |
61 |
|
|
268 |
start_timer(); |
start_timer(); |
269 |
if (cbp & (1 << (5 - i))) // coded |
if (cbp & (1 << (5 - i))) // coded |
270 |
{ |
{ |
271 |
get_intra_block(bs, &block[i * 64], pMB->acpred_directions[i], |
int direction = dec->alternate_vertical_scan ? |
272 |
start_coeff); |
2 : pMB->acpred_directions[i]; |
273 |
|
|
274 |
|
get_intra_block(bs, &block[i * 64], direction, start_coeff); |
275 |
} |
} |
276 |
stop_coding_timer(); |
stop_coding_timer(); |
277 |
|
|
409 |
stop_comp_timer(); |
stop_comp_timer(); |
410 |
|
|
411 |
for (i = 0; i < 6; i++) { |
for (i = 0; i < 6; i++) { |
412 |
|
int direction = dec->alternate_vertical_scan ? 2 : 0; |
413 |
|
|
414 |
if (cbp & (1 << (5 - i))) // coded |
if (cbp & (1 << (5 - i))) // coded |
415 |
{ |
{ |
416 |
memset(&block[i * 64], 0, 64 * sizeof(int16_t)); // clear |
memset(&block[i * 64], 0, 64 * sizeof(int16_t)); // clear |
417 |
|
|
418 |
start_timer(); |
start_timer(); |
419 |
get_inter_block(bs, &block[i * 64]); |
get_inter_block(bs, &block[i * 64], direction); |
420 |
stop_coding_timer(); |
stop_coding_timer(); |
421 |
|
|
422 |
start_timer(); |
start_timer(); |
589 |
|
|
590 |
start_timer(); |
start_timer(); |
591 |
image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height, |
image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height, |
592 |
dec->width, dec->height, dec->interlacing); |
dec->width, dec->height); |
593 |
stop_edges_timer(); |
stop_edges_timer(); |
594 |
|
|
595 |
bound = 0; |
bound = 0; |
880 |
stop_comp_timer(); |
stop_comp_timer(); |
881 |
|
|
882 |
for (i = 0; i < 6; i++) { |
for (i = 0; i < 6; i++) { |
883 |
|
int direction = dec->alternate_vertical_scan ? 2 : 0; |
884 |
|
|
885 |
if (cbp & (1 << (5 - i))) // coded |
if (cbp & (1 << (5 - i))) // coded |
886 |
{ |
{ |
887 |
memset(&block[i * 64], 0, 64 * sizeof(int16_t)); // clear |
memset(&block[i * 64], 0, 64 * sizeof(int16_t)); // clear |
888 |
|
|
889 |
start_timer(); |
start_timer(); |
890 |
get_inter_block(bs, &block[i * 64]); |
get_inter_block(bs, &block[i * 64], direction); |
891 |
stop_coding_timer(); |
stop_coding_timer(); |
892 |
|
|
893 |
start_timer(); |
start_timer(); |
1048 |
stop_comp_timer(); |
stop_comp_timer(); |
1049 |
|
|
1050 |
for (i = 0; i < 6; i++) { |
for (i = 0; i < 6; i++) { |
1051 |
|
int direction = dec->alternate_vertical_scan ? 2 : 0; |
1052 |
|
|
1053 |
if (cbp & (1 << (5 - i))) // coded |
if (cbp & (1 << (5 - i))) // coded |
1054 |
{ |
{ |
1055 |
memset(&block[i * 64], 0, 64 * sizeof(int16_t)); // clear |
memset(&block[i * 64], 0, 64 * sizeof(int16_t)); // clear |
1056 |
|
|
1057 |
start_timer(); |
start_timer(); |
1058 |
get_inter_block(bs, &block[i * 64]); |
get_inter_block(bs, &block[i * 64], direction); |
1059 |
stop_coding_timer(); |
stop_coding_timer(); |
1060 |
|
|
1061 |
start_timer(); |
start_timer(); |
1150 |
|
|
1151 |
start_timer(); |
start_timer(); |
1152 |
image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height, |
image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height, |
1153 |
dec->width, dec->height, dec->interlacing); |
dec->width, dec->height); |
1154 |
image_setedges(&dec->refn[1], dec->edged_width, dec->edged_height, |
image_setedges(&dec->refn[1], dec->edged_width, dec->edged_height, |
1155 |
dec->width, dec->height, dec->interlacing); |
dec->width, dec->height); |
1156 |
stop_edges_timer(); |
stop_edges_timer(); |
1157 |
|
|
1158 |
#ifdef BFRAMES_DEC_DEBUG |
#ifdef BFRAMES_DEC_DEBUG |