HomeSort by relevance Sort by last modified time
    Searched refs:drvState (Results 1 - 24 of 24) sorted by null

  /frameworks/rs/
rsGrallocConsumer.cpp 51 uint32_t y = a->mHal.drvState.lod[0].dimY;
53 mConsumer->setDefaultBufferSize(a->mHal.drvState.lod[0].dimX, y);
147 mAlloc[idx]->mHal.drvState.lod[0].mallocPtr = reinterpret_cast<uint8_t*>(bufferPointer);
148 mAlloc[idx]->mHal.drvState.lod[0].stride = mSlots[slot].mGraphicBuffer->getStride() *
153 rsAssert(mAlloc[idx]->mHal.drvState.lod[0].dimX ==
155 rsAssert(mAlloc[idx]->mHal.drvState.lod[0].dimY ==
165 // For YUV Allocations, we need to populate the drvState with details of how
173 const int yWidth = mAlloc[idx]->mHal.drvState.lod[0].dimX;
174 const int yHeight = mAlloc[idx]->mHal.drvState.lod[0].dimY;
181 mAlloc[idx]->mHal.drvState.lod[1].dimX = cWidth
    [all...]
rsAllocation.h 88 struct DrvState {
108 mutable DrvState drvState;
203 uint8_t * p = (uint8_t *) mHal.drvState.lod[lod].mallocPtr;
205 p += y * mHal.drvState.lod[lod].stride;
206 p += z * mHal.drvState.lod[lod].stride * mHal.drvState.lod[lod].dimY;
rsAllocation.cpp 173 if ((lod >= mHal.drvState.lodCount) ||
174 (z && (z >= mHal.drvState.lod[lod].dimZ)) ||
186 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) {
187 *stride = mHal.drvState.lod[lod].stride;
189 return mHal.drvState.lod[lod].mallocPtr;
272 if (x >= mHal.drvState.lod[0].dimX) {
277 if (y > 0 && y >= mHal.drvState.lod[0].dimY) {
282 if (z > 0 && z >= mHal.drvState.lod[0].dimZ) {
307 if (x >= mHal.drvState.lod[0].dimX) {
312 if (y > 0 && y >= mHal.drvState.lod[0].dimY)
    [all...]
  /frameworks/support/v8/renderscript/jni/
android_rscompat_usage_io_driver.cpp 28 alloc->mHal.drvState.lod[0].mallocPtr = dst;
29 alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes;
49 r = ANativeWindow_setBuffersGeometry(nw, alloc->mHal.drvState.lod[0].dimX,
50 alloc->mHal.drvState.lod[0].dimY,
73 if (alloc->mHal.drvState.lod[0].mallocPtr) {
78 free(alloc->mHal.drvState.lod[0].mallocPtr);
80 alloc->mHal.drvState.lod[0].mallocPtr = NULL;
  /frameworks/rs/driver/
rsdAllocation.cpp 94 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
95 ptr += face * alloc->mHal.drvState.faceOffset;
96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride;
97 ptr += yoff * alloc->mHal.drvState.lod[lod].stride;
179 if (!alloc->mHal.drvState.lod[0].mallocPtr) {
193 if (alloc->mHal.drvState.lod[0].mallocPtr) {
194 free(alloc->mHal.drvState.lod[0].mallocPtr);
195 alloc->mHal.drvState.lod[0].mallocPtr = nullptr;
221 alloc->mHal.drvState.lod[0].dimX, alloc->mHal.drvState.lod[0].dimY)
    [all...]
rsdMeshObj.cpp 154 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.lod[0].mallocPtr;
175 idxAlloc->mHal.drvState.lod[0].mallocPtr);
rsdRuntimeStubs.cpp 491 uint8_t *p = (uint8_t *)a->mHal.drvState.lod[0].mallocPtr;
493 const uint32_t stride = a->mHal.drvState.lod[0].stride;
494 const uint32_t dimY = a->mHal.drvState.lod[0].dimY;
    [all...]
rsdShader.cpp 534 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr);
  /frameworks/rs/cpu_ref/
rsCpuIntrinsicYuvToRGB.cpp 112 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
118 size_t strideY = cp->alloc->mHal.drvState.lod[0].stride;
121 if (cp->alloc->mHal.drvState.lod[0].dimY == 0) {
130 size_t cstep = cp->alloc->mHal.drvState.yuv.step;
132 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr;
133 const size_t strideU = cp->alloc->mHal.drvState.lod[1].stride;
136 const uchar *pinV = (const uchar *)cp->alloc->mHal.drvState.lod[2].mallocPtr;
137 const size_t strideV = cp->alloc->mHal.drvState.lod[2].stride;
143 //ALOGE("dimX, %d, dimY, %d", cp->alloc->mHal.drvState.lod[0].dimX, cp->alloc->mHal.drvState.lod[0].dimY)
    [all...]
rsCpuIntrinsicResize.cpp 322 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
323 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY;
324 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX;
325 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
389 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
390 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY;
391 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX;
392 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
456 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
457 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY
    [all...]
rsCpuIntrinsic3DLUT.cpp 71 const uchar *bp = (const uchar *)cp->mLUT->mHal.drvState.lod[0].mallocPtr;
74 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimX - 1),
75 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimY - 1),
76 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimZ - 1),
81 const size_t stride_y = cp->mLUT->mHal.drvState.lod[0].stride;
82 const size_t stride_z = stride_y * cp->mLUT->mHal.drvState.lod[0].dimY;
rsCpuScriptGroup.cpp 67 mkinfo->inPtr[0] = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr;
74 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->current.y);
76 } else if (sl->ins[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) {
79 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->lid);
94 (uint8_t *)sl->outs[ct]->mHal.drvState.lod[0].mallocPtr;
101 sl->outs[ct]->mHal.drvState.lod[0].stride * kinfo->current.y;
103 } else if (sl->outs[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) {
106 sl->outs[ct]->mHal.drvState.lod[0].stride * kinfo->lid;
rsCpuIntrinsicLUT.cpp 66 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr;
rsCpuIntrinsicConvolve3x3.cpp 195 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
196 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
242 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
243 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
287 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
288 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
332 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
333 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
377 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
378 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride
    [all...]
rsCpuIntrinsicConvolve5x5.cpp 357 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
358 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
417 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
418 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
466 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
467 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
515 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
516 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
564 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
565 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride
    [all...]
rsCpuScript.cpp 56 return alloc && alloc->mHal.drvState.lod[0].mallocPtr == nullptr;
613 mtls->redp.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr;
620 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr;
722 mtls->fep.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr;
728 mtls->fep.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr;
921 ptr = data->mHal.drvState.lod[0].mallocPtr;
960 if (a->mHal.drvState.lod[0].mallocPtr == ptr) {
    [all...]
rsCpuIntrinsicBlur.cpp 292 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
293 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
363 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
364 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
rsCpuScriptGroup2.cpp 57 const uint8_t* ptr = (uint8_t*)(a->mHal.drvState.lod[0].mallocPtr) +
60 ptr += a->mHal.drvState.lod[0].stride * kinfo->current.y;
69 const uint8_t* ptr = (uint8_t *)(out->mHal.drvState.lod[0].mallocPtr) +
72 ptr += out->mHal.drvState.lod[0].stride * kinfo->current.y;
rsCpuIntrinsicBLAS.cpp 80 *A = ain[0]->mHal.drvState.lod[0].mallocPtr;
81 *lda = (int)(ain[0]->mHal.drvState.lod[0].stride/size);
84 *B = ain[1]->mHal.drvState.lod[0].mallocPtr;
85 *ldb = (int)(ain[1]->mHal.drvState.lod[0].stride/size);
88 *C = ain[2]->mHal.drvState.lod[0].mallocPtr;
89 *ldc = (int)(ain[2]->mHal.drvState.lod[0].stride/size);
    [all...]
rsCpuCore.cpp 858 if ((mtls->aout[0] != nullptr) && mtls->aout[0]->mHal.drvState.lod[0].stride) {
859 s2 = targetByteChunk / mtls->aout[0]->mHal.drvState.lod[0].stride;
861 s2 = targetByteChunk / mtls->ains[0]->mHal.drvState.lod[0].stride;
    [all...]
rsCpuIntrinsicHistogram.cpp 155 unsigned int *o = (unsigned int *)mAllocOut->mHal.drvState.lod[0].mallocPtr;
  /frameworks/rs/driver/runtime/
rs_allocation.c 8 return alloc->mHal.drvState.lod[0].dimX;
14 return alloc->mHal.drvState.lod[0].dimY;
20 return alloc->mHal.drvState.lod[0].dimZ;
113 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr;
115 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride;
116 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY;
128 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr;
130 const uint32_t stride = alloc->mHal.drvState.lod[0].stride;
131 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY;
256 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr
    [all...]
rs_sample.c 272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
322 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
323 size_t stride = alloc->mHal.drvState.lod[lod].stride;
351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
388 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
389 size_t stride = alloc->mHal.drvState.lod[lod].stride;
426 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
428 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX;
458 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX;
472 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr
    [all...]
rs_structs.h 62 struct DrvState {
81 } drvState;

Completed in 1080 milliseconds