Mercurial > libavcodec.hg
comparison h264.c @ 1330:c05c381a9c47 libavcodec
- fix PLANE_PRED8x8 prediction (H/V are swapped, this is correct!)
- fix B-frame motion compensation
- cleanup motion vector math and other blocks of common code
author | tmmm |
---|---|
date | Fri, 27 Jun 2003 15:05:29 +0000 |
parents | f78341ab5fba |
children | 6e5d4ec4f3ab |
comparison
equal
deleted
inserted
replaced
1329:2114c1e206e8 | 1330:c05c381a9c47 |
---|---|
1710 V += k*(src1[0] - src2[ 0]); | 1710 V += k*(src1[0] - src2[ 0]); |
1711 } | 1711 } |
1712 if(svq3){ | 1712 if(svq3){ |
1713 H = ( 5*(H/4) ) / 16; | 1713 H = ( 5*(H/4) ) / 16; |
1714 V = ( 5*(V/4) ) / 16; | 1714 V = ( 5*(V/4) ) / 16; |
1715 | |
1716 /* required for 100% accuracy */ | |
1717 i = H; H = V; V = i; | |
1715 }else{ | 1718 }else{ |
1716 H = ( 5*H+32 ) >> 6; | 1719 H = ( 5*H+32 ) >> 6; |
1717 V = ( 5*V+32 ) >> 6; | 1720 V = ( 5*V+32 ) >> 6; |
1718 } | 1721 } |
1719 | 1722 |