comparison error_resilience.c @ 8832:3eaabd9c4371 libavcodec

Remove redundant CONFIG_XVMC option, CONFIG_MPEG_XVMC_DECODER suffices.
author diego
date Sat, 14 Feb 2009 15:37:40 +0000
parents e9d9d946f213
children 886ef38c7b36
comparison
equal deleted inserted replaced
8831:27616b326d57 8832:3eaabd9c4371
561 undamaged_count++; 561 undamaged_count++;
562 } 562 }
563 563
564 if(undamaged_count < 5) return 0; //almost all MBs damaged -> use temporal prediction 564 if(undamaged_count < 5) return 0; //almost all MBs damaged -> use temporal prediction
565 565
566 #if CONFIG_XVMC 566 #if CONFIG_MPEG_XVMC_DECODER
567 //prevent dsp.sad() check, that requires access to the image 567 //prevent dsp.sad() check, that requires access to the image
568 if(s->avctx->xvmc_acceleration && s->pict_type==FF_I_TYPE) return 1; 568 if(s->avctx->xvmc_acceleration && s->pict_type==FF_I_TYPE) return 1;
569 #endif 569 #endif
570 570
571 skip_amount= FFMAX(undamaged_count/50, 1); //check only upto 50 MBs 571 skip_amount= FFMAX(undamaged_count/50, 1); //check only upto 50 MBs
933 } 933 }
934 } 934 }
935 }else 935 }else
936 guess_mv(s); 936 guess_mv(s);
937 937
938 #if CONFIG_XVMC 938 #if CONFIG_MPEG_XVMC_DECODER
939 /* the filters below are not XvMC compatible, skip them */ 939 /* the filters below are not XvMC compatible, skip them */
940 if(s->avctx->xvmc_acceleration) goto ec_clean; 940 if(s->avctx->xvmc_acceleration) goto ec_clean;
941 #endif 941 #endif
942 /* fill DC for inter blocks */ 942 /* fill DC for inter blocks */
943 for(mb_y=0; mb_y<s->mb_height; mb_y++){ 943 for(mb_y=0; mb_y<s->mb_height; mb_y++){
1022 v_block_filter(s, s->current_picture.data[0], s->mb_width*2, s->mb_height*2, s->linesize , 1); 1022 v_block_filter(s, s->current_picture.data[0], s->mb_width*2, s->mb_height*2, s->linesize , 1);
1023 v_block_filter(s, s->current_picture.data[1], s->mb_width , s->mb_height , s->uvlinesize, 0); 1023 v_block_filter(s, s->current_picture.data[1], s->mb_width , s->mb_height , s->uvlinesize, 0);
1024 v_block_filter(s, s->current_picture.data[2], s->mb_width , s->mb_height , s->uvlinesize, 0); 1024 v_block_filter(s, s->current_picture.data[2], s->mb_width , s->mb_height , s->uvlinesize, 0);
1025 } 1025 }
1026 1026
1027 #if CONFIG_XVMC 1027 #if CONFIG_MPEG_XVMC_DECODER
1028 ec_clean: 1028 ec_clean:
1029 #endif 1029 #endif
1030 /* clean a few tables */ 1030 /* clean a few tables */
1031 for(i=0; i<s->mb_num; i++){ 1031 for(i=0; i<s->mb_num; i++){
1032 const int mb_xy= s->mb_index2xy[i]; 1032 const int mb_xy= s->mb_index2xy[i];