Mercurial > libavcodec.hg
comparison svq1.c @ 651:45e8f39fda50 libavcodec
put/avg_pixels16
fixing 2 small qpel bugs
author | michaelni |
---|---|
date | Wed, 11 Sep 2002 12:39:53 +0000 |
parents | ba17f7dbe745 |
children | d4cc92144266 |
comparison
equal
deleted
inserted
replaced
650:ef4a33aad86e | 651:45e8f39fda50 |
---|---|
837 motion[(x / 8) + 3].y = mv.y; | 837 motion[(x / 8) + 3].y = mv.y; |
838 | 838 |
839 src = &previous[(x + (mv.x >> 1)) + (y + (mv.y >> 1))*pitch]; | 839 src = &previous[(x + (mv.x >> 1)) + (y + (mv.y >> 1))*pitch]; |
840 dst = current; | 840 dst = current; |
841 | 841 |
842 put_pixels_tab[((mv.y & 1) << 1) | (mv.x & 1)](dst,src,pitch,16); | 842 put_pixels_tab[0][((mv.y & 1) << 1) | (mv.x & 1)](dst,src,pitch,16); |
843 put_pixels_tab[((mv.y & 1) << 1) | (mv.x & 1)](dst+8,src+8,pitch,16); | |
844 | 843 |
845 return 0; | 844 return 0; |
846 } | 845 } |
847 | 846 |
848 static int svq1_motion_inter_4v_block (bit_buffer_t *bitbuf, | 847 static int svq1_motion_inter_4v_block (bit_buffer_t *bitbuf, |
905 /* form predictions */ | 904 /* form predictions */ |
906 for (i=0; i < 4; i++) { | 905 for (i=0; i < 4; i++) { |
907 src = &previous[(x + (pmv[i]->x >> 1)) + (y + (pmv[i]->y >> 1))*pitch]; | 906 src = &previous[(x + (pmv[i]->x >> 1)) + (y + (pmv[i]->y >> 1))*pitch]; |
908 dst = current; | 907 dst = current; |
909 | 908 |
910 put_pixels_tab[((pmv[i]->y & 1) << 1) | (pmv[i]->x & 1)](dst,src,pitch,8); | 909 put_pixels_tab[1][((pmv[i]->y & 1) << 1) | (pmv[i]->x & 1)](dst,src,pitch,8); |
911 | 910 |
912 /* select next block */ | 911 /* select next block */ |
913 if (i & 1) { | 912 if (i & 1) { |
914 current += 8*(pitch - 1); | 913 current += 8*(pitch - 1); |
915 previous += 8*(pitch - 1); | 914 previous += 8*(pitch - 1); |