Mercurial > libavcodec.hg
comparison h263.c @ 8288:800444234375 libavcodec
clear_block mmx
author | lorenm |
---|---|
date | Wed, 10 Dec 2008 21:35:17 +0000 |
parents | d256dbf74ea6 |
children | 20e0f0809b27 |
comparison
equal
deleted
inserted
replaced
8287:7a1d037482c4 | 8288:800444234375 |
---|---|
808 } | 808 } |
809 | 809 |
810 for (i = 0; i < 6; i++) { | 810 for (i = 0; i < 6; i++) { |
811 if (s->block_last_index[i] >= 0 && ((cbp >> (5 - i))&1)==0 ){ | 811 if (s->block_last_index[i] >= 0 && ((cbp >> (5 - i))&1)==0 ){ |
812 s->block_last_index[i]= -1; | 812 s->block_last_index[i]= -1; |
813 memset(s->block[i], 0, sizeof(DCTELEM)*64); | 813 s->dsp.clear_block(s->block[i]); |
814 } | 814 } |
815 } | 815 } |
816 }else{ | 816 }else{ |
817 cbp= 0; | 817 cbp= 0; |
818 for (i = 0; i < 6; i++) { | 818 for (i = 0; i < 6; i++) { |
851 } | 851 } |
852 | 852 |
853 for (i = 0; i < 6; i++) { | 853 for (i = 0; i < 6; i++) { |
854 if (s->block_last_index[i] >= 0 && ((cbp >> (5 - i))&1)==0 ){ | 854 if (s->block_last_index[i] >= 0 && ((cbp >> (5 - i))&1)==0 ){ |
855 s->block_last_index[i]= -1; | 855 s->block_last_index[i]= -1; |
856 memset(s->block[i], 0, sizeof(DCTELEM)*64); | 856 s->dsp.clear_block(s->block[i]); |
857 } | 857 } |
858 } | 858 } |
859 }else{ | 859 }else{ |
860 for (i = 0; i < 6; i++) { | 860 for (i = 0; i < 6; i++) { |
861 if (s->block_last_index[i] >= 0) | 861 if (s->block_last_index[i] >= 0) |
4649 if(s->alt_inter_vlc && rl == &rl_inter && !s->mb_intra){ | 4649 if(s->alt_inter_vlc && rl == &rl_inter && !s->mb_intra){ |
4650 //Looks like a hack but no, it's the way it is supposed to work ... | 4650 //Looks like a hack but no, it's the way it is supposed to work ... |
4651 rl = &rl_intra_aic; | 4651 rl = &rl_intra_aic; |
4652 i = 0; | 4652 i = 0; |
4653 s->gb= gb; | 4653 s->gb= gb; |
4654 memset(block, 0, sizeof(DCTELEM)*64); | 4654 s->dsp.clear_block(block); |
4655 goto retry; | 4655 goto retry; |
4656 } | 4656 } |
4657 av_log(s->avctx, AV_LOG_ERROR, "run overflow at %dx%d i:%d\n", s->mb_x, s->mb_y, s->mb_intra); | 4657 av_log(s->avctx, AV_LOG_ERROR, "run overflow at %dx%d i:%d\n", s->mb_x, s->mb_y, s->mb_intra); |
4658 return -1; | 4658 return -1; |
4659 } | 4659 } |