comparison error_resilience.c @ 2628:511e3afc43e1 libavcodec

Ministry of English Composition, reporting for duty (and the word is "skipped", not "skiped"; "skiped" would rhyme with "hyped")
author melanson
date Sun, 24 Apr 2005 17:21:11 +0000
parents 682c57163e60
children ef2149182f1c
comparison
equal deleted inserted replaced
2627:bf158d23bbcc 2628:511e3afc43e1
344 if(!(s->error_status_table[mb_xy]&MV_ERROR)) continue; 344 if(!(s->error_status_table[mb_xy]&MV_ERROR)) continue;
345 345
346 s->mv_dir = MV_DIR_FORWARD; 346 s->mv_dir = MV_DIR_FORWARD;
347 s->mb_intra=0; 347 s->mb_intra=0;
348 s->mv_type = MV_TYPE_16X16; 348 s->mv_type = MV_TYPE_16X16;
349 s->mb_skiped=0; 349 s->mb_skipped=0;
350 350
351 s->dsp.clear_blocks(s->block[0]); 351 s->dsp.clear_blocks(s->block[0]);
352 352
353 s->mb_x= mb_x; 353 s->mb_x= mb_x;
354 s->mb_y= mb_y; 354 s->mb_y= mb_y;
472 pred_count++; 472 pred_count++;
473 473
474 s->mv_dir = MV_DIR_FORWARD; 474 s->mv_dir = MV_DIR_FORWARD;
475 s->mb_intra=0; 475 s->mb_intra=0;
476 s->mv_type = MV_TYPE_16X16; 476 s->mv_type = MV_TYPE_16X16;
477 s->mb_skiped=0; 477 s->mb_skipped=0;
478 478
479 s->dsp.clear_blocks(s->block[0]); 479 s->dsp.clear_blocks(s->block[0]);
480 480
481 s->mb_x= mb_x; 481 s->mb_x= mb_x;
482 s->mb_y= mb_y; 482 s->mb_y= mb_y;
856 if(error&MV_ERROR) continue; //inter with damaged MV 856 if(error&MV_ERROR) continue; //inter with damaged MV
857 if(!(error&AC_ERROR)) continue; //undamaged inter 857 if(!(error&AC_ERROR)) continue; //undamaged inter
858 858
859 s->mv_dir = MV_DIR_FORWARD; 859 s->mv_dir = MV_DIR_FORWARD;
860 s->mb_intra=0; 860 s->mb_intra=0;
861 s->mb_skiped=0; 861 s->mb_skipped=0;
862 if(IS_8X8(mb_type)){ 862 if(IS_8X8(mb_type)){
863 int mb_index= mb_x*2 + mb_y*2*s->b8_stride; 863 int mb_index= mb_x*2 + mb_y*2*s->b8_stride;
864 int j; 864 int j;
865 s->mv_type = MV_TYPE_8X8; 865 s->mv_type = MV_TYPE_8X8;
866 for(j=0; j<4; j++){ 866 for(j=0; j<4; j++){
895 if(!(error&AC_ERROR)) continue; //undamaged inter 895 if(!(error&AC_ERROR)) continue; //undamaged inter
896 896
897 s->mv_dir = MV_DIR_FORWARD|MV_DIR_BACKWARD; 897 s->mv_dir = MV_DIR_FORWARD|MV_DIR_BACKWARD;
898 s->mb_intra=0; 898 s->mb_intra=0;
899 s->mv_type = MV_TYPE_16X16; 899 s->mv_type = MV_TYPE_16X16;
900 s->mb_skiped=0; 900 s->mb_skipped=0;
901 901
902 if(s->pp_time){ 902 if(s->pp_time){
903 int time_pp= s->pp_time; 903 int time_pp= s->pp_time;
904 int time_pb= s->pb_time; 904 int time_pb= s->pb_time;
905 905