Home
last modified time | relevance | path

Searched refs:lod (Results 1 – 25 of 42) 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.h109 uint32_t xoff, uint32_t lod, size_t count,
113 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
118 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
124 uint32_t xoff, uint32_t lod, size_t count,
128 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
133 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
/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()
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 …]
/frameworks/rs/
DrsAllocation.h91 } lod[android::renderscript::Allocation::MAX_LOD]; member
129 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size…
130 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
132 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
135 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes);
136 … void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
138 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
185 void * getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face,
189 uint32_t z = 0, uint32_t lod = 0,
193 uint8_t * p = (uint8_t *) mHal.drvState.lod[lod].mallocPtr;
[all …]
DrsGrallocConsumer.cpp46 uint32_t y = a->mHal.drvState.lod[0].dimY; in GrallocConsumer()
48 mConsumer->setDefaultBufferSize(a->mHal.drvState.lod[0].dimX, y); in GrallocConsumer()
132 mAlloc->mHal.drvState.lod[0].mallocPtr = reinterpret_cast<uint8_t*>(bufferPointer); in lockNextBuffer()
133 mAlloc->mHal.drvState.lod[0].stride = mSlots[buf].mGraphicBuffer->getStride() * in lockNextBuffer()
138 assert(mAlloc->mHal.drvState.lod[0].dimX == in lockNextBuffer()
140 assert(mAlloc->mHal.drvState.lod[0].dimY == in lockNextBuffer()
151 mAlloc->mHal.drvState.lod[1].mallocPtr = ycbcr.cb; in lockNextBuffer()
152 mAlloc->mHal.drvState.lod[2].mallocPtr = ycbcr.cr; in lockNextBuffer()
154 mAlloc->mHal.drvState.lod[0].stride = ycbcr.ystride; in lockNextBuffer()
155 mAlloc->mHal.drvState.lod[1].stride = ycbcr.cstride; in lockNextBuffer()
[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.cpp160 void * Allocation::getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, in getPointer() argument
163 if ((lod >= mHal.drvState.lodCount) || in getPointer()
164 (z && (z >= mHal.drvState.lod[lod].dimZ)) || in getPointer()
172 mRSC->mHal.funcs.allocation.getPointer(rsc, this, lod, face, z, array); in getPointer()
176 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) { in getPointer()
177 *stride = mHal.drvState.lod[lod].stride; in getPointer()
179 return mHal.drvState.lod[lod].mallocPtr; in getPointer()
182 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data() argument
195 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data()
199 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data() argument
[all …]
DrsAdapter.h44 inline void setLOD(uint32_t lod) {mLOD = lod;} in setLOD() argument
76 inline void setLOD(uint32_t lod) {mLOD = lod;} in setLOD() argument
Drs.spec157 param uint32_t lod
168 param uint32_t lod
176 param uint32_t lod
186 param uint32_t lod
195 param uint32_t lod
208 param uint32_t lod
228 param uint32_t lod
238 param uint32_t lod
247 param uint32_t lod
260 param uint32_t lod
Drs_hal.h216 uint32_t xoff, uint32_t lod, size_t count,
219 uint32_t xoff, uint32_t yoff, uint32_t lod,
223 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
228 uint32_t xoff, uint32_t lod, size_t count,
231 uint32_t xoff, uint32_t yoff, uint32_t lod,
235 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
280 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/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()
DrsCpuCore.cpp337 uint32_t z = 0, uint32_t lod = 0, in FepPtrSetup() argument
342 …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()
367 r = sliceInt(&fep->current.lod, r, mtls->start.lod, mtls->end.lod); in SelectOuterSlice()
395 fep.current.y, fep.current.z, fep.current.lod, in walk_general()
464 (mtls->start.lod != mtls->end.lod) || in launchThreads()
484 if ((mtls->aout[0] != nullptr) && mtls->aout[0]->mHal.drvState.lod[0].stride) { in launchThreads()
485 s2 = targetByteChunk / mtls->aout[0]->mHal.drvState.lod[0].stride; in launchThreads()
487 s2 = targetByteChunk / mtls->ains[0]->mHal.drvState.lod[0].stride; in launchThreads()
536 mtls->fep.current.y, mtls->fep.current.z, mtls->fep.current.lod, in launchThreads()
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 …]
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 …]
DrsCpuCoreRuntime.h34 uint32_t lod; member
DrsCpuScript.cpp529 (const uint8_t *)ain->mHal.drvState.lod[0].mallocPtr == nullptr) { in forEachMtlsSetup()
538 (const uint8_t *)aout->mHal.drvState.lod[0].mallocPtr == nullptr) { in forEachMtlsSetup()
693 mtls->fep.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup()
699 mtls->fep.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup()
861 ptr = data->mHal.drvState.lod[0].mallocPtr; in setGlobalBind()
905 if (a->mHal.drvState.lod[0].mallocPtr == ptr) { in getAllocationForPointer()
/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