Mercurial > libavcodec.hg
comparison error_resilience.c @ 1381:f07e17427140 libavcodec
initial XvMC support
| author | iive |
|---|---|
| date | Sat, 26 Jul 2003 01:28:49 +0000 |
| parents | 6e039762d5cb |
| children | da0b3a50d209 |
comparison
equal
deleted
inserted
replaced
| 1380:b120aed7bf84 | 1381:f07e17427140 |
|---|---|
| 892 } | 892 } |
| 893 } | 893 } |
| 894 }else | 894 }else |
| 895 guess_mv(s); | 895 guess_mv(s); |
| 896 | 896 |
| 897 #ifdef HAVE_XVMC | |
| 898 /* the filters below are not XvMC compatible, skip them */ | |
| 899 if(s->avctx->xvmc_acceleration) goto ec_clean; | |
| 900 #endif | |
| 897 /* fill DC for inter blocks */ | 901 /* fill DC for inter blocks */ |
| 898 for(mb_y=0; mb_y<s->mb_height; mb_y++){ | 902 for(mb_y=0; mb_y<s->mb_height; mb_y++){ |
| 899 for(mb_x=0; mb_x<s->mb_width; mb_x++){ | 903 for(mb_x=0; mb_x<s->mb_width; mb_x++){ |
| 900 int dc, dcu, dcv, y, n; | 904 int dc, dcu, dcv, y, n; |
| 901 int16_t *dc_ptr; | 905 int16_t *dc_ptr; |
| 977 v_block_filter(s, s->current_picture.data[0], s->mb_width*2, s->mb_height*2, s->linesize , 1); | 981 v_block_filter(s, s->current_picture.data[0], s->mb_width*2, s->mb_height*2, s->linesize , 1); |
| 978 v_block_filter(s, s->current_picture.data[1], s->mb_width , s->mb_height , s->uvlinesize, 0); | 982 v_block_filter(s, s->current_picture.data[1], s->mb_width , s->mb_height , s->uvlinesize, 0); |
| 979 v_block_filter(s, s->current_picture.data[2], s->mb_width , s->mb_height , s->uvlinesize, 0); | 983 v_block_filter(s, s->current_picture.data[2], s->mb_width , s->mb_height , s->uvlinesize, 0); |
| 980 } | 984 } |
| 981 | 985 |
| 986 ec_clean: | |
| 982 /* clean a few tables */ | 987 /* clean a few tables */ |
| 983 for(i=0; i<s->mb_num; i++){ | 988 for(i=0; i<s->mb_num; i++){ |
| 984 const int mb_xy= s->mb_index2xy[i]; | 989 const int mb_xy= s->mb_index2xy[i]; |
| 985 int error= s->error_status_table[mb_xy]; | 990 int error= s->error_status_table[mb_xy]; |
| 986 | 991 |
