[FFmpeg-soc] [soc]: r578 - rv40/h264pred.c
kostya
subversion at mplayerhq.hu
Wed Aug 1 08:09:27 CEST 2007
Author: kostya
Date: Wed Aug 1 08:09:27 2007
New Revision: 578
Log:
Fix down left prediction mode
Modified:
rv40/h264pred.c
Modified: rv40/h264pred.c
==============================================================================
--- rv40/h264pred.c (original)
+++ rv40/h264pred.c Wed Aug 1 08:09:27 2007
@@ -171,7 +171,7 @@ static void pred4x4_down_left_rv40_c(uin
src[1+3*stride]=(t4 + t6 + 2*t5 + 2 + l4 + l6 + 2*l5 + 2)>>3;
src[3+2*stride]=
src[2+3*stride]=(t5 + t7 + 2*t6 + 2 + l5 + l7 + 2*l6 + 2)>>3;
- src[3+3*stride]=(t6 + 3*t7 + 2 + l6 + 3*l7 + 2)>>3;
+ src[3+3*stride]=(t6 + t7 + 1 + l6 + l7 + 1)>>2;
}
static void pred4x4_down_left_rv40_notop_c(uint8_t *src, uint8_t *topright, int stride){
@@ -193,7 +193,7 @@ static void pred4x4_down_left_rv40_notop
src[1+3*stride]=(l4 + l6 + 2*l5 + 2)>>2;
src[3+2*stride]=
src[2+3*stride]=(l5 + l7 + 2*l6 + 2)>>2;
- src[3+3*stride]=(l6 + 3*l7 + 2)>>2;
+ src[3+3*stride]=(l6 + l7 + 1)>>1;
}
static void pred4x4_down_left_rv40_nodown_c(uint8_t *src, uint8_t *topright, int stride){
@@ -216,7 +216,7 @@ static void pred4x4_down_left_rv40_nodow
src[1+3*stride]=(t4 + t6 + 2*t5 + 2 + l3*4 + 2)>>3;
src[3+2*stride]=
src[2+3*stride]=(t5 + t7 + 2*t6 + 2 + l3*4 + 2)>>3;
- src[3+3*stride]=(t6 + 3*t7 + 2 + l3*4 + 2)>>3;
+ src[3+3*stride]=(t6 + t7 + 1 + 2*l3 + 1)>>2;
}
static void pred4x4_vertical_right_c(uint8_t *src, uint8_t *topright, int stride){
More information about the FFmpeg-soc
mailing list