/frameworks/rs/ |
H A D | rsType.h | 72 uint32_t getLODDimX(uint32_t lod) const { 73 rsAssert(lod < mHal.state.lodCount); 74 return mHal.state.lodDimX[lod]; 76 uint32_t getLODDimY(uint32_t lod) const { 77 rsAssert(lod < mHal.state.lodCount); 78 return mHal.state.lodDimY[lod]; 80 uint32_t getLODDimZ(uint32_t lod) const { 81 rsAssert(lod < mHal.state.lodCount); 82 return mHal.state.lodDimZ[lod]; 84 uint32_t getLODOffset(uint32_t lod) cons [all...] |
H A D | rsType.cpp | 92 for (uint32_t lod=0; lod < mHal.state.lodCount; lod++) { 93 mHal.state.lodDimX[lod] = tx; 94 mHal.state.lodDimY[lod] = ty; 95 mHal.state.lodDimZ[lod] = tz; 96 mHal.state.lodOffset[lod] = offset; 113 uint32_t Type::getLODOffset(uint32_t lod, uint32_t x) const { argument 114 uint32_t offset = mHal.state.lodOffset[lod]; 119 uint32_t Type::getLODOffset(uint32_t lod, uint32_ argument 125 getLODOffset(uint32_t lod, uint32_t x, uint32_t y, uint32_t z) const argument 133 getLODFaceOffset(uint32_t lod, RsAllocationCubemapFace face, uint32_t x, uint32_t y) const argument 194 uint8_t lod = stream->loadU8(); local [all...] |
H A D | rsAdapter.h | 44 inline void setLOD(uint32_t lod) {mLOD = lod;} argument 76 inline void setLOD(uint32_t lod) {mLOD = lod;} argument
|
H A D | rsAllocation.h | 95 void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes); 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, RsAllocationCubemapFace face, 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, RsAllocationCubemapFace face,
|
H A D | rsAllocation.cpp | 76 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, argument 87 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); 91 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, argument 96 //ALOGE("data2d %p, %i %i %i %i %i %i %p %i", this, xoff, yoff, lod, face, w, h, data, sizeBytes); 104 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes); 109 uint32_t lod, RsAllocationCubemapFace face, 113 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod, argument 124 rsc->mHal.funcs.allocation.read1D(rsc, this, xoff, lod, count, data, sizeBytes); 127 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, argument 138 rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, fac 108 data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes) argument 141 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes) argument 504 rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 510 rsi_Allocation2DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t lod, RsAllocationCubemapFace face, const void *data, size_t sizeBytes, size_t eoff) argument 516 rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument 522 rsi_Allocation2DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument [all...] |
H A D | rs_hal.h | 58 uint32_t lod; member in struct:android::renderscript::__anon1554 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/rs_support/ |
H A D | rsType.h | 72 uint32_t getLODDimX(uint32_t lod) const { 73 rsAssert(lod < mHal.state.lodCount); 74 return mHal.state.lodDimX[lod]; 76 uint32_t getLODDimY(uint32_t lod) const { 77 rsAssert(lod < mHal.state.lodCount); 78 return mHal.state.lodDimY[lod]; 80 uint32_t getLODDimZ(uint32_t lod) const { 81 rsAssert(lod < mHal.state.lodCount); 82 return mHal.state.lodDimZ[lod]; 84 uint32_t getLODOffset(uint32_t lod) cons [all...] |
H A D | rsType.cpp | 92 for (uint32_t lod=0; lod < mHal.state.lodCount; lod++) { 93 mHal.state.lodDimX[lod] = tx; 94 mHal.state.lodDimY[lod] = ty; 95 mHal.state.lodDimZ[lod] = tz; 96 mHal.state.lodOffset[lod] = offset; 113 uint32_t Type::getLODOffset(uint32_t lod, uint32_t x) const { argument 114 uint32_t offset = mHal.state.lodOffset[lod]; 119 uint32_t Type::getLODOffset(uint32_t lod, uint32_ argument 125 getLODOffset(uint32_t lod, uint32_t x, uint32_t y, uint32_t z) const argument 133 getLODFaceOffset(uint32_t lod, RsAllocationCubemapFace face, uint32_t x, uint32_t y) const argument 194 uint8_t lod = stream->loadU8(); local [all...] |
H A D | rsAdapter.h | 44 inline void setLOD(uint32_t lod) {mLOD = lod;} argument 76 inline void setLOD(uint32_t lod) {mLOD = lod;} argument
|
H A D | rsAllocation.h | 92 void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes); 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, RsAllocationCubemapFace face, 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, RsAllocationCubemapFace face,
|
H A D | rsAllocation.cpp | 71 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, argument 82 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); 86 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, argument 91 //ALOGE("data2d %p, %i %i %i %i %i %i %p %i", this, xoff, yoff, lod, face, w, h, data, sizeBytes); 99 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes); 104 uint32_t lod, RsAllocationCubemapFace face, 108 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod, argument 119 rsc->mHal.funcs.allocation.read1D(rsc, this, xoff, lod, count, data, sizeBytes); 122 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, argument 133 rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, fac 103 data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes) argument 136 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes) argument 442 rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 448 rsi_Allocation2DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t lod, RsAllocationCubemapFace face, const void *data, size_t sizeBytes, size_t eoff) argument 454 rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument 460 rsi_Allocation2DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument [all...] |
/frameworks/support/renderscript/v8/rs_support/driver/ |
H A D | rsdAllocation.cpp | 41 uint32_t xoff, uint32_t yoff, uint32_t lod, 44 uint8_t *ptr = (uint8_t *)drv->lod[lod].mallocPtr; 46 ptr += yoff * drv->lod[lod].stride; 53 uint32_t xoff, uint32_t yoff, uint32_t lod, 72 drv->lod[0].dimX = type->getDimX(); 73 drv->lod[0].dimY = type->getDimY(); 74 drv->lod[0].mallocPtr = 0; 75 drv->lod[ 40 GetOffsetPtr(const android::renderscript::Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face) argument 52 Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h) argument 267 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 285 rsdAllocationData2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument 312 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes) argument 319 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument 329 rsdAllocationRead2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes) argument 351 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, void *data, uint32_t sizeBytes) argument 462 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument 481 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument 500 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument [all...] |
H A D | rsdAllocation.h | 59 } lod[android::renderscript::Allocation::MAX_LOD]; member in struct:DrvAllocation 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,
|
H A D | rsdIntrinsicConvolve5x5.cpp | 106 const uchar *pin = (const uchar *)din->lod[0].mallocPtr; 114 const uchar4 *py0 = (const uchar4 *)(pin + din->lod[0].stride * y0); 115 const uchar4 *py1 = (const uchar4 *)(pin + din->lod[0].stride * y1); 116 const uchar4 *py2 = (const uchar4 *)(pin + din->lod[0].stride * y2); 117 const uchar4 *py3 = (const uchar4 *)(pin + din->lod[0].stride * y3); 118 const uchar4 *py4 = (const uchar4 *)(pin + din->lod[0].stride * y4);
|
H A D | rsdIntrinsicBlur.cpp | 167 const uchar *pin = (const uchar *)din->lod[0].mallocPtr; 176 const uchar *pi = pin + (y - cp->iradius) * din->lod[0].stride; 177 OneVF(fout, pi, din->lod[0].stride, cp->fp, cp->iradius * 2 + 1, x1, x2); 180 OneV(p, fout, x1, y, pin, din->lod[0].stride, cp->fp, cp->iradius);
|
H A D | rsdIntrinsicConvolve3x3.cpp | 81 const uchar *pin = (const uchar *)din->lod[0].mallocPtr; 85 const uchar4 *py0 = (const uchar4 *)(pin + din->lod[0].stride * y2); 86 const uchar4 *py1 = (const uchar4 *)(pin + din->lod[0].stride * p->y); 87 const uchar4 *py2 = (const uchar4 *)(pin + din->lod[0].stride * y1);
|
/frameworks/compile/libbcc/lib/Renderscript/runtime/ |
H A D | rs_sample.c | 9 getElementAt(rs_allocation a, uint32_t x, uint32_t lod) { argument 14 const uint32_t offset = type->mHal.state.lodOffset[lod]; 21 getElementAt(rs_allocation a, uint32_t x, uint32_t y, uint32_t lod) { argument 27 const uint32_t offset = type->mHal.state.lodOffset[lod]; 29 if(lod == 0) { 32 stride = type->mHal.state.lodDimX[lod] * eSize; 39 getElementAt(rs_allocation a, uint2 uv, uint32_t lod) { argument 40 return getElementAt(a, uv.x, uv.y, lod); 97 uint32_t iPixel, uint32_t next, uint32_t lod) { \ 98 intype *p0c = (intype*)getElementAt(a, iPixel, lod); \ 234 getBilinearSample(rs_allocation a, float2 weights, uint32_t iPixel, uint32_t next, uint32_t vecSize, rs_data_type dt, uint32_t lod) argument 241 getBilinearSample(rs_allocation a, float4 weights, uint2 iPixel, uint2 next, uint32_t vecSize, rs_data_type dt, uint32_t lod) argument 248 getNearestSample(rs_allocation a, uint32_t iPixel, uint32_t vecSize, rs_data_type dt, uint32_t lod) argument 254 getNearestSample(rs_allocation a, uint2 iPixel, uint32_t vecSize, rs_data_type dt, uint32_t lod) argument 260 sample_LOD_LinearPixel(rs_allocation a, const Type_t *type, uint32_t vecSize, rs_data_type dt, rs_sampler s, float uv, uint32_t lod) argument 290 sample_LOD_NearestPixel(rs_allocation a, const Type_t *type, uint32_t vecSize, rs_data_type dt, rs_sampler s, float uv, uint32_t lod) argument 303 sample_LOD_LinearPixel(rs_allocation a, const Type_t *type, uint32_t vecSize, rs_data_type dt, rs_sampler s, float2 uv, uint32_t lod) argument 352 sample_LOD_NearestPixel(rs_allocation a, const Type_t *type, uint32_t vecSize, rs_data_type dt, rs_sampler s, float2 uv, uint32_t lod) argument 379 rsSample(rs_allocation a, rs_sampler s, float uv, float lod) argument 389 rsSample(rs_allocation a, rs_sampler s, float2 uv, float lod) argument [all...] |
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 81 uint32_t xoff, uint32_t yoff, uint32_t lod, 84 uint8_t *ptr = (uint8_t *)drv->lod[lod].mallocPtr; 86 ptr += yoff * drv->lod[lod].stride; 93 uint32_t xoff, uint32_t yoff, uint32_t lod, 104 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); 121 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod 80 GetOffsetPtr(const android::renderscript::Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face) argument 92 Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h) argument 574 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 592 rsdAllocationData2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument 619 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes) argument 626 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument 636 rsdAllocationRead2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes) argument 658 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, void *data, uint32_t sizeBytes) argument 769 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument 788 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument 807 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument [all...] |
H A D | rsdAllocation.h | 59 } lod[android::renderscript::Allocation::MAX_LOD]; member in struct:DrvAllocation 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,
|
H A D | rsdIntrinsicConvolve5x5.cpp | 110 const uchar *pin = (const uchar *)din->lod[0].mallocPtr; 118 const uchar4 *py0 = (const uchar4 *)(pin + din->lod[0].stride * y0); 119 const uchar4 *py1 = (const uchar4 *)(pin + din->lod[0].stride * y1); 120 const uchar4 *py2 = (const uchar4 *)(pin + din->lod[0].stride * y2); 121 const uchar4 *py3 = (const uchar4 *)(pin + din->lod[0].stride * y3); 122 const uchar4 *py4 = (const uchar4 *)(pin + din->lod[0].stride * y4);
|
H A D | rsdIntrinsicConvolve3x3.cpp | 86 const uchar *pin = (const uchar *)din->lod[0].mallocPtr; 90 const uchar4 *py0 = (const uchar4 *)(pin + din->lod[0].stride * y2); 91 const uchar4 *py1 = (const uchar4 *)(pin + din->lod[0].stride * p->y); 92 const uchar4 *py2 = (const uchar4 *)(pin + din->lod[0].stride * y1);
|
/frameworks/base/graphics/java/android/renderscript/ |
H A D | AllocationAdapter.java | 99 void initLOD(int lod) { argument 100 if (lod < 0) { 101 throw new RSIllegalArgumentException("Attempting to set negative lod (" + lod + ")."); 108 for (int ct=0; ct < lod; ct++) { 110 throw new RSIllegalArgumentException("Attempting to set lod (" + lod + ") out of range."); 139 * @param lod The LOD to make active. 141 public void setLOD(int lod) { argument 149 initLOD(lod); [all...] |
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/ |
H A D | AllocationAdapter.java | 99 void initLOD(int lod) { argument 100 if (lod < 0) { 101 throw new RSIllegalArgumentException("Attempting to set negative lod (" + lod + ")."); 108 for (int ct=0; ct < lod; ct++) { 110 throw new RSIllegalArgumentException("Attempting to set lod (" + lod + ") out of range."); 139 * @param lod The LOD to make active. 141 public void setLOD(int lod) { argument 149 initLOD(lod); [all...] |
/frameworks/native/opengl/libagl/ |
H A D | TextureObjectManager.cpp | 106 const GGLSurface& EGLTextureObject::mip(int lod) const 108 if (lod<=0 || !mMipmaps) 110 lod = min(lod-1, mNumExtraLod-1); 111 return mMipmaps[lod]; 114 GGLSurface& EGLTextureObject::editMip(int lod) argument 116 return const_cast<GGLSurface&>(mip(lod));
|
H A D | TextureObjectManager.h | 58 const GGLSurface& mip(int lod) const; 59 GGLSurface& editMip(int lod);
|