Commit 2f71268b authored by tmmm's avatar tmmm

- 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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1991 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent db4b41dd
...@@ -1712,6 +1712,9 @@ static inline void pred16x16_plane_compat_c(uint8_t *src, int stride, const int ...@@ -1712,6 +1712,9 @@ static inline void pred16x16_plane_compat_c(uint8_t *src, int stride, const int
if(svq3){ if(svq3){
H = ( 5*(H/4) ) / 16; H = ( 5*(H/4) ) / 16;
V = ( 5*(V/4) ) / 16; V = ( 5*(V/4) ) / 16;
/* required for 100% accuracy */
i = H; H = V; V = i;
}else{ }else{
H = ( 5*H+32 ) >> 6; H = ( 5*H+32 ) >> 6;
V = ( 5*V+32 ) >> 6; V = ( 5*V+32 ) >> 6;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment