diff options
| author | Jason Sams <jsams@google.com> | 2014-04-29 18:10:50 -0700 |
|---|---|---|
| committer | Jason Sams <jsams@google.com> | 2014-04-29 18:10:50 -0700 |
| commit | 858d0352934596aa46fe97a70f30d4d837f6fc7f (patch) | |
| tree | 1d6c4e42eebbb7aa8af6e3ea8f523c8128f24f69 /cpu_ref/rsCpuIntrinsicColorMatrix.cpp | |
| parent | 564a4004e6db0f4477ac4657b9bdf13b1205c953 (diff) | |
Add comments for fast-path RS kernel
Change-Id: I4b7450383d7b4c788fdfd5555d79dc94836b9fee
Diffstat (limited to 'cpu_ref/rsCpuIntrinsicColorMatrix.cpp')
| -rw-r--r-- | cpu_ref/rsCpuIntrinsicColorMatrix.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu_ref/rsCpuIntrinsicColorMatrix.cpp b/cpu_ref/rsCpuIntrinsicColorMatrix.cpp index aec45c37..724fccda 100644 --- a/cpu_ref/rsCpuIntrinsicColorMatrix.cpp +++ b/cpu_ref/rsCpuIntrinsicColorMatrix.cpp @@ -880,7 +880,11 @@ void RsdCpuScriptIntrinsicColorMatrix::kernel(const RsForEachStubParamStruct *p, int32_t len = x2 - x1; if (gArchUseSIMD) { if((cp->mOptKernel != NULL) && (len >= 4)) { + // The optimized kernel processes 4 pixels at once + // and requires a minimum of 1 chunk of 4 cp->mOptKernel(out, in, cp->ip, len >> 2); + // Update the len and pointers so the generic code can + // finish any leftover pixels len &= ~3; x1 += len; out += outstep * len; |
