Home
last modified time | relevance | path

Searched refs:lod (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/rs/driver/
DrsdAllocation.cpp93 uint32_t lod, RsAllocationCubemapFace face) { in GetOffsetPtr() argument
94 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in GetOffsetPtr()
96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
97 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
104 uint32_t xoff, uint32_t yoff, uint32_t lod, in Update2DTexture() argument
116 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture()
135 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) { in Upload2DTexture() local
136 const uint8_t *p = GetOffsetPtr(alloc, 0, 0, 0, lod, (RsAllocationCubemapFace)face); in Upload2DTexture()
144 RSD_CALL_GL(glTexImage2D, t, lod, drv->glFormat, in Upload2DTexture()
145 alloc->mHal.state.type->getLODDimX(lod), in Upload2DTexture()
[all …]
DrsdAllocation.h114 uint32_t xoff, uint32_t lod, size_t count,
118 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
123 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
129 uint32_t xoff, uint32_t lod, size_t count,
133 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
138 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
DrsdMeshObj.cpp154 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.lod[0].mallocPtr; in renderPrimitiveRange()
175 idxAlloc->mHal.drvState.lod[0].mallocPtr); in renderPrimitiveRange()
/frameworks/rs/
DrsGrallocConsumer.cpp51 uint32_t y = a->mHal.drvState.lod[0].dimY; in GrallocConsumer()
53 mConsumer->setDefaultBufferSize(a->mHal.drvState.lod[0].dimX, y); in GrallocConsumer()
147 mAlloc[idx]->mHal.drvState.lod[0].mallocPtr = reinterpret_cast<uint8_t*>(bufferPointer); in lockNextBuffer()
148 mAlloc[idx]->mHal.drvState.lod[0].stride = mSlots[slot].mGraphicBuffer->getStride() * in lockNextBuffer()
153 rsAssert(mAlloc[idx]->mHal.drvState.lod[0].dimX == in lockNextBuffer()
155 rsAssert(mAlloc[idx]->mHal.drvState.lod[0].dimY == in lockNextBuffer()
173 const int yWidth = mAlloc[idx]->mHal.drvState.lod[0].dimX; in lockNextBuffer()
174 const int yHeight = mAlloc[idx]->mHal.drvState.lod[0].dimY; in lockNextBuffer()
181 mAlloc[idx]->mHal.drvState.lod[1].dimX = cWidth; in lockNextBuffer()
182 mAlloc[idx]->mHal.drvState.lod[1].dimY = cHeight; in lockNextBuffer()
[all …]
DrsAllocation.h95 } lod[android::renderscript::Allocation::MAX_LOD]; member
136 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size…
137 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
139 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
142 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes);
143 … void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
145 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
195 void * getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face,
199 uint32_t z = 0, uint32_t lod = 0,
203 uint8_t * p = (uint8_t *) mHal.drvState.lod[lod].mallocPtr;
[all …]
DrsType.h84 uint32_t getLODDimX(uint32_t lod) const { in getLODDimX() argument
85 rsAssert(lod < mHal.state.lodCount); in getLODDimX()
86 return mHal.state.lodDimX[lod]; in getLODDimX()
88 uint32_t getLODDimY(uint32_t lod) const { in getLODDimY() argument
89 rsAssert(lod < mHal.state.lodCount); in getLODDimY()
90 return mHal.state.lodDimY[lod]; in getLODDimY()
92 uint32_t getLODDimZ(uint32_t lod) const { in getLODDimZ() argument
93 rsAssert(lod < mHal.state.lodCount); in getLODDimZ()
94 return mHal.state.lodDimZ[lod]; in getLODDimZ()
DrsAllocation.cpp170 void * Allocation::getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, in getPointer() argument
173 if ((lod >= mHal.drvState.lodCount) || in getPointer()
174 (z && (z >= mHal.drvState.lod[lod].dimZ)) || in getPointer()
182 mRSC->mHal.funcs.allocation.getPointer(rsc, this, lod, face, z, array); in getPointer()
186 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) { in getPointer()
187 *stride = mHal.drvState.lod[lod].stride; in getPointer()
189 return mHal.drvState.lod[lod].mallocPtr; in getPointer()
192 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data() argument
205 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data()
209 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data() argument
[all …]
Drs.spec169 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
Drs_hal.h242 uint32_t xoff, uint32_t lod, size_t count,
245 uint32_t xoff, uint32_t yoff, uint32_t lod,
249 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
254 uint32_t xoff, uint32_t lod, size_t count,
257 uint32_t xoff, uint32_t yoff, uint32_t lod,
261 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
306 uint32_t lod, RsAllocationCubemapFace face,
DrsType.cpp107 for (uint32_t lod=0; lod < mHal.state.lodCount; lod++) { in compute() local
108 mHal.state.lodDimX[lod] = tx; in compute()
109 mHal.state.lodDimY[lod] = ty; in compute()
110 mHal.state.lodDimZ[lod] = tz; in compute()
/frameworks/rs/driver/runtime/
Drs_sample.c270 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 …]
Drs_allocation.c8 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()
113 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffset()
115 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; in rsOffset()
116 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffset()
128 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffsetNs()
130 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsOffsetNs()
131 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffsetNs()
256 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr;
[all …]
/frameworks/support/v8/renderscript/jni/
Dandroid_rscompat_usage_io_driver.cpp28 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/
DAllocationAdapter.java39 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/
DrsCpuIntrinsicResize.cpp322 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
323 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU4()
324 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU4()
325 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
389 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
390 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU2()
391 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU2()
392 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2()
456 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
457 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU1()
[all …]
DrsCpuIntrinsicYuvToRGB.cpp112 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()
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()
DrsCpuScriptGroup.cpp67 mkinfo->inPtr[0] = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot()
74 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->current.y); in scriptGroupRoot()
76 } else if (sl->ins[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) { in scriptGroupRoot()
79 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()
DrsCpuIntrinsic3DLUT.cpp71 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()
DrsCpuIntrinsicConvolve3x3.cpp195 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 …]
DrsCpuCore.cpp341 uint32_t z = 0, uint32_t lod = 0, in FepPtrSetup() argument
345 …fep->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3… in FepPtrSetup()
348 …fep->outPtr[0] = (uint8_t *)mtls->aout[0]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3, a4); in FepPtrSetup()
380 r = sliceInt(&info->current.lod, r, mtls->start.lod, mtls->end.lod); in SelectOuterSlice()
410 fep.current.y, fep.current.z, fep.current.lod, in walk_general_foreach()
838 (mtls->start.lod != mtls->end.lod) || in launchForEach()
858 if ((mtls->aout[0] != nullptr) && mtls->aout[0]->mHal.drvState.lod[0].stride) { in launchForEach()
859 s2 = targetByteChunk / mtls->aout[0]->mHal.drvState.lod[0].stride; in launchForEach()
861 s2 = targetByteChunk / mtls->ains[0]->mHal.drvState.lod[0].stride; in launchForEach()
910 mtls->fep.current.y, mtls->fep.current.z, mtls->fep.current.lod, in launchForEach()
DrsCpuIntrinsicConvolve5x5.cpp357 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 …]
DrsCpuScript.cpp56 return alloc && alloc->mHal.drvState.lod[0].mallocPtr == nullptr; in allocationLODIsNull()
613 mtls->redp.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup()
620 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup()
722 mtls->fep.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup()
728 mtls->fep.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup()
921 ptr = data->mHal.drvState.lod[0].mallocPtr; in setGlobalBind()
960 if (a->mHal.drvState.lod[0].mallocPtr == ptr) { in getAllocationForPointer()
DrsCpuCoreRuntime.h34 uint32_t lod; member
/frameworks/native/opengl/libagl/
DTextureObjectManager.cpp106 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()
DTextureObjectManager.h58 const GGLSurface& mip(int lod) const;
59 GGLSurface& editMip(int lod);

12