/frameworks/rs/driver/ |
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 | 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...] |
/frameworks/rs/ |
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 | 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 | rs_hal.h | 58 uint32_t lod; member in struct:android::renderscript::__anon1554 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,
|
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...] |
/frameworks/support/renderscript/v8/rs_support/driver/ |
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 | 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...] |
/frameworks/support/renderscript/v8/rs_support/ |
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 | 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 | rs_hal.h | 58 uint32_t lod; member in struct:android::renderscript::__anon1583 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,
|
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/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 | primitives.cpp | 699 // lod = log2( rho ) 700 // lod = log2( texelArea / area ) / 2 701 // lod = (log2( texelArea ) - log2( area )) / 2 711 int lod = (log2TArea - log2Area + 1) >> 1; local 712 return lod; 735 int lod = compute_lod(c, i, s0, t0, s1, t1, s2, t2); local 737 &c->textures.tmu[i].texture->mip(lod)); 792 int lod = compute_lod(c, i, s0, t0, s1, t1, s2, t2); local 794 &c->textures.tmu[i].texture->mip(lod));
|
/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/support/renderscript/v8/jni/ |
H A D | android_renderscript_RenderScript.cpp | 420 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument 425 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 430 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument 435 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 440 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument 445 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 450 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument 455 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 461 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument 466 rsAllocation1DElementData(con, (RsAllocation)alloc, offset, lod, pt 471 nAllocationData2D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jshortArray data, int sizeBytes) argument 482 nAllocationData2D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jbyteArray data, int sizeBytes) argument 493 nAllocationData2D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jintArray data, int sizeBytes) argument 504 nAllocationData2D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jfloatArray data, int sizeBytes) argument [all...] |
/frameworks/base/graphics/jni/ |
H A D | android_renderscript_RenderScript.cpp | 596 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument 601 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 606 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument 611 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 616 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument 621 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 626 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument 631 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 637 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument 642 rsAllocation1DElementData(con, (RsAllocation)alloc, offset, lod, pt 647 nAllocationData2D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jshortArray data, int sizeBytes) argument 658 nAllocationData2D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jbyteArray data, int sizeBytes) argument 669 nAllocationData2D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jintArray data, int sizeBytes) argument 680 nAllocationData2D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jfloatArray data, int sizeBytes) argument [all...] |