/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 89 uint32_t lod, RsAllocationCubemapFace face) { in GetOffsetPtr() argument 90 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in GetOffsetPtr() 92 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 93 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 100 uint32_t xoff, uint32_t yoff, uint32_t lod, in Update2DTexture() argument 112 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture() 131 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) { in Upload2DTexture() local 132 const uint8_t *p = GetOffsetPtr(alloc, 0, 0, 0, lod, (RsAllocationCubemapFace)face); in Upload2DTexture() 140 RSD_CALL_GL(glTexImage2D, t, lod, drv->glFormat, in Upload2DTexture() 141 alloc->mHal.state.type->getLODDimX(lod), in Upload2DTexture() [all …]
|
D | rsdAllocation.h | 112 uint32_t xoff, uint32_t lod, size_t count, 116 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 121 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 127 uint32_t xoff, uint32_t lod, size_t count, 131 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 136 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
/frameworks/rs/driver/runtime/ |
D | rs_sample.c | 270 rs_data_kind dk, rs_data_type dt, uint32_t lod) { in getBilinearSample1D() argument 272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample1D() 320 rs_data_kind dk, rs_data_type dt, uint32_t lod) { in getBilinearSample2D() argument 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() 349 rs_data_type dt, uint32_t lod) { in getNearestSample() argument 351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample() 386 rs_data_type dt, uint32_t lod) { in getNearestSample() argument 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() [all …]
|
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() 68 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffset() 69 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; in rsOffset() 70 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffset() 79 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffsetNs() 80 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsOffsetNs() 81 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffsetNs() 194 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsGetElementAt() [all …]
|
/frameworks/rs/ |
D | rsAllocation.h | 91 } lod[android::renderscript::Allocation::MAX_LOD]; member 132 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size… 133 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 135 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 138 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes); 139 … void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 141 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 191 void * getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, 195 uint32_t z = 0, uint32_t lod = 0, 199 uint8_t * p = (uint8_t *) mHal.drvState.lod[lod].mallocPtr; [all …]
|
D | rsGrallocConsumer.cpp | 36 uint32_t width = a->mHal.drvState.lod[0].dimX; in GrallocConsumer() 37 uint32_t height = a->mHal.drvState.lod[0].dimY; in GrallocConsumer() 161 mAlloc[idx]->mHal.drvState.lod[0].mallocPtr = data; in lockNextBuffer() 162 mAlloc[idx]->mHal.drvState.lod[0].stride = rowstride; in lockNextBuffer() 167 const int yWidth = mAlloc[idx]->mHal.drvState.lod[0].dimX; in lockNextBuffer() 168 const int yHeight = mAlloc[idx]->mHal.drvState.lod[0].dimY; in lockNextBuffer() 215 mAlloc[idx]->mHal.drvState.lod[1].dimX = cWidth; in lockNextBuffer() 216 mAlloc[idx]->mHal.drvState.lod[1].dimY = cHeight; in lockNextBuffer() 217 mAlloc[idx]->mHal.drvState.lod[2].dimX = cWidth; in lockNextBuffer() 218 mAlloc[idx]->mHal.drvState.lod[2].dimY = cHeight; in lockNextBuffer() [all …]
|
D | rsType.h | 86 uint32_t getLODDimX(uint32_t lod) const { in getLODDimX() argument 87 rsAssert(lod < mHal.state.lodCount); in getLODDimX() 88 return mHal.state.lodDimX[lod]; in getLODDimX() 90 uint32_t getLODDimY(uint32_t lod) const { in getLODDimY() argument 91 rsAssert(lod < mHal.state.lodCount); in getLODDimY() 92 return mHal.state.lodDimY[lod]; in getLODDimY() 94 uint32_t getLODDimZ(uint32_t lod) const { in getLODDimZ() argument 95 rsAssert(lod < mHal.state.lodCount); in getLODDimZ() 96 return mHal.state.lodDimZ[lod]; in getLODDimZ()
|
D | rsAllocation.cpp | 172 void * Allocation::getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, in getPointer() argument 175 if ((lod >= mHal.drvState.lodCount) || in getPointer() 176 (z && (z >= mHal.drvState.lod[lod].dimZ)) || in getPointer() 184 mRSC->mHal.funcs.allocation.getPointer(rsc, this, lod, face, z, array); in getPointer() 188 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) { in getPointer() 189 *stride = mHal.drvState.lod[lod].stride; in getPointer() 191 return mHal.drvState.lod[lod].mallocPtr; in getPointer() 194 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data() argument 208 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data() 212 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data() argument [all …]
|
D | rs.spec | 169 param uint32_t lod 180 param uint32_t lod 188 param uint32_t lod 198 param uint32_t lod 207 param uint32_t lod 220 param uint32_t lod 240 param uint32_t lod 250 param uint32_t lod 259 param uint32_t lod 272 param uint32_t lod
|
D | rsApiStubs.cpp | 391 extern "C" void * rsAllocationGetPointer (RsContext ctxWrapper, RsAllocation va, uint32_t lod, RsAl… in rsAllocationGetPointer() argument 394 …return RS_DISPATCH(ctxWrapper, AllocationGetPointer, va, lod, face, z, array, stride, stride_lengt… in rsAllocationGetPointer() 397 …location1DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, in rsAllocation1DData() argument 400 RS_DISPATCH(ctxWrapper, Allocation1DData, va, xoff, lod, count, data, data_length); in rsAllocation1DData() 403 …C" void rsAllocation1DElementData (RsContext ctxWrapper, RsAllocation va, uint32_t x, uint32_t lod, in rsAllocation1DElementData() argument 406 RS_DISPATCH(ctxWrapper, Allocation1DElementData, va, x, lod, data, data_length, comp_offset); in rsAllocation1DElementData() 410 … uint32_t lod, const void * data, size_t data_length, size_t comp_offset) in rsAllocationElementData() argument 412 … RS_DISPATCH(ctxWrapper, AllocationElementData, va, x, y, z, lod, data, data_length, comp_offset); in rsAllocationElementData() 415 …llocation2DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, in rsAllocation2DData() argument 419 …RS_DISPATCH(ctxWrapper, Allocation2DData, va, xoff, yoff, lod, face, w, h, data, data_length, stri… in rsAllocation2DData() [all …]
|
D | rsScriptC_Lib.cpp | 249 uint32_t lod, uint32_t w, uint32_t h) { in validateCopyArgs() argument 252 if (lod >= alloc->mHal.drvState.lodCount) { in validateCopyArgs() 255 ss << lod << " >= " << alloc->mHal.drvState.lodCount; in validateCopyArgs() 260 const uint32_t allocDimX = alloc->mHal.drvState.lod[lod].dimX; in validateCopyArgs() 272 const uint32_t allocDimY = alloc->mHal.drvState.lod[lod].dimY; in validateCopyArgs()
|
D | rsApiStubs.h | 70 extern "C" void * rsAllocationGetPointer (RsContext rsc, RsAllocation va, uint32_t lod, RsAllocatio… 71 extern "C" void rsAllocation1DData (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t lod, ui… 72 extern "C" void rsAllocation1DElementData (RsContext rsc, RsAllocation va, uint32_t x, uint32_t lod… 73 …Context rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t z, uint32_t lod, const void * data,… 74 …ta (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubema… 75 …sc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32… 78 extern "C" void rsAllocation1DRead (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t lod, ui… 79 …Context rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t z, uint32_t lod, void * data, size_… 80 …ad (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubema… 81 …sc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32…
|
D | rs_hal.h | 245 uint32_t xoff, uint32_t lod, size_t count, 248 uint32_t xoff, uint32_t yoff, uint32_t lod, 252 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 257 uint32_t xoff, uint32_t lod, size_t count, 260 uint32_t xoff, uint32_t yoff, uint32_t lod, 264 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 309 uint32_t lod, RsAllocationCubemapFace face,
|
D | rsHidlAdaptation.cpp | 556 …ptation::Allocation1DData (RsContext context, RsAllocation allocation, uint32_t xoff, uint32_t lod, in Allocation1DData() argument 564 GetIContextHandle(context)->allocation1DWrite(_allocation, xoff, lod, count, _data); in Allocation1DData() 567 … uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) in Allocation1DElementData() argument 574 GetIContextHandle(context)->allocationElementWrite(_allocation, xoff, 0, 0, lod, _data, eoff); in Allocation1DElementData() 578 … uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) in AllocationElementData() argument 585 GetIContextHandle(context)->allocationElementWrite(_allocation, x, y, z, lod, _data, eoff); in AllocationElementData() 589 uint32_t lod, RsAllocationCubemapFace face, in Allocation2DData() argument 597 …GetIContextHandle(context)->allocation2DWrite(_allocation, xoff, yoff, lod, (AllocationCubemapFace… in Allocation2DData() 600 …ontext context, RsAllocation allocation, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, in Allocation3DData() argument 608 …GetIContextHandle(context)->allocation3DWrite(_allocation, xoff, yoff, zoff, lod, w, h, d, _data, … in Allocation3DData() [all …]
|
D | rsType.cpp | 106 for (uint32_t lod=0; lod < mHal.state.lodCount; lod++) { in compute() local 107 mHal.state.lodDimX[lod] = tx; in compute() 108 mHal.state.lodDimY[lod] = ty; in compute() 109 mHal.state.lodDimZ[lod] = tz; in compute()
|
/frameworks/rs/support/jni/ |
D | android_rscompat_usage_io_driver.cpp | 28 alloc->mHal.drvState.lod[0].mallocPtr = dst; in IoGetBuffer() 29 … alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes; in IoGetBuffer() 49 r = ANativeWindow_setBuffersGeometry(nw, alloc->mHal.drvState.lod[0].dimX, in rscAllocationSetSurface() 50 alloc->mHal.drvState.lod[0].dimY, in rscAllocationSetSurface() 73 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rscAllocationDestroy() 78 free(alloc->mHal.drvState.lod[0].mallocPtr); in rscAllocationDestroy() 80 alloc->mHal.drvState.lod[0].mallocPtr = NULL; in rscAllocationDestroy()
|
/frameworks/base/rs/java/android/renderscript/ |
D | AllocationAdapter.java | 39 void initLOD(int lod) { in initLOD() argument 40 if (lod < 0) { in initLOD() 41 throw new RSIllegalArgumentException("Attempting to set negative lod (" + lod + ")."); in initLOD() 48 for (int ct=0; ct < lod; ct++) { in initLOD() 50 … throw new RSIllegalArgumentException("Attempting to set lod (" + lod + ") out of range."); in initLOD() 103 public void setLOD(int lod) { in setLOD() argument 111 initLOD(lod); in setLOD() 112 mSelectedLOD = lod; in setLOD()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicYuvToRGB.cpp | 106 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernel() 112 size_t strideY = cp->alloc->mHal.drvState.lod[0].stride; in kernel() 115 if (cp->alloc->mHal.drvState.lod[0].dimY == 0) { in kernel() 126 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr; in kernel() 127 const size_t strideU = cp->alloc->mHal.drvState.lod[1].stride; in kernel() 130 const uchar *pinV = (const uchar *)cp->alloc->mHal.drvState.lod[2].mallocPtr; in kernel() 131 const size_t strideV = cp->alloc->mHal.drvState.lod[2].stride; in kernel() 142 v = ((uint8_t *)cp->alloc->mHal.drvState.lod[0].mallocPtr) + in kernel()
|
D | rsCpuIntrinsicResize.cpp | 330 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4() 331 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU4() 332 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU4() 333 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() 408 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2() 409 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU2() 410 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU2() 411 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2() 486 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1() 487 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU1() [all …]
|
D | rsCpuScriptGroup.cpp | 69 mkinfo->inPtr[0] = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot() 76 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->current.y); in scriptGroupRoot() 78 } else if (sl->ins[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) { in scriptGroupRoot() 81 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->lid); in scriptGroupRoot() 94 (uint8_t *)sl->outs[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot() 101 sl->outs[ct]->mHal.drvState.lod[0].stride * kinfo->current.y; in scriptGroupRoot() 103 } else if (sl->outs[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) { in scriptGroupRoot() 106 sl->outs[ct]->mHal.drvState.lod[0].stride * kinfo->lid; in scriptGroupRoot()
|
D | rsCpuIntrinsic3DLUT.cpp | 64 const uchar *bp = (const uchar *)cp->mLUT->mHal.drvState.lod[0].mallocPtr; in kernel() 67 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimX - 1), in kernel() 68 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimY - 1), in kernel() 69 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimZ - 1), in kernel() 74 const size_t stride_y = cp->mLUT->mHal.drvState.lod[0].stride; in kernel() 75 const size_t stride_z = stride_y * cp->mLUT->mHal.drvState.lod[0].dimY; in kernel()
|
D | rsCpuIntrinsicConvolve3x3.cpp | 188 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4() 189 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() 235 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2() 236 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2() 280 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1() 281 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU1() 325 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelF4() 326 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelF4() 370 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelF2() 371 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelF2() [all …]
|
D | rsCpuCore.cpp | 332 uint32_t z = 0, uint32_t lod = 0, in FepPtrSetup() argument 343 …fep->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3… in FepPtrSetup() 346 …fep->outPtr[0] = (uint8_t *)mtls->aout[0]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3, a4); in FepPtrSetup() 378 r = sliceInt(&info->current.lod, r, mtls->start.lod, mtls->end.lod); in SelectOuterSlice() 408 fep.current.y, fep.current.z, fep.current.lod, in walk_general_foreach() 836 (mtls->start.lod != mtls->end.lod) || in launchForEach() 856 if ((mtls->aout[0] != nullptr) && mtls->aout[0]->mHal.drvState.lod[0].stride) { in launchForEach() 857 s2 = targetByteChunk / mtls->aout[0]->mHal.drvState.lod[0].stride; in launchForEach() 859 s2 = targetByteChunk / mtls->ains[0]->mHal.drvState.lod[0].stride; in launchForEach() 908 mtls->fep.current.y, mtls->fep.current.z, mtls->fep.current.lod, in launchForEach()
|
/frameworks/native/opengl/libagl/ |
D | TextureObjectManager.cpp | 106 const GGLSurface& EGLTextureObject::mip(int lod) const in mip() 108 if (lod<=0 || !mMipmaps) in mip() 110 lod = min(lod-1, mNumExtraLod-1); in mip() 111 return mMipmaps[lod]; in mip() 114 GGLSurface& EGLTextureObject::editMip(int lod) in editMip() argument 116 return const_cast<GGLSurface&>(mip(lod)); in editMip()
|
D | TextureObjectManager.h | 58 const GGLSurface& mip(int lod) const; 59 GGLSurface& editMip(int lod);
|