/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | rasterize.rs | 28 static float zoff[12]; 49 // string(solve([x1*dx+y1*dy+zoff=z1,x2*dx+y2*dy+zoff=z2,x3*dx+y3*dy+zoff=z3],[dx,dy,zoff])); 61 zoff[total] = ((f1.x * (f3.y * f2.z - f2.y * f3.z) + f1.y * (f2.x * f3.z - f3.x * f2.z) + 118 float z = zoff[i] + delta.x + delta.y;
|
/frameworks/rs/cpp/ |
H A D | Allocation.cpp | 365 void Allocation::validate3DRange(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, argument 370 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY) || ((zoff + d) > mCurrentDimZ)) { 376 void Allocation::copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, argument 378 validate3DRange(xoff, yoff, zoff, w, h, d); 383 tryDispatch(mRS, RS::dispatch->Allocation3DData(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, 389 tryDispatch(mRS, RS::dispatch->Allocation3DData(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, 396 void Allocation::copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, uint32_t h, uint32_t d, argument 398 validate3DRange(xoff, yoff, zoff, w, h, d); 399 tryDispatch(mRS, RS::dispatch->AllocationCopy3DRange(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, 404 void Allocation::copy3DRangeTo(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_ argument [all...] |
H A D | rsCppStructs.h | 612 void validate3DRange(uint32_t xoff, uint32_t yoff, uint32_t zoff, 797 * @param[in] zoff Z offset of region to update in this Allocation 803 void copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, 810 * @param[in] zoff Z offset of region to update in this Allocation 819 void copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, 829 * @param[in] zoff Z offset of region to update in this Allocation 835 void copy3DRangeTo(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w,
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Allocation.java | 1067 * @param zoff 1071 public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) { argument 1082 if(zoff < 0) { 1096 mRS.nAllocationElementData(getIDSafe(), xoff, yoff, zoff, mSelectedLOD, 1722 private void validate3DRange(int xoff, int yoff, int zoff, int w, int h, int d) { argument 1727 if (xoff < 0 || yoff < 0 || zoff < 0) { 1733 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY) || ((zoff + d) > mCurrentDimZ)) { 1746 private void copy3DRangeFromUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, argument 1751 validate3DRange(xoff, yoff, zoff, w, h, d); 1767 mRS.nAllocationData3D(getIDSafe(), xoff, yoff, zoff, mSelectedLO 1803 copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Object array) argument 1829 copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Allocation data, int dataXoff, int dataYoff, int dataZoff) argument 2028 copyToFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) argument 2585 copy3DRangeToUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, Object array, Element.DataType dt, int arrayLen) argument 2641 copy3DRangeTo(int xoff, int yoff, int zoff, int w, int h, int d, Object array) argument [all...] |
H A D | RenderScript.java | 543 native void rsnAllocationElementData(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes); argument 544 synchronized void nAllocationElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) { argument 546 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); 603 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, argument 606 synchronized void nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, argument 610 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, 628 native void rsnAllocationElementRead(long con,long id, int xoff, int yoff, int zoff, argument 630 synchronized void nAllocationElementRead(long id, int xoff, int yoff, int zoff, argument 633 rsnAllocationElementRead(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); 646 native void rsnAllocationRead3D(long con, long id, int xoff, int yoff, int zoff, in argument 649 nAllocationRead3D(long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Allocation.java | 1047 * @param zoff 1052 public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) { 1063 if(zoff < 0) { 1077 mRS.nAllocationElementData(getIDSafe(), xoff, yoff, zoff, mSelectedLOD, 1677 private void validate3DRange(int xoff, int yoff, int zoff, int w, int h, int d) { argument 1682 if (xoff < 0 || yoff < 0 || zoff < 0) { 1688 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY) || ((zoff + d) > mCurrentDimZ)) { 1701 private void copy3DRangeFromUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, argument 1704 validate3DRange(xoff, yoff, zoff, w, h, d); 1720 mRS.nAllocationData3D(getIDSafe(), xoff, yoff, zoff, mSelectedLO 1753 copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Object array) argument 1774 copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Allocation data, int dataXoff, int dataYoff, int dataZoff) argument [all...] |
H A D | RenderScript.java | 475 native void rsnAllocationElementData(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes); 476 synchronized void nAllocationElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) { 478 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); 537 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, argument 540 synchronized void nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, argument 544 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, 563 native void rsnAllocationElementRead(long con,long id, int xoff, int yoff, int zoff, 565 synchronized void nAllocationElementRead(long id, int xoff, int yoff, int zoff, 568 rsnAllocationElementRead(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); 583 native void rsnAllocationRead3D(long con, long id, int xoff, int yoff, int zoff, in [all...] |
/frameworks/rs/driver/ |
H A D | rsdAllocation.h | 123 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 138 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
H A D | rsdAllocation.cpp | 92 uint32_t xoff, uint32_t yoff, uint32_t zoff, 96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; 953 uint32_t xoff, uint32_t yoff, uint32_t zoff, 967 for (uint32_t z = zoff; z < (d + zoff); z++) { 1033 uint32_t xoff, uint32_t yoff, uint32_t zoff, 1044 for (uint32_t z = zoff; z < (d + zoff); z++) { 91 GetOffsetPtr(const android::renderscript::Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face) argument 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 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
|
/frameworks/rs/ |
H A D | rsAllocation.cpp | 215 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, argument 218 rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); 256 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, argument 264 rsc->mHal.funcs.allocation.read3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); 747 void rsi_Allocation3DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, argument 750 a->data(rsc, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); 957 uint32_t xoff, uint32_t yoff, uint32_t zoff, 961 a->read(rsc, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); 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
|
H A D | rsAllocation.h | 139 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 145 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
H A D | rs.spec | 219 param uint32_t zoff 271 param uint32_t zoff
|
H A D | rs_hal.h | 249 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 261 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1403 jint xoff, jint yoff, jint zoff, 1408 ALOGD("nAllocationElementData, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff(%i), comp(%i), len(%i), " 1409 "sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, compIdx, len, 1418 xoff, yoff, zoff, 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)," 1478 " h(%i), d(%i), sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, 1483 (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0); 1545 jint xoff, jint yoff, jint zoff, 1550 ALOGD("nAllocationElementRead, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff( 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 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 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 [all...] |
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1189 jint xoff, jint yoff, jint zoff, 1193 LOG_API("nAllocationElementData, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff(%i), comp(%i), len(%i), " 1194 "sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, compIdx, len, 1198 xoff, yoff, zoff, 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(%i), w(%i)," 1251 " h(%i), d(%i), sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, 1255 (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0); 1309 jint xoff, jint yoff, jint zoff, 1313 LOG_API("nAllocationElementRead, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff( [all...] |