/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 45 uint32_t y = a->mHal.drvState.lod[0].dimY; in GrallocConsumer() 47 mConsumer->setDefaultBufferSize(a->mHal.drvState.lod[0].dimX, y); in GrallocConsumer() 131 mAlloc->mHal.drvState.lod[0].mallocPtr = reinterpret_cast<uint8_t*>(bufferPointer); in lockNextBuffer() 132 mAlloc->mHal.drvState.lod[0].stride = mSlots[buf].mGraphicBuffer->getStride() * in lockNextBuffer() 137 assert(mAlloc->mHal.drvState.lod[0].dimX == in lockNextBuffer() 139 assert(mAlloc->mHal.drvState.lod[0].dimY == in lockNextBuffer() 150 mAlloc->mHal.drvState.lod[1].mallocPtr = ycbcr.cb; in lockNextBuffer() 151 mAlloc->mHal.drvState.lod[2].mallocPtr = ycbcr.cr; in lockNextBuffer() 153 mAlloc->mHal.drvState.lod[0].stride = ycbcr.ystride; in lockNextBuffer() 154 mAlloc->mHal.drvState.lod[1].stride = ycbcr.cstride; in lockNextBuffer() [all …]
|
D | rsAllocation.cpp | 100 if ((lod >= mHal.drvState.lodCount) || in getPointer() 101 (z && (z >= mHal.drvState.lod[lod].dimZ)) || in getPointer() 109 if ((stride != NULL) && mHal.drvState.lod[0].dimY) { in getPointer() 110 *stride = mHal.drvState.lod[lod].stride; in getPointer() 112 return mHal.drvState.lod[lod].mallocPtr; in getPointer() 200 if (x >= mHal.drvState.lod[0].dimX) { in elementData() 220 if (x >= mHal.drvState.lod[0].dimX) { in elementData() 225 if (y >= mHal.drvState.lod[0].dimY) { in elementData() 271 prefix, mHal.drvState.lod[0].mallocPtr, mHal.state.usageFlags, mHal.state.mipmapControl); in dumpLOGV() 469 uint32_t oldDimX = mHal.drvState.lod[0].dimX; in resize1D() [all …]
|
D | rsAllocation.h | 94 mutable DrvState drvState; member
|
/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 95 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in GetOffsetPtr() 96 ptr += face * alloc->mHal.drvState.faceOffset; in GetOffsetPtr() 97 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 98 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 180 if (!alloc->mHal.drvState.lod[0].mallocPtr) { in UploadToTexture() 194 if (alloc->mHal.drvState.lod[0].mallocPtr) { in UploadToTexture() 195 free(alloc->mHal.drvState.lod[0].mallocPtr); in UploadToTexture() 196 alloc->mHal.drvState.lod[0].mallocPtr = NULL; in UploadToTexture() 222 alloc->mHal.drvState.lod[0].dimX, alloc->mHal.drvState.lod[0].dimY); in AllocateRenderTarget() 248 alloc->mHal.drvState.lod[0].mallocPtr, GL_DYNAMIC_DRAW); in UploadToBufferObject() [all …]
|
D | rsdMeshObj.cpp | 154 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.lod[0].mallocPtr; in renderPrimitiveRange() 175 idxAlloc->mHal.drvState.lod[0].mallocPtr); in renderPrimitiveRange()
|
D | rsdRuntimeStubs.cpp | 746 uint8_t *p = (uint8_t *)a->mHal.drvState.lod[0].mallocPtr; in ElementAt1D() 783 uint8_t *p = (uint8_t *)a->mHal.drvState.lod[0].mallocPtr; in ElementAt2D() 785 const uint32_t stride = a->mHal.drvState.lod[0].stride; in ElementAt2D() 827 uint8_t *p = (uint8_t *)a->mHal.drvState.lod[0].mallocPtr; in ElementAt3D() 829 const uint32_t stride = a->mHal.drvState.lod[0].stride; in ElementAt3D()
|
D | rsdShader.cpp | 532 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr); in setupUserConstants()
|
/frameworks/rs/driver/runtime/ |
D | rs_allocation.c | 8 return alloc->mHal.drvState.lod[0].dimX; in rsAllocationGetDimX() 14 return alloc->mHal.drvState.lod[0].dimY; in rsAllocationGetDimY() 20 return alloc->mHal.drvState.lod[0].dimZ; in rsAllocationGetDimZ() 110 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffset() 112 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; in rsOffset() 113 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffset() 125 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffsetNs() 127 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsOffsetNs() 128 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffsetNs() 192 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsGetElementAt() [all …]
|
D | rs_sample.c | 272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample1D() 322 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample2D() 323 size_t stride = alloc->mHal.drvState.lod[lod].stride; in getBilinearSample2D() 351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample() 388 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample() 389 size_t stride = alloc->mHal.drvState.lod[lod].stride; in getNearestSample() 426 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in sample_LOD_LinearPixel() 428 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_LinearPixel() 458 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_NearestPixel() 472 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in sample_LOD_LinearPixel() [all …]
|
D | rs_structs.h | 66 } drvState; member
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicResize.cpp | 187 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4() 188 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU4() 189 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU4() 190 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() 227 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2() 228 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU2() 229 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU2() 230 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2() 267 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1() 268 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU1() [all …]
|
D | rsCpuIntrinsicYuvToRGB.cpp | 112 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernel() 118 size_t strideY = cp->alloc->mHal.drvState.lod[0].stride; in kernel() 121 if (cp->alloc->mHal.drvState.lod[0].dimY == 0) { in kernel() 130 size_t cstep = cp->alloc->mHal.drvState.yuv.step; in kernel() 132 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr; in kernel() 133 const size_t strideU = cp->alloc->mHal.drvState.lod[1].stride; in kernel() 136 const uchar *pinV = (const uchar *)cp->alloc->mHal.drvState.lod[2].mallocPtr; in kernel() 137 const size_t strideV = cp->alloc->mHal.drvState.lod[2].stride; in kernel() 148 v = ((uint8_t *)cp->alloc->mHal.drvState.lod[0].mallocPtr) + in kernel()
|
D | rsCpuScriptGroup.cpp | 74 mp->ptrIn = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot() 78 mp->in = mp->ptrIn + sl->ins[ct]->mHal.drvState.lod[0].stride * p->y; in scriptGroupRoot() 80 if (sl->ins[ct]->mHal.drvState.lod[0].dimY > p->lid) { in scriptGroupRoot() 81 mp->in = mp->ptrIn + sl->ins[ct]->mHal.drvState.lod[0].stride * p->lid; in scriptGroupRoot() 87 mp->ptrOut = (uint8_t *)sl->outs[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot() 91 mp->out = mp->ptrOut + sl->outs[ct]->mHal.drvState.lod[0].stride * p->y; in scriptGroupRoot() 93 if (sl->outs[ct]->mHal.drvState.lod[0].dimY > p->lid) { in scriptGroupRoot() 94 mp->out = mp->ptrOut + sl->outs[ct]->mHal.drvState.lod[0].stride * p->lid; in scriptGroupRoot()
|
D | rsCpuIntrinsic3DLUT.cpp | 71 const uchar *bp = (const uchar *)cp->mLUT->mHal.drvState.lod[0].mallocPtr; in kernel() 74 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimX - 1), in kernel() 75 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimY - 1), in kernel() 76 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimZ - 1), in kernel() 81 const size_t stride_y = cp->mLUT->mHal.drvState.lod[0].stride; in kernel() 82 const size_t stride_z = stride_y * cp->mLUT->mHal.drvState.lod[0].dimY; in kernel()
|
D | rsCpuIntrinsicConvolve3x3.cpp | 195 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4() 196 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() 242 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2() 243 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2() 287 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1() 288 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU1() 332 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelF4() 333 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelF4() 377 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelF2() 378 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelF2() [all …]
|
D | rsCpuScript.cpp | 805 if (ain && (const uint8_t *)ain->mHal.drvState.lod[0].mallocPtr == NULL) { in forEachMtlsSetup() 809 if (aout && (const uint8_t *)aout->mHal.drvState.lod[0].mallocPtr == NULL) { in forEachMtlsSetup() 895 mtls->fep.ptrIn = (const uint8_t *)ain->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup() 897 mtls->fep.yStrideIn = ain->mHal.drvState.lod[0].stride; in forEachMtlsSetup() 903 mtls->fep.ptrOut = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup() 905 mtls->fep.yStrideOut = aout->mHal.drvState.lod[0].stride; in forEachMtlsSetup() 922 if (ain != NULL && (const uint8_t *)ain->mHal.drvState.lod[0].mallocPtr == NULL) { in forEachMtlsSetup() 929 if (aout && (const uint8_t *)aout->mHal.drvState.lod[0].mallocPtr == NULL) { in forEachMtlsSetup() 1032 (const uint8_t*)ain->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup() 1037 ain->mHal.drvState.lod[0].stride; in forEachMtlsSetup() [all …]
|
D | rsCpuIntrinsicConvolve5x5.cpp | 357 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU4() 358 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU4() 417 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU2() 418 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU2() 466 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU1() 467 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU1() 515 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelF4() 516 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelF4() 564 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelF2() 565 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelF2() [all …]
|
D | rsCpuIntrinsicBlur.cpp | 292 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4() 293 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() 362 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1() 363 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU1()
|
D | rsCpuIntrinsicLUT.cpp | 66 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr; in kernel()
|
D | rsCpuIntrinsicHistogram.cpp | 149 unsigned int *o = (unsigned int *)mAllocOut->mHal.drvState.lod[0].mallocPtr; in postLaunch()
|