/frameworks/rs/cpu_ref/ |
H A D | rsCpuCoreRuntime.h | 34 uint32_t lod; member in struct:RsLaunchDimensions
|
/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 | 91 } lod[android::renderscript::Allocation::MAX_LOD]; member in struct:android::renderscript::Allocation::Hal::DrvState 129 void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes); 130 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 132 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 135 void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes); 136 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 138 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 185 void * getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, 189 uint32_t z = 0, uint32_t lod = 0, 193 uint8_t * p = (uint8_t *) mHal.drvState.lod[lo [all...] |
H A D | rsAllocation.cpp | 160 void * Allocation::getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, argument 163 if ((lod >= mHal.drvState.lodCount) || 164 (z && (z >= mHal.drvState.lod[lod].dimZ)) || 172 mRSC->mHal.funcs.allocation.getPointer(rsc, this, lod, face, z, array); 176 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) { 177 *stride = mHal.drvState.lod[lod].stride; 179 return mHal.drvState.lod[lod] 182 data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 199 data(Context *rsc, 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 205 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 212 read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument 228 read(Context *rsc, 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 246 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 663 rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 669 rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument 675 rsi_AllocationElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t z, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument 681 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 687 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 844 rsi_AllocationGetPointer(Context *rsc, RsAllocation valloc, uint32_t lod, RsAllocationCubemapFace face, uint32_t z, uint32_t array, size_t *stride, size_t strideLen) argument 853 rsi_Allocation1DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument 859 rsi_AllocationElementRead(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t z, uint32_t lod, void *data, size_t sizeBytes, size_t eoff) argument 865 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 872 rsi_Allocation3DRead(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, void *data, size_t sizeBytes, size_t stride) argument [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | AllocationAdapter.java | 39 void initLOD(int lod) { argument 40 if (lod < 0) { 41 throw new RSIllegalArgumentException("Attempting to set negative lod (" + lod + ")."); 48 for (int ct=0; ct < lod; ct++) { 50 throw new RSIllegalArgumentException("Attempting to set lod (" + lod + ") out of range."); 101 * @param lod The LOD to make active. 103 public void setLOD(int lod) { argument 111 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/base/libs/hwui/ |
H A D | SkiaCanvasProxy.cpp | 333 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &matrix); local 337 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
|
/frameworks/rs/driver/runtime/ |
H A D | rs_sample.c | 270 rs_data_kind dk, rs_data_type dt, uint32_t lod) { 272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; 320 rs_data_kind dk, rs_data_type dt, uint32_t lod) { 322 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; 323 size_t stride = alloc->mHal.drvState.lod[lod].stride; 349 rs_data_type dt, uint32_t lod) { 351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lo 268 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 318 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 348 getNearestSample(const Allocation_t *alloc, uint32_t iPixel, rs_data_kind dk, rs_data_type dt, uint32_t lod) argument 385 getNearestSample(const Allocation_t *alloc, uint2 iPixel, rs_data_kind dk, rs_data_type dt, uint32_t lod) argument 421 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 453 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 466 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 514 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 534 rsSample(rs_allocation a, rs_sampler s, float uv, float lod) argument 586 rsSample(rs_allocation a, rs_sampler s, float2 uv, float lod) argument [all...] |
H A D | rs_structs.h | 69 } lod[16/*android::renderscript::Allocation::MAX_LOD*/]; member in struct:Allocation::__anon1565::DrvState
|
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 93 uint32_t lod, RsAllocationCubemapFace face) { 94 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; 96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; 97 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; 104 uint32_t xoff, uint32_t yoff, uint32_t lod, 91 GetOffsetPtr(const android::renderscript::Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face) argument 103 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 843 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument 863 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 895 int lod = 1; local 923 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 962 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument 974 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 1003 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 1157 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument 1175 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument 1193 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument [all...] |
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1167 nAllocationData1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, argument 1176 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes); 1182 jint lod, jint compIdx, jbyteArray data, jint sizeBytes) 1190 lod, ptr, sizeBytes, compIdx); 1198 jint lod, jint compIdx, jbyteArray data, jint sizeBytes) 1207 lod, ptr, sizeBytes, compIdx); 1214 nAllocationData2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face, argument 1224 (RsContext)con, alloc, xoff, yoff, lod, face, w, h, ptr, sizeBytes, 0); 1253 nAllocationData3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, argument 1258 LOG_API("nAllocation3DData, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff(%i), lod( 1181 nAllocationElementData1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument 1302 nAllocationRead1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument 1334 nAllocationRead2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face, jint w, jint h, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument [all...] |
/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1288 nAllocationData1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, argument 1299 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes); 1305 jint lod, jint compIdx, jbyteArray data, jint sizeBytes) 1316 lod, ptr, sizeBytes, compIdx); 1323 nAllocationData2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face, argument 1335 (RsContext)con, alloc, xoff, yoff, lod, face, w, h, ptr, sizeBytes, 0); 1368 nAllocationData3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, argument 1374 ALOGD("nAllocation3DData, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff(%i), lod(%i), w(%i)," 1376 lod, w, h, d, sizeBytes); 1380 (RsContext)con, alloc, xoff, yoff, zoff, lod, 1303 nAllocationElementData(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint yoff, jint zoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument 1426 nAllocationRead1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument 1441 nAllocationElementRead(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint yoff, jint zoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument 1460 nAllocationRead2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face, jint w, jint h, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument 1477 nAllocationRead3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jobject data, int sizeBytes, int dataType, jint mSize, jboolean usePadding) argument 1525 nAllocationAdapterOffset(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint x, jint y, jint z, jint face, jint lod, jint a1, jint a2, jint a3, jint a4) argument [all...] |