/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 | rsAllocation.h | 82 } lod[android::renderscript::Allocation::MAX_LOD]; member in struct:android::renderscript::Allocation::Hal::DrvState 114 void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes); 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,
|
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; 180 uint8_t lod = stream->loadU8(); local 182 Type *type = Type::getType(rsc, elem, x, y, z, lod != 0, faces !=0, 0);
|
H A D | rs_hal.h | 58 uint32_t lod; member in struct:android::renderscript::__anon1649 160 * mHal.drvState.lod[0-2] will be updated with the new values. 168 uint32_t xoff, uint32_t lod, size_t count, 171 uint32_t xoff, uint32_t yoff, uint32_t lod, 175 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 180 uint32_t xoff, uint32_t lod, size_t count, 183 uint32_t xoff, uint32_t yoff, uint32_t lod, 187 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
H A D | rsAllocation.cpp | 97 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, argument 108 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); 112 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, argument 114 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); 119 uint32_t lod, 121 rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); 125 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod, argument 136 rsc->mHal.funcs.allocation.read1D(rsc, this, xoff, lod, count, data, sizeBytes); 139 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, argument 153 rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, fac 118 data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument 156 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument 541 rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 547 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 553 rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument 559 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, size_t stride) argument 565 rsi_Allocation3DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument 719 rsi_Allocation1DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument 725 rsi_Allocation2DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) argument [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
H A D | AllocationAdapter.java | 100 void initLOD(int lod) { argument 101 if (lod < 0) { 102 throw new RSIllegalArgumentException("Attempting to set negative lod (" + lod + ")."); 109 for (int ct=0; ct < lod; ct++) { 111 throw new RSIllegalArgumentException("Attempting to set lod (" + lod + ") out of range."); 140 * @param lod The LOD to make active. 142 public void setLOD(int lod) { argument 150 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/rs/driver/runtime/ |
H A D | rs_sample.c | 271 rs_data_kind dk, rs_data_type dt, uint32_t lod) { 273 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; 321 rs_data_kind dk, rs_data_type dt, uint32_t lod) { 323 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; 324 size_t stride = alloc->mHal.drvState.lod[lod].stride; 350 rs_data_type dt, uint32_t lod) { 352 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lo 269 getBilinearSample1D(const Allocation_t *alloc, float2 weights, uint32_t iPixel, uint32_t next, rs_data_kind dk, rs_data_type dt, uint32_t lod) argument 319 getBilinearSample2D(const Allocation_t *alloc, float w0, float w1, float w2, float w3, int lx, int ly, int nx, int ny, rs_data_kind dk, rs_data_type dt, uint32_t lod) argument 349 getNearestSample(const Allocation_t *alloc, uint32_t iPixel, rs_data_kind dk, rs_data_type dt, uint32_t lod) argument 386 getNearestSample(const Allocation_t *alloc, uint2 iPixel, rs_data_kind dk, rs_data_type dt, uint32_t lod) argument 422 sample_LOD_LinearPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, float uv, uint32_t lod) argument 454 sample_LOD_NearestPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, float uv, uint32_t lod) argument 467 sample_LOD_LinearPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, rs_sampler_value wrapT, float2 uv, uint32_t lod) argument 515 sample_LOD_NearestPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, rs_sampler_value wrapT, float2 uv, uint32_t lod) argument 535 rsSample(rs_allocation a, rs_sampler s, float uv, float lod) argument 587 rsSample(rs_allocation a, rs_sampler s, float2 uv, float lod) argument [all...] |
H A D | rs_structs.h | 53 } lod[16/*android::renderscript::Allocation::MAX_LOD*/]; member in struct:Allocation::__anon1619::DrvState
|
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 94 uint32_t lod, RsAllocationCubemapFace face) { 95 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; 97 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; 98 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; 105 uint32_t xoff, uint32_t yoff, uint32_t lod, 92 GetOffsetPtr(const android::renderscript::Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face) argument 104 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 778 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument 798 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, size_t stride) argument 830 int lod = 1; local 858 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument 897 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument 909 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, size_t stride) argument 938 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument 1100 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument 1118 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument 1136 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument [all...] |
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 439 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument 444 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 449 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument 454 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 459 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument 464 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 469 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument 474 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 480 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument 485 rsAllocation1DElementData(con, (RsAllocation)alloc, offset, lod, pt 490 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 501 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 512 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 523 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 558 nAllocationData3D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jshortArray data, int sizeBytes) argument 569 nAllocationData3D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jbyteArray data, int sizeBytes) argument 580 nAllocationData3D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jintArray data, int sizeBytes) argument 591 nAllocationData3D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jfloatArray data, int sizeBytes) argument [all...] |
/frameworks/base/graphics/jni/ |
H A D | android_renderscript_RenderScript.cpp | 608 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument 613 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 618 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument 623 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 628 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument 633 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 638 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument 643 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 649 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument 654 rsAllocation1DElementData(con, (RsAllocation)alloc, offset, lod, pt 659 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 670 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 681 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 692 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 727 nAllocationData3D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jshortArray data, int sizeBytes) argument 738 nAllocationData3D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jbyteArray data, int sizeBytes) argument 749 nAllocationData3D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jintArray data, int sizeBytes) argument 760 nAllocationData3D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jfloatArray data, int sizeBytes) argument [all...] |