/frameworks/support/renderscript/v8/rs_support/driver/ |
D | rsdAllocation.cpp | 41 uint32_t xoff, uint32_t yoff, uint32_t lod, in GetOffsetPtr() argument 44 uint8_t *ptr = (uint8_t *)drv->lod[lod].mallocPtr; in GetOffsetPtr() 46 ptr += yoff * drv->lod[lod].stride; in GetOffsetPtr() 53 uint32_t xoff, uint32_t yoff, uint32_t lod, in Update2DTexture() argument 72 drv->lod[0].dimX = type->getDimX(); in AllocationBuildPointerTable() 73 drv->lod[0].dimY = type->getDimY(); in AllocationBuildPointerTable() 74 drv->lod[0].mallocPtr = 0; in AllocationBuildPointerTable() 75 drv->lod[0].stride = drv->lod[0].dimX * type->getElementSizeBytes(); in AllocationBuildPointerTable() 82 size_t o = drv->lod[0].stride * rsMax(drv->lod[0].dimY, 1u) * rsMax(drv->lod[0].dimZ, 1u); in AllocationBuildPointerTable() 84 uint32_t tx = drv->lod[0].dimX; in AllocationBuildPointerTable() [all …]
|
D | rsdAllocation.h | 59 } lod[android::renderscript::Allocation::MAX_LOD]; member 85 uint32_t xoff, uint32_t lod, uint32_t count, 89 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 95 uint32_t lod, RsAllocationCubemapFace face, 100 uint32_t xoff, uint32_t lod, uint32_t count, 104 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 110 uint32_t lod, RsAllocationCubemapFace face,
|
D | rsdIntrinsicConvolve5x5.cpp | 106 const uchar *pin = (const uchar *)din->lod[0].mallocPtr; in Convolve5x5_uchar4() 114 const uchar4 *py0 = (const uchar4 *)(pin + din->lod[0].stride * y0); in Convolve5x5_uchar4() 115 const uchar4 *py1 = (const uchar4 *)(pin + din->lod[0].stride * y1); in Convolve5x5_uchar4() 116 const uchar4 *py2 = (const uchar4 *)(pin + din->lod[0].stride * y2); in Convolve5x5_uchar4() 117 const uchar4 *py3 = (const uchar4 *)(pin + din->lod[0].stride * y3); in Convolve5x5_uchar4() 118 const uchar4 *py4 = (const uchar4 *)(pin + din->lod[0].stride * y4); in Convolve5x5_uchar4()
|
D | rsdIntrinsicConvolve3x3.cpp | 81 const uchar *pin = (const uchar *)din->lod[0].mallocPtr; in Convolve3x3_uchar4() 85 const uchar4 *py0 = (const uchar4 *)(pin + din->lod[0].stride * y2); in Convolve3x3_uchar4() 86 const uchar4 *py1 = (const uchar4 *)(pin + din->lod[0].stride * p->y); in Convolve3x3_uchar4() 87 const uchar4 *py2 = (const uchar4 *)(pin + din->lod[0].stride * y1); in Convolve3x3_uchar4()
|
/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 81 uint32_t xoff, uint32_t yoff, uint32_t lod, in GetOffsetPtr() argument 84 uint8_t *ptr = (uint8_t *)drv->lod[lod].mallocPtr; in GetOffsetPtr() 86 ptr += yoff * drv->lod[lod].stride; in GetOffsetPtr() 93 uint32_t xoff, uint32_t yoff, uint32_t lod, in Update2DTexture() argument 104 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture() 121 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) { in Upload2DTexture() local 122 const uint8_t *p = GetOffsetPtr(alloc, 0, 0, lod, (RsAllocationCubemapFace)face); in Upload2DTexture() 130 RSD_CALL_GL(glTexImage2D, t, lod, drv->glFormat, in Upload2DTexture() 131 alloc->mHal.state.type->getLODDimX(lod), in Upload2DTexture() 132 alloc->mHal.state.type->getLODDimY(lod), in Upload2DTexture() [all …]
|
D | rsdAllocation.h | 59 } lod[android::renderscript::Allocation::MAX_LOD]; member 96 uint32_t xoff, uint32_t lod, uint32_t count, 100 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 106 uint32_t lod, RsAllocationCubemapFace face, 111 uint32_t xoff, uint32_t lod, uint32_t count, 115 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 121 uint32_t lod, RsAllocationCubemapFace face,
|
D | rsdIntrinsicConvolve5x5.cpp | 110 const uchar *pin = (const uchar *)din->lod[0].mallocPtr; in Convolve5x5_uchar4() 118 const uchar4 *py0 = (const uchar4 *)(pin + din->lod[0].stride * y0); in Convolve5x5_uchar4() 119 const uchar4 *py1 = (const uchar4 *)(pin + din->lod[0].stride * y1); in Convolve5x5_uchar4() 120 const uchar4 *py2 = (const uchar4 *)(pin + din->lod[0].stride * y2); in Convolve5x5_uchar4() 121 const uchar4 *py3 = (const uchar4 *)(pin + din->lod[0].stride * y3); in Convolve5x5_uchar4() 122 const uchar4 *py4 = (const uchar4 *)(pin + din->lod[0].stride * y4); in Convolve5x5_uchar4()
|
D | rsdIntrinsicConvolve3x3.cpp | 86 const uchar *pin = (const uchar *)din->lod[0].mallocPtr; in Convolve3x3_uchar4() 90 const uchar4 *py0 = (const uchar4 *)(pin + din->lod[0].stride * y2); in Convolve3x3_uchar4() 91 const uchar4 *py1 = (const uchar4 *)(pin + din->lod[0].stride * p->y); in Convolve3x3_uchar4() 92 const uchar4 *py2 = (const uchar4 *)(pin + din->lod[0].stride * y1); in Convolve3x3_uchar4()
|
/frameworks/compile/libbcc/lib/Renderscript/runtime/ |
D | rs_sample.c | 9 getElementAt(rs_allocation a, uint32_t x, uint32_t lod) { in getElementAt() argument 14 const uint32_t offset = type->mHal.state.lodOffset[lod]; in getElementAt() 21 getElementAt(rs_allocation a, uint32_t x, uint32_t y, uint32_t lod) { in getElementAt() argument 27 const uint32_t offset = type->mHal.state.lodOffset[lod]; in getElementAt() 29 if(lod == 0) { in getElementAt() 32 stride = type->mHal.state.lodDimX[lod] * eSize; in getElementAt() 39 getElementAt(rs_allocation a, uint2 uv, uint32_t lod) { in getElementAt() argument 40 return getElementAt(a, uv.x, uv.y, lod); in getElementAt() 97 uint32_t iPixel, uint32_t next, uint32_t lod) { \ 98 intype *p0c = (intype*)getElementAt(a, iPixel, lod); \ [all …]
|
/frameworks/support/renderscript/v8/rs_support/ |
D | rsType.h | 72 uint32_t getLODDimX(uint32_t lod) const { in getLODDimX() argument 73 rsAssert(lod < mHal.state.lodCount); in getLODDimX() 74 return mHal.state.lodDimX[lod]; in getLODDimX() 76 uint32_t getLODDimY(uint32_t lod) const { in getLODDimY() argument 77 rsAssert(lod < mHal.state.lodCount); in getLODDimY() 78 return mHal.state.lodDimY[lod]; in getLODDimY() 80 uint32_t getLODDimZ(uint32_t lod) const { in getLODDimZ() argument 81 rsAssert(lod < mHal.state.lodCount); in getLODDimZ() 82 return mHal.state.lodDimZ[lod]; in getLODDimZ() 84 uint32_t getLODOffset(uint32_t lod) const { in getLODOffset() argument [all …]
|
D | rsType.cpp | 92 for (uint32_t lod=0; lod < mHal.state.lodCount; lod++) { in compute() local 93 mHal.state.lodDimX[lod] = tx; in compute() 94 mHal.state.lodDimY[lod] = ty; in compute() 95 mHal.state.lodDimZ[lod] = tz; in compute() 96 mHal.state.lodOffset[lod] = offset; in compute() 113 uint32_t Type::getLODOffset(uint32_t lod, uint32_t x) const { in getLODOffset() argument 114 uint32_t offset = mHal.state.lodOffset[lod]; in getLODOffset() 119 uint32_t Type::getLODOffset(uint32_t lod, uint32_t x, uint32_t y) const { in getLODOffset() argument 120 uint32_t offset = mHal.state.lodOffset[lod]; in getLODOffset() 121 offset += (x + y * mHal.state.lodDimX[lod]) * mElement->getSizeBytes(); in getLODOffset() [all …]
|
D | rsAllocation.h | 92 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size… 93 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 95 …void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCub… 98 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes); 99 … void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 101 …void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCub…
|
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 | rsAllocation.cpp | 71 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data() argument 82 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data() 86 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data() argument 99 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes); in data() 104 uint32_t lod, RsAllocationCubemapFace face, in data() argument 108 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod, in read() argument 119 rsc->mHal.funcs.allocation.read1D(rsc, this, xoff, lod, count, data, sizeBytes); in read() 122 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in read() argument 133 rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes); in read() 137 uint32_t lod, RsAllocationCubemapFace face, in read() argument [all …]
|
D | rs_hal.h | 58 uint32_t lod; member 154 uint32_t xoff, uint32_t lod, uint32_t count, 157 uint32_t xoff, uint32_t yoff, uint32_t lod, 162 uint32_t lod, RsAllocationCubemapFace face, 166 uint32_t xoff, uint32_t lod, uint32_t count, 169 uint32_t xoff, uint32_t yoff, uint32_t lod, 174 uint32_t lod, RsAllocationCubemapFace face,
|
/frameworks/rs/ |
D | rsType.h | 72 uint32_t getLODDimX(uint32_t lod) const { in getLODDimX() argument 73 rsAssert(lod < mHal.state.lodCount); in getLODDimX() 74 return mHal.state.lodDimX[lod]; in getLODDimX() 76 uint32_t getLODDimY(uint32_t lod) const { in getLODDimY() argument 77 rsAssert(lod < mHal.state.lodCount); in getLODDimY() 78 return mHal.state.lodDimY[lod]; in getLODDimY() 80 uint32_t getLODDimZ(uint32_t lod) const { in getLODDimZ() argument 81 rsAssert(lod < mHal.state.lodCount); in getLODDimZ() 82 return mHal.state.lodDimZ[lod]; in getLODDimZ() 84 uint32_t getLODOffset(uint32_t lod) const { in getLODOffset() argument [all …]
|
D | rsType.cpp | 92 for (uint32_t lod=0; lod < mHal.state.lodCount; lod++) { in compute() local 93 mHal.state.lodDimX[lod] = tx; in compute() 94 mHal.state.lodDimY[lod] = ty; in compute() 95 mHal.state.lodDimZ[lod] = tz; in compute() 96 mHal.state.lodOffset[lod] = offset; in compute() 113 uint32_t Type::getLODOffset(uint32_t lod, uint32_t x) const { in getLODOffset() argument 114 uint32_t offset = mHal.state.lodOffset[lod]; in getLODOffset() 119 uint32_t Type::getLODOffset(uint32_t lod, uint32_t x, uint32_t y) const { in getLODOffset() argument 120 uint32_t offset = mHal.state.lodOffset[lod]; in getLODOffset() 121 offset += (x + y * mHal.state.lodDimX[lod]) * mElement->getSizeBytes(); in getLODOffset() [all …]
|
D | rsAllocation.h | 95 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size… 96 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 98 …void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCub… 101 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes); 102 … void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 104 …void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCub…
|
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 | rsAllocation.cpp | 76 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data() argument 87 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data() 91 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data() argument 104 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes); in data() 109 uint32_t lod, RsAllocationCubemapFace face, in data() argument 113 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod, in read() argument 124 rsc->mHal.funcs.allocation.read1D(rsc, this, xoff, lod, count, data, sizeBytes); in read() 127 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in read() argument 138 rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes); in read() 142 uint32_t lod, RsAllocationCubemapFace face, in read() argument [all …]
|
D | rs_hal.h | 58 uint32_t lod; member 155 uint32_t xoff, uint32_t lod, uint32_t count, 158 uint32_t xoff, uint32_t yoff, uint32_t lod, 163 uint32_t lod, RsAllocationCubemapFace face, 167 uint32_t xoff, uint32_t lod, uint32_t count, 170 uint32_t xoff, uint32_t yoff, uint32_t lod, 175 uint32_t lod, RsAllocationCubemapFace face,
|
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/ |
D | AllocationAdapter.java | 99 void initLOD(int lod) { in initLOD() argument 100 if (lod < 0) { in initLOD() 101 throw new RSIllegalArgumentException("Attempting to set negative lod (" + lod + ")."); in initLOD() 108 for (int ct=0; ct < lod; ct++) { in initLOD() 110 … throw new RSIllegalArgumentException("Attempting to set lod (" + lod + ") out of range."); in initLOD() 141 public void setLOD(int lod) { in setLOD() argument 149 initLOD(lod); in setLOD()
|
/frameworks/base/graphics/java/android/renderscript/ |
D | AllocationAdapter.java | 99 void initLOD(int lod) { in initLOD() argument 100 if (lod < 0) { in initLOD() 101 throw new RSIllegalArgumentException("Attempting to set negative lod (" + lod + ")."); in initLOD() 108 for (int ct=0; ct < lod; ct++) { in initLOD() 110 … throw new RSIllegalArgumentException("Attempting to set lod (" + lod + ") out of range."); in initLOD() 141 public void setLOD(int lod) { in setLOD() argument 149 initLOD(lod); in setLOD()
|
/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()
|
/frameworks/support/renderscript/v8/jni/ |
D | android_renderscript_RenderScript.cpp | 420 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, … in nAllocationData1D_i() argument 425 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_i() 430 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, … in nAllocationData1D_s() argument 435 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_s() 440 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, … in nAllocationData1D_b() argument 445 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_b() 450 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, … in nAllocationData1D_f() argument 455 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_f() 461 …(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyt… in nAllocationElementData1D() argument 466 rsAllocation1DElementData(con, (RsAllocation)alloc, offset, lod, ptr, sizeBytes, compIdx); in nAllocationElementData1D() [all …]
|