Home | History | Annotate | Download | only in cpu_ref

Lines Matching defs:cp

278     RsdCpuScriptIntrinsicBlur *cp = (RsdCpuScriptIntrinsicBlur *)p->usr;
279 if (!cp->mAlloc.get()) {
283 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
284 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
291 if ((p->dimX > cp->mScratchSize[p->lid]) || !cp->mScratch[p->lid]) {
293 cp->mScratch[p->lid] = realloc(cp->mScratch[p->lid], (p->dimX + 1) * 16);
294 cp->mScratchSize[p->lid] = p->dimX;
297 buf = (float4 *) ((((intptr_t)cp->mScratch[p->lid]) + 15) & ~0xf);
301 if ((y > cp->mIradius) && (y < ((int)p->dimY - cp->mIradius))) {
302 const uchar *pi = pin + (y - cp->mIradius) * stride;
303 OneVFU4(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, x1, x2);
306 OneVU4(p, fout, x1, y, pin, stride, cp->mFp, cp->mIradius);
313 while ((x1 < (uint32_t)cp->mIradius) && (x1 < x2)) {
314 OneHU4(p, out, x1, buf, cp->mFp, cp->mIradius);
320 if ((x1 + cp->mIradius) < x2) {
321 rsdIntrinsicBlurHFU4_K(out, buf - cp->mIradius, cp->mFp,
322 cp->mIradius * 2 + 1, x1, x2 - cp->mIradius);
323 out += (x2 - cp->mIradius) - x1;
324 x1 = x2 - cp->mIradius;
329 OneHU4(p, out, x1, buf, cp->mFp, cp->mIradius);
339 RsdCpuScriptIntrinsicBlur *cp = (RsdCpuScriptIntrinsicBlur *)p->usr;
340 if (!cp->mAlloc.get()) {
344 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
345 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
353 if ((y > cp->mIradius) && (y < ((int)p->dimY - cp->mIradius -1))) {
354 const uchar *pi = pin + (y - cp->mIradius) * stride;
355 OneVFU1(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, x1, x2);
358 OneVU1(p, fout, x1, y, pin, stride, cp->mFp, cp->mIradius);
366 ((x1 < (uint32_t)cp->mIradius) || (((uintptr_t)out) & 0x3))) {
367 OneHU1(p, out, x1, buf, cp->mFp, cp->mIradius);
373 if ((x1 + cp->mIradius) < x2) {
374 uint32_t len = x2 - (x1 + cp->mIradius);
377 rsdIntrinsicBlurHFU1_K(out, ((float *)buf) - cp->mIradius, cp->mFp,
378 cp->mIradius * 2 + 1, x1, x1 + len);
386 OneHU1(p, out, x1, buf, cp->mFp, cp->mIradius);