Searched defs:lod (Results 1 - 12 of 12) sorted by relevance

/frameworks/rs/cpu_ref/
H A DrsCpuCoreRuntime.h34 uint32_t lod; member in struct:RsLaunchDimensions
/frameworks/base/rs/java/android/renderscript/
H A DAllocationAdapter.java39 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 DTextureObjectManager.cpp106 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 Dprimitives.cpp699 // 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/
H A DrsAllocation.h95 } lod[android::renderscript::Allocation::MAX_LOD]; member in struct:android::renderscript::Allocation::Hal::DrvState
136 void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes);
137 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
139 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
142 void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes);
143 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
145 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
195 void * getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face,
199 uint32_t z = 0, uint32_t lod = 0,
203 uint8_t * p = (uint8_t *) mHal.drvState.lod[lo
[all...]
H A DrsAllocation.cpp170 void * Allocation::getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, argument
173 if ((lod >= mHal.drvState.lodCount) ||
174 (z && (z >= mHal.drvState.lod[lod].dimZ)) ||
182 mRSC->mHal.funcs.allocation.getPointer(rsc, this, lod, face, z, array);
186 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) {
187 *stride = mHal.drvState.lod[lod].stride;
189 return mHal.drvState.lod[lod]
192 data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
209 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
215 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
222 read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument
238 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
256 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
723 rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
729 rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument
735 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
741 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
747 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
928 rsi_AllocationGetPointer(Context *rsc, RsAllocation valloc, uint32_t lod, RsAllocationCubemapFace face, uint32_t z, uint32_t array, size_t *stride, size_t strideLen) argument
937 rsi_Allocation1DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument
943 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
949 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
956 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/libs/hwui/
H A DSkiaCanvasProxy.cpp369 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &matrix); local
373 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
/frameworks/rs/driver/runtime/
H A Drs_sample.c270 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 Drs_structs.h69 } lod[16/*android::renderscript::Allocation::MAX_LOD*/]; member in struct:Allocation::__anon1654::DrvState
/frameworks/rs/driver/
H A DrsdAllocation.cpp93 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
870 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument
890 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
922 int lod = 1; local
952 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
991 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument
1003 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
1032 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
1186 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1204 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
1222 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
[all...]
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp1159 nAllocationData1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, argument
1168 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes);
1174 jint lod, jint compIdx, jbyteArray data, jint sizeBytes)
1182 lod, ptr, sizeBytes, compIdx);
1190 jint lod, jint compIdx, jbyteArray data, jint sizeBytes)
1199 lod, ptr, sizeBytes, compIdx);
1206 nAllocationData2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face, argument
1216 (RsContext)con, alloc, xoff, yoff, lod, face, w, h, ptr, sizeBytes, 0);
1245 nAllocationData3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, argument
1250 LOG_API("nAllocation3DData, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff(%i), lod(
1173 nAllocationElementData1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1294 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
1326 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 Dandroid_renderscript_RenderScript.cpp1387 nAllocationData1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, argument
1398 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes);
1404 jint lod, jint compIdx, jbyteArray data, jint sizeBytes)
1419 lod, ptr, sizeBytes, compIdx);
1426 nAllocationData2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face, argument
1438 (RsContext)con, alloc, xoff, yoff, lod, face, w, h, ptr, sizeBytes, 0);
1471 nAllocationData3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, argument
1477 ALOGD("nAllocation3DData, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff(%i), lod(%i), w(%i),"
1479 lod, w, h, d, sizeBytes);
1483 (RsContext)con, alloc, xoff, yoff, zoff, lod,
1402 nAllocationElementData(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint yoff, jint zoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1529 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
1544 nAllocationElementRead(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint yoff, jint zoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1567 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
1584 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
1632 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...]

Completed in 5463 milliseconds