diff options
author | Jason Sams <jsams@google.com> | 2013-01-25 19:44:04 -0800 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2013-01-25 19:44:04 -0800 |
commit | ce0351debba8dadd1a7af2b3e926de6d787b49af (patch) | |
tree | 1dd5d733de7c94672355aaa89770cdf3d9a81392 /cpu_ref/rsCpuIntrinsicBlur.cpp | |
parent | aa49395cad23d270467a4137cd4e3340458ee5be (diff) | |
download | rs-ce0351debba8dadd1a7af2b3e926de6d787b49af.tar.gz |
Fix intrinsic bugs.
Change-Id: I027e5dcd8e538e52a21941facc5b93db2a6eac8c
Diffstat (limited to 'cpu_ref/rsCpuIntrinsicBlur.cpp')
-rw-r--r-- | cpu_ref/rsCpuIntrinsicBlur.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu_ref/rsCpuIntrinsicBlur.cpp b/cpu_ref/rsCpuIntrinsicBlur.cpp index d44b07ae..1a28aabc 100644 --- a/cpu_ref/rsCpuIntrinsicBlur.cpp +++ b/cpu_ref/rsCpuIntrinsicBlur.cpp @@ -211,7 +211,7 @@ static void OneVFU1(float *out, int t = (x2 - x1) >> 2; t &= ~1; if(t) { - rsdIntrinsicBlurVFU4_K(out, ptrIn, iStride, gPtr, ct, 0, t << 2); + rsdIntrinsicBlurVFU4_K(out, ptrIn, iStride, gPtr, ct, 0, t ); len -= t << 2; ptrIn += t << 2; out += t << 2; @@ -345,7 +345,7 @@ void RsdCpuScriptIntrinsicBlur::kernelU1(const RsForEachStubParamStruct *p, float *fout = (float *)buf; int y = p->y; - if ((y > cp->mIradius) && (y < ((int)p->dimY - cp->mIradius))) { + if ((y > cp->mIradius) && (y < ((int)p->dimY - cp->mIradius -1))) { const uchar *pi = pin + (y - cp->mIradius) * stride; OneVFU1(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, x1, x2); } else { |