diff options
author | Narayan Kamath <narayan@google.com> | 2014-02-27 14:02:51 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-02-27 14:02:51 +0000 |
commit | 3d2e09f0221693de08129edd02adf340a44e7a38 (patch) | |
tree | dec3dc0e7b1d623649011d1f26fda90296c7e7f0 | |
parent | 469b7b5703467590ae9de7f01462baf759d12fbb (diff) | |
parent | d4c6052dd41dd5b942295cea5568783da7670eb4 (diff) | |
download | frameworks_av-3d2e09f0221693de08129edd02adf340a44e7a38.zip frameworks_av-3d2e09f0221693de08129edd02adf340a44e7a38.tar.gz frameworks_av-3d2e09f0221693de08129edd02adf340a44e7a38.tar.bz2 |
am d4c6052d: am 096d72a3: Merge "AArch64: Correction for LP64"
* commit 'd4c6052dd41dd5b942295cea5568783da7670eb4':
AArch64: Correction for LP64
-rwxr-xr-x | media/libstagefright/codecs/on2/h264dec/source/h264bsd_intra_prediction.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/media/libstagefright/codecs/on2/h264dec/source/h264bsd_intra_prediction.c b/media/libstagefright/codecs/on2/h264dec/source/h264bsd_intra_prediction.c index 15eabfb..52c85e5 100755 --- a/media/libstagefright/codecs/on2/h264dec/source/h264bsd_intra_prediction.c +++ b/media/libstagefright/codecs/on2/h264dec/source/h264bsd_intra_prediction.c @@ -1110,7 +1110,7 @@ void Intra16x16PlanePrediction(u8 *data, u8 *above, u8 *left) /* Variables */ - u32 i, j; + i32 i, j; i32 a, b, c; i32 tmp; @@ -1123,20 +1123,20 @@ void Intra16x16PlanePrediction(u8 *data, u8 *above, u8 *left) a = 16 * (above[15] + left[15]); for (i = 0, b = 0; i < 8; i++) - b += ((i32)i + 1) * (above[8+i] - above[6-i]); + b += (i + 1) * (above[8+i] - above[6-i]); b = (5 * b + 32) >> 6; for (i = 0, c = 0; i < 7; i++) - c += ((i32)i + 1) * (left[8+i] - left[6-i]); + c += (i + 1) * (left[8+i] - left[6-i]); /* p[-1,-1] has to be accessed through above pointer */ - c += ((i32)i + 1) * (left[8+i] - above[-1]); + c += (i + 1) * (left[8+i] - above[-1]); c = (5 * c + 32) >> 6; for (i = 0; i < 16; i++) { for (j = 0; j < 16; j++) { - tmp = (a + b * ((i32)j - 7) + c * ((i32)i - 7) + 16) >> 5; + tmp = (a + b * (j - 7) + c * (i - 7) + 16) >> 5; data[i*16+j] = (u8)CLIP1(tmp); } } |