Home
last modified time | relevance | path

Searched refs:zoff (Results 1 – 20 of 20) sorted by relevance

/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Drasterize.rscript28 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/
DAllocation.cpp365 void Allocation::validate3DRange(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, in validate3DRange() argument
370 … if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY) || ((zoff + d) > mCurrentDimZ)) { in validate3DRange()
376 void Allocation::copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, in copy3DRangeFrom() argument
378 validate3DRange(xoff, yoff, zoff, w, h, d); in copy3DRangeFrom()
383 … tryDispatch(mRS, RS::dispatch->Allocation3DData(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, in copy3DRangeFrom()
389 … tryDispatch(mRS, RS::dispatch->Allocation3DData(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, in copy3DRangeFrom()
396 void Allocation::copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, uint32_t … in copy3DRangeFrom() argument
398 validate3DRange(xoff, yoff, zoff, w, h, d); in copy3DRangeFrom()
399 …Dispatch(mRS, RS::dispatch->AllocationCopy3DRange(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, in copy3DRangeFrom()
404 void Allocation::copy3DRangeTo(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, in copy3DRangeTo() argument
[all …]
DrsCppStructs.h612 void validate3DRange(uint32_t xoff, uint32_t yoff, uint32_t zoff,
803 void copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w,
819 void copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff,
835 void copy3DRangeTo(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w,
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dortho.h19 const T zoff = -(zfar + znear) / (zfar - znear); in OrthoMatrix() local
23 0, 0, c, zoff, in OrthoMatrix()
/frameworks/base/rs/java/android/renderscript/
DAllocation.java1071 …public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp)… in setFromFieldPacker() argument
1082 if(zoff < 0) { in setFromFieldPacker()
1096 mRS.nAllocationElementData(getIDSafe(), xoff, yoff, zoff, mSelectedLOD, in setFromFieldPacker() local
1722 private void validate3DRange(int xoff, int yoff, int zoff, int w, int h, int d) { in validate3DRange() argument
1727 if (xoff < 0 || yoff < 0 || zoff < 0) { in validate3DRange()
1733 … if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY) || ((zoff + d) > mCurrentDimZ)) { in validate3DRange()
1746 private void copy3DRangeFromUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, in copy3DRangeFromUnchecked() argument
1751 validate3DRange(xoff, yoff, zoff, w, h, d); in copy3DRangeFromUnchecked()
1767 mRS.nAllocationData3D(getIDSafe(), xoff, yoff, zoff, mSelectedLOD, w, h, d, in copy3DRangeFromUnchecked() local
1803 public void copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Object array) { in copy3DRangeFrom() argument
[all …]
DRenderScript.java555 …native void rsnAllocationElementData(long con,long id, int xoff, int yoff, int zoff, int mip, int … in rsnAllocationElementData() argument
556 …synchronized void nAllocationElementData(long id, int xoff, int yoff, int zoff, int mip, int compI… in nAllocationElementData() argument
558 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementData()
615 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, in rsnAllocationData3D() argument
618 synchronized void nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, in nAllocationData3D() argument
622 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, in nAllocationData3D()
640 native void rsnAllocationElementRead(long con,long id, int xoff, int yoff, int zoff, in rsnAllocationElementRead() argument
642 synchronized void nAllocationElementRead(long id, int xoff, int yoff, int zoff, in nAllocationElementRead() argument
645 rsnAllocationElementRead(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementRead()
658 native void rsnAllocationRead3D(long con, long id, int xoff, int yoff, int zoff, int mip, in rsnAllocationRead3D() argument
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DAllocation.java1677 private void validate3DRange(int xoff, int yoff, int zoff, int w, int h, int d) { in validate3DRange() argument
1682 if (xoff < 0 || yoff < 0 || zoff < 0) { in validate3DRange()
1688 … if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY) || ((zoff + d) > mCurrentDimZ)) { in validate3DRange()
1701 private void copy3DRangeFromUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, in copy3DRangeFromUnchecked() argument
1704 validate3DRange(xoff, yoff, zoff, w, h, d); in copy3DRangeFromUnchecked()
1720 mRS.nAllocationData3D(getIDSafe(), xoff, yoff, zoff, mSelectedLOD, w, h, d, in copy3DRangeFromUnchecked() local
1753 public void copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Object array) { in copy3DRangeFrom() argument
1754 copy3DRangeFromUnchecked(xoff, yoff, zoff, w, h, d, array, in copy3DRangeFrom()
1774 public void copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, in copy3DRangeFrom() argument
1777 validate3DRange(xoff, yoff, zoff, w, h, d); in copy3DRangeFrom()
[all …]
DRenderScript.java549 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, in rsnAllocationData3D() argument
552 synchronized void nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, in nAllocationData3D() argument
556 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, in nAllocationData3D()
/frameworks/rs/
DrsAllocation.cpp218 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, in data() argument
221 …rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stri… in data()
261 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, in read() argument
269 …rsc->mHal.funcs.allocation.read3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stri… in read()
707 …ion3DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, in rsi_Allocation3DData() argument
710 a->data(rsc, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); in rsi_Allocation3DData()
917 uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsi_Allocation3DRead() argument
921 a->read(rsc, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride); in rsi_Allocation3DRead()
DrsAllocation.h135 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
141 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
Drs.spec219 param uint32_t zoff
271 param uint32_t zoff
Drs_hal.h252 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
264 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
DrsApiStubs.cpp422 …location3DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsAllocation3DData() argument
426 …RS_DISPATCH(ctxWrapper, Allocation3DData, va, xoff, yoff, zoff, lod, w, h, d, data, data_length, s… in rsAllocation3DData()
458 …location3DRead (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsAllocation3DRead() argument
462 …RS_DISPATCH(ctxWrapper, Allocation3DRead, va, xoff, yoff, zoff, lod, w, h, d, data, data_length, s… in rsAllocation3DRead()
DrsApiStubs.h75 …a (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint…
81 …d (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint…
DrsHidlAdaptation.cpp600 …ontext context, RsAllocation allocation, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, in Allocation3DData() argument
608 …GetIContextHandle(context)->allocation3DWrite(_allocation, xoff, yoff, zoff, lod, w, h, d, _data, … in Allocation3DData()
650 …ontext context, RsAllocation allocation, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, in Allocation3DRead() argument
655 …GetIContextHandle(context)->allocation3DRead(_allocation, xoff, yoff, zoff, lod, w, h, d, data, si… in Allocation3DRead()
/frameworks/rs/driver/
DrsdAllocation.h121 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
136 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
DrsdAllocation.cpp88 uint32_t xoff, uint32_t yoff, uint32_t zoff, in GetOffsetPtr() argument
92 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
911 uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsdAllocationData3D() argument
925 for (uint32_t z = zoff; z < (d + zoff); z++) { in rsdAllocationData3D()
991 uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsdAllocationRead3D() argument
1002 for (uint32_t z = zoff; z < (d + zoff); z++) { in rsdAllocationRead3D()
/frameworks/layoutlib/bridge/src/android/view/shadow/
DTriangleBuffer.java131 float zoff = (float) ((fx1 * (fy3 * fz2 - fy2 * fz3) + fy1 in triangleZBuffMin() local
199 float p = zoff + dy * y; in triangleZBuffMin()
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp1407 jint xoff, jint yoff, jint zoff, in nAllocationElementData() argument
1413 "sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, compIdx, len, in nAllocationElementData()
1422 xoff, yoff, zoff, in nAllocationElementData()
1475 …3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, in nAllocationData3D() argument
1482 " h(%i), d(%i), sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, in nAllocationData3D()
1487 (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0); in nAllocationData3D()
1549 jint xoff, jint yoff, jint zoff, in nAllocationElementRead() argument
1555 "sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, compIdx, len, in nAllocationElementRead()
1564 xoff, yoff, zoff, in nAllocationElementRead()
1588 …3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, in nAllocationRead3D() argument
[all …]
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp1260 …3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, in nAllocationData3D() argument
1266 " h(%i), d(%i), sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, in nAllocationData3D()
1270 (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0); in nAllocationData3D()