/frameworks/base/libs/rs/ |
H A D | rsType.h | 43 uint32_t getLODDimX(uint32_t lod) const {rsAssert(lod < mLODCount); return mLODs[lod].mX;} 44 uint32_t getLODDimY(uint32_t lod) const {rsAssert(lod < mLODCount); return mLODs[lod].mY;} 45 uint32_t getLODDimZ(uint32_t lod) const {rsAssert(lod < mLODCount); return mLODs[lod].mZ;} 47 uint32_t getLODOffset(uint32_t lod) cons [all...] |
H A D | rsType.cpp | 92 for (uint32_t lod=0; lod < mLODCount; lod++) { 93 mLODs[lod].mX = tx; 94 mLODs[lod].mY = ty; 95 mLODs[lod].mZ = tz; 96 mLODs[lod].mOffset = offset; 112 uint32_t Type::getLODOffset(uint32_t lod, uint32_t x) const { argument 113 uint32_t offset = mLODs[lod].mOffset; 118 uint32_t Type::getLODOffset(uint32_t lod, uint32_ argument 124 getLODOffset(uint32_t lod, uint32_t x, uint32_t y, uint32_t z) const argument 130 getLODFaceOffset(uint32_t lod, RsAllocationCubemapFace face, uint32_t x, uint32_t y) const argument 185 uint8_t lod = stream->loadU8(); local [all...] |
H A D | rsAdapter.h | 45 inline void setLOD(uint32_t lod) {mLOD = lod;} argument 80 inline void setLOD(uint32_t lod) {mLOD = lod;} argument
|
H A D | rsAllocation.h | 83 void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, uint32_t sizeBytes); 84 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 86 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face,
|
H A D | rsAllocation.cpp | 73 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, argument 84 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); 88 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, argument 93 //LOGE("data2d %p, %i %i %i %i %i %i %p %i", this, xoff, yoff, lod, face, w, h, data, sizeBytes); 101 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes); 106 uint32_t lod, RsAllocationCubemapFace face, 425 void rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, argument 428 a->data(rsc, xoff, lod, count, data, sizeBytes); 431 void rsi_Allocation2DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t lod, RsAllocationCubemapFace face, argument 437 void rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod, argument 105 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, uint32_t sizeBytes) argument 443 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 | 51 uint32_t lod; member in struct:android::renderscript::__anon290 119 uint32_t xoff, uint32_t lod, uint32_t count, 122 uint32_t xoff, uint32_t yoff, uint32_t lod, 127 uint32_t lod, RsAllocationCubemapFace face,
|
H A D | rs.spec | 155 param uint32_t lod 163 param uint32_t lod 172 param uint32_t lod 183 param uint32_t lod
|
/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/base/libs/rs/driver/ |
H A D | rsdAllocation.cpp | 77 uint32_t xoff, uint32_t yoff, uint32_t lod, 88 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); 105 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) { 107 p += alloc->mHal.state.type->getLODFaceOffset(lod, (RsAllocationCubemapFace)face, 0, 0); 115 RSD_CALL_GL(glTexImage2D, t, lod, drv->glFormat, 116 alloc->mHal.state.type->getLODDimX(lod), 117 alloc->mHal.state.type->getLODDimY(lod), 120 RSD_CALL_GL(glTexSubImage2D, t, lod, 76 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 373 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, uint32_t sizeBytes) argument 392 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, uint32_t sizeBytes) argument 421 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 435 getOffsetPtr(const android::renderscript::Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face) argument [all...] |
H A D | rsdAllocation.h | 73 uint32_t xoff, uint32_t lod, uint32_t count, 77 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 83 uint32_t lod, RsAllocationCubemapFace face,
|
/frameworks/base/opengl/libagl/ |
H A D | TextureObjectManager.cpp | 108 const GGLSurface& EGLTextureObject::mip(int lod) const 110 if (lod<=0 || !mMipmaps) 112 lod = min(lod-1, mNumExtraLod-1); 113 return mMipmaps[lod]; 116 GGLSurface& EGLTextureObject::editMip(int lod) argument 118 return const_cast<GGLSurface&>(mip(lod));
|
H A D | TextureObjectManager.h | 58 const GGLSurface& mip(int lod) const; 59 GGLSurface& editMip(int 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/base/graphics/jni/ |
H A D | android_renderscript_RenderScript.cpp | 524 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument 529 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 534 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument 539 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 544 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument 549 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 554 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument 559 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 565 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument 570 rsAllocation1DElementData(con, (RsAllocation)alloc, offset, lod, pt 575 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 586 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 597 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 608 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...] |