Home
last modified time | relevance | path

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

12

/frameworks/rs/rsov/driver/
DrsovAllocation.cpp44 state->lod[1].dimX = state->lod[0].dimX / 2; in DeriveYUVLayout()
45 state->lod[1].dimY = state->lod[0].dimY / 2; in DeriveYUVLayout()
46 state->lod[2].dimX = state->lod[0].dimX / 2; in DeriveYUVLayout()
47 state->lod[2].dimY = state->lod[0].dimY / 2; in DeriveYUVLayout()
54 state->lod[2].stride = rsRound(state->lod[0].stride >> 1, 16); in DeriveYUVLayout()
55 state->lod[2].mallocPtr = ((uint8_t *)state->lod[0].mallocPtr) + in DeriveYUVLayout()
56 (state->lod[0].stride * state->lod[0].dimY); in DeriveYUVLayout()
57 uvSize += state->lod[2].stride * state->lod[2].dimY; in DeriveYUVLayout()
59 state->lod[1].stride = state->lod[2].stride; in DeriveYUVLayout()
60 state->lod[1].mallocPtr = ((uint8_t *)state->lod[2].mallocPtr) + in DeriveYUVLayout()
[all …]
DrsovAllocation.h90 uint32_t xoff, uint32_t lod, size_t count,
95 uint32_t xoff, uint32_t yoff, uint32_t lod,
103 uint32_t lod, uint32_t w, uint32_t h,
109 uint32_t xoff, uint32_t lod, size_t count,
114 uint32_t xoff, uint32_t yoff, uint32_t lod,
122 uint32_t lod, uint32_t w, uint32_t h,
/frameworks/rs/driver/
DrsdAllocation.cpp86 uint32_t lod, RsAllocationCubemapFace face) { in GetOffsetPtr() argument
87 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in GetOffsetPtr()
89 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
90 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
97 uint32_t xoff, uint32_t yoff, uint32_t lod, in Update2DTexture() argument
109 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture()
128 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) { in Upload2DTexture() local
129 const uint8_t *p = GetOffsetPtr(alloc, 0, 0, 0, lod, (RsAllocationCubemapFace)face); in Upload2DTexture()
137 RSD_CALL_GL(glTexImage2D, t, lod, drv->glFormat, in Upload2DTexture()
138 alloc->mHal.state.type->getLODDimX(lod), in Upload2DTexture()
[all …]
DrsdAllocation.h112 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/
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()
69 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffset()
70 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; in rsOffset()
71 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffset()
81 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffsetNs()
82 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsOffsetNs()
83 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/rs/
DrsAllocation.h91 } 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 …]
DrsType.h86 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()
DrsGrallocConsumer.cpp36 uint32_t width = a->mHal.drvState.lod[0].dimX; in GrallocConsumer()
37 uint32_t height = a->mHal.drvState.lod[0].dimY; in GrallocConsumer()
158 mAlloc[idx]->mHal.drvState.lod[0].mallocPtr = data; in lockNextBuffer()
159 mAlloc[idx]->mHal.drvState.lod[0].stride = rowstride; in lockNextBuffer()
164 const int yWidth = mAlloc[idx]->mHal.drvState.lod[0].dimX; in lockNextBuffer()
165 const int yHeight = mAlloc[idx]->mHal.drvState.lod[0].dimY; in lockNextBuffer()
212 mAlloc[idx]->mHal.drvState.lod[1].dimX = cWidth; in lockNextBuffer()
213 mAlloc[idx]->mHal.drvState.lod[1].dimY = cHeight; in lockNextBuffer()
214 mAlloc[idx]->mHal.drvState.lod[2].dimX = cWidth; in lockNextBuffer()
215 mAlloc[idx]->mHal.drvState.lod[2].dimY = cHeight; in lockNextBuffer()
[all …]
DrsAllocation.cpp172 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 …]
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
DrsScriptC_Lib.cpp249 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()
DrsApiStubs.cpp396 extern "C" void * rsAllocationGetPointer (RsContext ctxWrapper, RsAllocation va, uint32_t lod, RsAl… in rsAllocationGetPointer() argument
399 …return RS_DISPATCH(ctxWrapper, AllocationGetPointer, va, lod, face, z, array, stride, stride_lengt… in rsAllocationGetPointer()
402 …location1DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, in rsAllocation1DData() argument
405 RS_DISPATCH(ctxWrapper, Allocation1DData, va, xoff, lod, count, data, data_length); in rsAllocation1DData()
408 …C" void rsAllocation1DElementData (RsContext ctxWrapper, RsAllocation va, uint32_t x, uint32_t lod, in rsAllocation1DElementData() argument
411 RS_DISPATCH(ctxWrapper, Allocation1DElementData, va, x, lod, data, data_length, comp_offset); in rsAllocation1DElementData()
415 … uint32_t lod, const void * data, size_t data_length, size_t comp_offset) in rsAllocationElementData() argument
417 … RS_DISPATCH(ctxWrapper, AllocationElementData, va, x, y, z, lod, data, data_length, comp_offset); in rsAllocationElementData()
420 …llocation2DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, in rsAllocation2DData() argument
424 …RS_DISPATCH(ctxWrapper, Allocation2DData, va, xoff, yoff, lod, face, w, h, data, data_length, stri… in rsAllocation2DData()
[all …]
DrsApiStubs.h70 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…
Drs_hal.h245 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,
DrsHidlAdaptation.cpp556 …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 …]
/frameworks/rs/support/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/
DrsCpuIntrinsicYuvToRGB.cpp106 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()
DrsCpuIntrinsicResize.cpp315 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
316 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU4()
317 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU4()
318 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
382 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
383 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU2()
384 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU2()
385 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2()
449 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
450 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU1()
[all …]
DrsCpuScriptGroup.cpp69 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()
DrsCpuIntrinsic3DLUT.cpp64 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()
DrsCpuIntrinsicConvolve3x3.cpp188 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 …]
/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