/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 94 uint32_t lod, RsAllocationCubemapFace face) { in GetOffsetPtr() argument 95 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; 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() 105 uint32_t xoff, uint32_t yoff, uint32_t lod, in Update2DTexture() argument 117 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture() 136 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) { in Upload2DTexture() local 137 const uint8_t *p = GetOffsetPtr(alloc, 0, 0, 0, lod, (RsAllocationCubemapFace)face); in Upload2DTexture() 145 RSD_CALL_GL(glTexImage2D, t, lod, drv->glFormat, in Upload2DTexture() 146 alloc->mHal.state.type->getLODDimX(lod), in Upload2DTexture() [all …]
|
D | rsdAllocation.h | 104 uint32_t xoff, uint32_t lod, size_t count, 108 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 113 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 119 uint32_t xoff, uint32_t lod, size_t count, 123 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 128 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
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()
|
/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() 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/ |
D | rsGrallocConsumer.cpp | 40 uint32_t y = a->mHal.drvState.lod[0].dimY; in GrallocConsumer() 42 mConsumer->setDefaultBufferSize(a->mHal.drvState.lod[0].dimX, y); in GrallocConsumer() 126 mAlloc->mHal.drvState.lod[0].mallocPtr = reinterpret_cast<uint8_t*>(bufferPointer); in lockNextBuffer() 127 mAlloc->mHal.drvState.lod[0].stride = mSlots[buf].mGraphicBuffer->getStride() * in lockNextBuffer() 132 assert(mAlloc->mHal.drvState.lod[0].dimX == in lockNextBuffer() 134 assert(mAlloc->mHal.drvState.lod[0].dimY == in lockNextBuffer() 145 mAlloc->mHal.drvState.lod[1].mallocPtr = ycbcr.cb; in lockNextBuffer() 146 mAlloc->mHal.drvState.lod[2].mallocPtr = ycbcr.cr; in lockNextBuffer() 148 mAlloc->mHal.drvState.lod[0].stride = ycbcr.ystride; in lockNextBuffer() 149 mAlloc->mHal.drvState.lod[1].stride = ycbcr.cstride; in lockNextBuffer() [all …]
|
D | rsType.h | 75 uint32_t getLODDimX(uint32_t lod) const { in getLODDimX() argument 76 rsAssert(lod < mHal.state.lodCount); in getLODDimX() 77 return mHal.state.lodDimX[lod]; in getLODDimX() 79 uint32_t getLODDimY(uint32_t lod) const { in getLODDimY() argument 80 rsAssert(lod < mHal.state.lodCount); in getLODDimY() 81 return mHal.state.lodDimY[lod]; in getLODDimY() 83 uint32_t getLODDimZ(uint32_t lod) const { in getLODDimZ() argument 84 rsAssert(lod < mHal.state.lodCount); in getLODDimZ() 85 return mHal.state.lodDimZ[lod]; in getLODDimZ()
|
D | rsAllocation.cpp | 97 void * Allocation::getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, in getPointer() argument 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() 115 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data() argument 128 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data() 132 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data() argument 134 …rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in data() [all …]
|
D | rsAllocation.h | 82 } lod[android::renderscript::Allocation::MAX_LOD]; member 114 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size… 115 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 117 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 120 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes); 121 … void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 123 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 167 void * getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face,
|
D | rsAdapter.h | 44 inline void setLOD(uint32_t lod) {mLOD = lod;} in setLOD() argument 76 inline void setLOD(uint32_t lod) {mLOD = lod;} in setLOD() argument
|
D | rsType.cpp | 104 for (uint32_t lod=0; lod < mHal.state.lodCount; lod++) { in compute() local 105 mHal.state.lodDimX[lod] = tx; in compute() 106 mHal.state.lodDimY[lod] = ty; in compute() 107 mHal.state.lodDimZ[lod] = tz; in compute() 194 uint8_t lod = stream->loadU8(); in createFromStream() local 196 Type *type = Type::getType(rsc, elem, x, y, z, lod != 0, faces !=0, 0); in createFromStream()
|
D | rs.spec | 135 param uint32_t lod 146 param uint32_t lod 154 param uint32_t lod 163 param uint32_t lod 176 param uint32_t lod 196 param uint32_t lod 205 param uint32_t lod
|
D | rs_hal.h | 187 uint32_t xoff, uint32_t lod, size_t count, 190 uint32_t xoff, uint32_t yoff, uint32_t lod, 194 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 199 uint32_t xoff, uint32_t lod, size_t count, 202 uint32_t xoff, uint32_t yoff, uint32_t lod, 206 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
/frameworks/base/rs/java/android/renderscript/ |
D | AllocationAdapter.java | 95 void initLOD(int lod) { in initLOD() argument 96 if (lod < 0) { in initLOD() 97 throw new RSIllegalArgumentException("Attempting to set negative lod (" + lod + ")."); in initLOD() 104 for (int ct=0; ct < lod; ct++) { in initLOD() 106 … throw new RSIllegalArgumentException("Attempting to set lod (" + lod + ") out of range."); in initLOD() 137 public void setLOD(int lod) { in setLOD() argument 145 initLOD(lod); in setLOD()
|
/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() 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 | 800 if (ain && (const uint8_t *)ain->mHal.drvState.lod[0].mallocPtr == NULL) { in forEachMtlsSetup() 804 if (aout && (const uint8_t *)aout->mHal.drvState.lod[0].mallocPtr == NULL) { in forEachMtlsSetup() 890 mtls->fep.ptrIn = (const uint8_t *)ain->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup() 892 mtls->fep.yStrideIn = ain->mHal.drvState.lod[0].stride; in forEachMtlsSetup() 898 mtls->fep.ptrOut = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup() 900 mtls->fep.yStrideOut = aout->mHal.drvState.lod[0].stride; in forEachMtlsSetup() 917 if (ain != NULL && (const uint8_t *)ain->mHal.drvState.lod[0].mallocPtr == NULL) { in forEachMtlsSetup() 924 if (aout && (const uint8_t *)aout->mHal.drvState.lod[0].mallocPtr == NULL) { in forEachMtlsSetup() 1027 (const uint8_t*)ain->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup() 1032 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()
|
/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);
|
/frameworks/support/v8/renderscript/jni/ |
D | android_renderscript_RenderScript.cpp | 439 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, … in nAllocationData1D_i() argument 444 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_i() 449 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, … in nAllocationData1D_s() argument 454 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_s() 459 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, … in nAllocationData1D_b() argument 464 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_b() 469 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, … in nAllocationData1D_f() argument 474 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_f() 480 …(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyt… in nAllocationElementData1D() argument 485 rsAllocation1DElementData(con, (RsAllocation)alloc, offset, lod, ptr, sizeBytes, compIdx); in nAllocationElementData1D() [all …]
|