/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 | 366 void Allocation::validate3DRange(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, argument 371 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY) || ((zoff + d) > mCurrentDimZ)) { 377 void Allocation::copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, argument 379 validate3DRange(xoff, yoff, zoff, w, h, d); 384 tryDispatch(mRS, RS::dispatch->Allocation3DData(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, 390 tryDispatch(mRS, RS::dispatch->Allocation3DData(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, 397 void Allocation::copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, uint32_t h, uint32_t d, argument 399 validate3DRange(xoff, yoff, zoff, w, h, d); 400 tryDispatch(mRS, RS::dispatch->AllocationCopy3DRange(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, 405 void Allocation::copy3DRangeTo(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_ argument [all...] |
H A D | rsCppStructs.h | 339 void validate3DRange(uint32_t xoff, uint32_t yoff, uint32_t zoff, 524 * @param[in] zoff Z offset of region to update in this Allocation 530 void copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, 537 * @param[in] zoff Z offset of region to update in this Allocation 546 void copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, 556 * @param[in] zoff Z offset of region to update in this Allocation 562 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 | 849 * @param zoff 853 public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) { argument 864 if(zoff < 0) { 878 mRS.nAllocationElementData(getIDSafe(), xoff, yoff, zoff, mSelectedLOD, 1275 private void validate3DRange(int xoff, int yoff, int zoff, int w, int h, int d) { argument 1280 if (xoff < 0 || yoff < 0 || zoff < 0) { 1286 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY) || ((zoff + d) > mCurrentDimZ)) { 1299 private void copy3DRangeFromUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, argument 1304 validate3DRange(xoff, yoff, zoff, w, h, d); 1320 mRS.nAllocationData3D(getIDSafe(), xoff, yoff, zoff, mSelectedLO 1340 copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Object array) argument 1366 copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Allocation data, int dataXoff, int dataYoff, int dataZoff) argument 1492 copyToFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) argument 1816 copy3DRangeToUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, Object array, Element.DataType dt, int arrayLen) argument 1855 copy3DRangeTo(int xoff, int yoff, int zoff, int w, int h, int d, Object array) argument [all...] |
H A D | RenderScript.java | 517 native void rsnAllocationElementData(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes); argument 518 synchronized void nAllocationElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) { argument 520 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); 577 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, argument 580 synchronized void nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, argument 584 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, 602 native void rsnAllocationElementRead(long con,long id, int xoff, int yoff, int zoff, argument 604 synchronized void nAllocationElementRead(long id, int xoff, int yoff, int zoff, argument 607 rsnAllocationElementRead(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); 620 native void rsnAllocationRead3D(long con, long id, int xoff, int yoff, int zoff, in argument 623 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 | 797 * @param zoff 802 public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) { 813 if(zoff < 0) { 827 mRS.nAllocationElementData(getIDSafe(), xoff, yoff, zoff, mSelectedLOD, 1198 private void validate3DRange(int xoff, int yoff, int zoff, int w, int h, int d) { argument 1203 if (xoff < 0 || yoff < 0 || zoff < 0) { 1209 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY) || ((zoff + d) > mCurrentDimZ)) { 1216 private void copy3DRangeFromUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, argument 1219 validate3DRange(xoff, yoff, zoff, w, h, d); 1235 mRS.nAllocationData3D(getIDSafe(), xoff, yoff, zoff, mSelectedLO 1252 copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Object array) argument 1273 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 | 466 native void rsnAllocationElementData(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes); 467 synchronized void nAllocationElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) { 469 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); 528 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, argument 531 synchronized void nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, argument 535 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, 554 native void rsnAllocationElementRead(long con,long id, int xoff, int yoff, int zoff, 556 synchronized void nAllocationElementRead(long id, int xoff, int yoff, int zoff, 559 rsnAllocationElementRead(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); 574 native void rsnAllocationRead3D(long con, long id, int xoff, int yoff, int zoff, in [all...] |
/frameworks/rs/driver/ |
H A D | rsdAllocation.h | 118 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 133 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; 924 uint32_t xoff, uint32_t yoff, uint32_t zoff, 938 for (uint32_t z = zoff; z < (d + zoff); z++) { 1004 uint32_t xoff, uint32_t yoff, uint32_t zoff, 1015 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 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 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
|
/frameworks/rs/ |
H A D | rsAllocation.cpp | 205 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, argument 208 rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); 246 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, argument 254 rsc->mHal.funcs.allocation.read3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); 687 void rsi_Allocation3DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, argument 690 a->data(rsc, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); 873 uint32_t xoff, uint32_t yoff, uint32_t zoff, 877 a->read(rsc, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); 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
|
H A D | rsAllocation.h | 132 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 138 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
H A D | rs.spec | 207 param uint32_t zoff 259 param uint32_t zoff
|
H A D | rs_hal.h | 223 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 235 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1304 jint xoff, jint yoff, jint zoff, 1309 ALOGD("nAllocationElementData, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff(%i), comp(%i), len(%i), " 1310 "sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, compIdx, len, 1315 xoff, yoff, zoff, 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)," 1375 " h(%i), d(%i), sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, 1380 (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0); 1442 jint xoff, jint yoff, jint zoff, 1447 ALOGD("nAllocationElementRead, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff( 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 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 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 [all...] |
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1197 jint xoff, jint yoff, jint zoff, 1201 LOG_API("nAllocationElementData, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff(%i), comp(%i), len(%i), " 1202 "sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, compIdx, len, 1206 xoff, yoff, zoff, 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(%i), w(%i)," 1259 " h(%i), d(%i), sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, 1263 (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0); 1317 jint xoff, jint yoff, jint zoff, 1321 LOG_API("nAllocationElementRead, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff( [all...] |