/frameworks/base/rs/java/android/renderscript/ |
D | ScriptIntrinsicBLAS.java | 321 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGEMV() 324 …mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.ge… in SGEMV() 343 validateGEMV(Element.F64(mRS), TransA, A, X, incX, Y, incY); in DGEMV() 346 …mRS.nScriptIntrinsicBLAS_Double(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.ge… in DGEMV() 365 validateGEMV(Element.F32_2(mRS), TransA, A, X, incX, Y, incY); in CGEMV() 368 …mRS.nScriptIntrinsicBLAS_Complex(getID(mRS), RsBlas_cgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, a… in CGEMV() 387 validateGEMV(Element.F64_2(mRS), TransA, A, X, incX, Y, incY); in ZGEMV() 390 …mRS.nScriptIntrinsicBLAS_Z(getID(mRS), RsBlas_zgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y… in ZGEMV() 419 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGBMV() 425 …mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgbmv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.ge… in SGBMV() [all …]
|
D | Script.java | 59 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID() 64 k = new KernelID(id, mRS, this, slot, sig); in createKernelID() 97 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot); in createInvokeID() 102 i = new InvokeID(id, mRS, this, slot); in createInvokeID() 136 long id = mRS.nScriptFieldIDCreate(getID(mRS), slot); in createFieldID() 141 f = new FieldID(id, mRS, this, slot); in createFieldID() 152 mRS.nScriptInvoke(getID(mRS), slot); in invoke() 161 mRS.nScriptInvokeV(getID(mRS), slot, v.getData()); in invoke() 163 mRS.nScriptInvoke(getID(mRS), slot); in invoke() 183 mRS.validate(); in forEach() [all …]
|
D | RSTextureView.java | 32 private RenderScriptGL mRS; field in RSTextureView 72 if (mRS != null) { in onSurfaceTextureAvailable() 73 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureAvailable() 85 if (mRS != null) { in onSurfaceTextureSizeChanged() 86 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureSizeChanged() 98 if (mRS != null) { in onSurfaceTextureDestroyed() 99 mRS.setSurfaceTexture(null, 0, 0); in onSurfaceTextureDestroyed() 122 if(mRS != null) { in pause() 123 mRS.pause(); in pause() 136 if(mRS != null) { in resume() [all …]
|
D | RSSurfaceView.java | 37 private RenderScriptGL mRS; field in RSSurfaceView 87 if (mRS != null) { in surfaceDestroyed() 88 mRS.setSurface(null, 0, 0); in surfaceDestroyed() 100 if (mRS != null) { in surfaceChanged() 101 mRS.setSurface(holder, w, h); in surfaceChanged() 114 if(mRS != null) { in pause() 115 mRS.pause(); in pause() 128 if(mRS != null) { in resume() 129 mRS.resume(); in resume() 147 mRS.destroy(); in destroyRenderScriptGL() [all …]
|
D | Mesh.java | 153 int vtxCount = mRS.nMeshGetVertexBufferCount(getID(mRS)); in updateFromNative() 154 int idxCount = mRS.nMeshGetIndexCount(getID(mRS)); in updateFromNative() 160 mRS.nMeshGetVertices(getID(mRS), vtxIDs, vtxCount); in updateFromNative() 161 mRS.nMeshGetIndices(getID(mRS), idxIDs, primitives, idxCount); in updateFromNative() 169 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative() 176 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative() 191 RenderScript mRS; field in Mesh.Builder 215 mRS = rs; in Builder() 340 Type.Builder tb = new Type.Builder(mRS, e); in newType() 351 mRS.validate(); in create() [all …]
|
D | ScriptIntrinsicHistogram.java | 94 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && in forEach() 95 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && in forEach() 96 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && in forEach() 97 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { in forEach() 141 if (mOut.getType().getElement() != Element.U32(mRS) && in setOutput() 142 mOut.getType().getElement() != Element.U32_2(mRS) && in setOutput() 143 mOut.getType().getElement() != Element.U32_3(mRS) && in setOutput() 144 mOut.getType().getElement() != Element.U32_4(mRS) && in setOutput() 145 mOut.getType().getElement() != Element.I32(mRS) && in setOutput() 146 mOut.getType().getElement() != Element.I32_2(mRS) && in setOutput() [all …]
|
D | BaseObj.java | 31 mRS = rs; in BaseObj() 53 mRS.validate(); in getID() 60 if ((rs != null) && (rs != mRS)) { in getID() 76 RenderScript mRS; field in BaseObj 100 mRS.nAssignName(mID, bytes); in setName() 126 ReentrantReadWriteLock.ReadLock rlock = mRS.mRWLock.readLock(); in helpDestroy() 129 if(mRS.isAlive() && mID != 0) { in helpDestroy() 130 mRS.nObjDestroy(mID); in helpDestroy() 133 mRS = null; in helpDestroy() 166 mRS.validate(); in updateFromNative() [all …]
|
D | ScriptIntrinsicColorMatrix.java | 245 if (!ain.getElement().isCompatible(Element.U8(mRS)) && in forEach() 246 !ain.getElement().isCompatible(Element.U8_2(mRS)) && in forEach() 247 !ain.getElement().isCompatible(Element.U8_3(mRS)) && in forEach() 248 !ain.getElement().isCompatible(Element.U8_4(mRS)) && in forEach() 249 !ain.getElement().isCompatible(Element.F32(mRS)) && in forEach() 250 !ain.getElement().isCompatible(Element.F32_2(mRS)) && in forEach() 251 !ain.getElement().isCompatible(Element.F32_3(mRS)) && in forEach() 252 !ain.getElement().isCompatible(Element.F32_4(mRS))) { in forEach() 257 if (!aout.getElement().isCompatible(Element.U8(mRS)) && in forEach() 258 !aout.getElement().isCompatible(Element.U8_2(mRS)) && in forEach() [all …]
|
D | ProgramVertexFixedFunction.java | 42 mRS.validate(); in bindConstants() 77 mRS.validate(); in create() 84 tmp[idx++] = mInputs[i].getID(mRS); in create() 88 tmp[idx++] = mOutputs[i].getID(mRS); in create() 92 tmp[idx++] = mConstants[i].getID(mRS); in create() 100 long id = mRS.nProgramVertexCreate(mShader, texNames, tmp); in create() 101 ProgramVertexFixedFunction pv = new ProgramVertexFixedFunction(id, mRS); in create() 113 RenderScript mRS; field in ProgramVertexFixedFunction.Builder 122 mRS = rs; in Builder() 176 InternalBuilder sb = new InternalBuilder(mRS); in create() [all …]
|
/frameworks/rs/cpp/ |
D | ScriptIntrinsicBLAS.cpp | 99 nScriptIntrinsicBLAS_Single(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Single() argument 107 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, sizeof(in_allocs), nullpt… in nScriptIntrinsicBLAS_Single() 113 nScriptIntrinsicBLAS_Double(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Double() argument 121 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, sizeof(in_allocs), nullpt… in nScriptIntrinsicBLAS_Double() 126 nScriptIntrinsicBLAS_Complex(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Complex() argument 134 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, sizeof(in_allocs), nullpt… in nScriptIntrinsicBLAS_Complex() 139 nScriptIntrinsicBLAS_Z(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Z() argument 147 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, sizeof(in_allocs), nullpt… in nScriptIntrinsicBLAS_Z() 153 nScriptIntrinsicBLAS_BNNM(RS* mRS, RsContext con, RsScript id, int M, int N, int K, in nScriptIntrinsicBLAS_BNNM() argument 168 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, sizeof(in_allocs), nullpt… in nScriptIntrinsicBLAS_BNNM() [all …]
|
D | ScriptIntrinsics.cpp | 51 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "3DLUT forEach element mismatch"); in forEach() 59 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "setLUT element does not match"); in setLUT() 63 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "setLUT Allocation must be 3D"); in setLUT() 85 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachClear() 93 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrc() 101 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDst() 109 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrcOver() 117 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDstOver() 125 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrcIn() 133 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDstIn() [all …]
|
D | Allocation.cpp | 144 const void *typeID = RS::dispatch->AllocationGetType(mRS->getContext(), getID()); in updateFromNative() 146 sp<Type> t = new Type((void *)typeID, mRS); in updateFromNative() 162 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Source must be exactly one usage type."); in syncAll() 165 tryDispatch(mRS, RS::dispatch->AllocationSyncAll(mRS->getContext(), getIDSafe(), srcLocation)); in syncAll() 171 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Allocation does not support USAGE_SHARED."); in getPointer() 177 mRS->throwError(RS_ERROR_RUNTIME_ERROR, "Can't use getPointer on older APIs"); in getPointer() 181 p = RS::dispatch->AllocationGetPointer(mRS->getContext(), getIDSafe(), 0, in getPointer() 183 if (mRS->getError() != RS_SUCCESS) { in getPointer() 184 mRS->throwError(RS_ERROR_RUNTIME_ERROR, "Allocation lock failed"); in getPointer() 220 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Count must be >= 1."); in copy1DRangeFrom() [all …]
|
D | Script.cpp | 26 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len)); in invoke() 32 …mRS->throwError(RS_ERROR_INVALID_PARAMETER, "At least one of ain or aout is required to be non-nul… in forEach() 36 …tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr,… in forEach() 44 …tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(… in bindAllocation() 49 …tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == nullptr) ?… in setVar() 53 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len)); in setVar()
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | Script.java | 48 dInElement = inType.getElement().getDummyElement(mRS); in getDummyAlloc() 49 dInType = inType.getDummyType(mRS, dInElement); in getDummyAlloc() 51 dummyAlloc = mRS.nIncAllocationCreateTyped(ain.getID(mRS), dInType, xBytesSize); in getDummyAlloc() 96 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp); in createKernelID() 101 k = new KernelID(id, mRS, this, slot, sig); in createKernelID() 135 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot); in createInvokeID() 140 i = new InvokeID(id, mRS, this, slot); in createInvokeID() 179 long id = mRS.nScriptFieldIDCreate(getID(mRS), slot, mUseIncSupp); in createFieldID() 184 f = new FieldID(id, mRS, this, slot); in createFieldID() 195 mRS.nScriptInvoke(getID(mRS), slot, mUseIncSupp); in invoke() [all …]
|
D | ScriptIntrinsicBLAS.java | 328 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGEMV() 333 long aID = A.getID(mRS); in SGEMV() 334 long xID = X.getID(mRS); in SGEMV() 335 long yID = Y.getID(mRS); in SGEMV() 341 …mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID,… in SGEMV() 360 validateGEMV(Element.F64(mRS), TransA, A, X, incX, Y, incY); in DGEMV() 365 long aID = A.getID(mRS); in DGEMV() 366 long xID = X.getID(mRS); in DGEMV() 367 long yID = Y.getID(mRS); in DGEMV() 373 …mRS.nScriptIntrinsicBLAS_Double(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID,… in DGEMV() [all …]
|
D | ScriptIntrinsicHistogram.java | 104 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && 105 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && 106 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && 107 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { 151 if (mOut.getType().getElement() != Element.U32(mRS) && 152 mOut.getType().getElement() != Element.U32_2(mRS) && 153 mOut.getType().getElement() != Element.U32_3(mRS) && 154 mOut.getType().getElement() != Element.U32_4(mRS) && 155 mOut.getType().getElement() != Element.I32(mRS) && 156 mOut.getType().getElement() != Element.I32_2(mRS) && [all …]
|
D | ScriptIntrinsicColorMatrix.java | 225 if (!ain.getElement().isCompatible(Element.U8(mRS)) && 226 !ain.getElement().isCompatible(Element.U8_2(mRS)) && 227 !ain.getElement().isCompatible(Element.U8_3(mRS)) && 228 !ain.getElement().isCompatible(Element.U8_4(mRS)) && 229 !ain.getElement().isCompatible(Element.F32(mRS)) && 230 !ain.getElement().isCompatible(Element.F32_2(mRS)) && 231 !ain.getElement().isCompatible(Element.F32_3(mRS)) && 232 !ain.getElement().isCompatible(Element.F32_4(mRS))) { 237 if (!aout.getElement().isCompatible(Element.U8(mRS)) && 238 !aout.getElement().isCompatible(Element.U8_2(mRS)) && [all …]
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
D | UT_alloc_copyPadded.java | 33 RenderScript mRS = RenderScript.create(mCtx); in run() local 35 testAllocation_Byte3_1D(mRS); in run() 36 testAllocation_Byte3_2D(mRS); in run() 37 testAllocation_Byte3_3D(mRS); in run() 39 testAllocation_Short3_1D(mRS); in run() 40 testAllocation_Short3_2D(mRS); in run() 41 testAllocation_Short3_3D(mRS); in run() 43 testAllocation_Int3_1D(mRS); in run() 44 testAllocation_Int3_2D(mRS); in run() 45 testAllocation_Int3_3D(mRS); in run() [all …]
|
D | UT_alloc_copy.java | 33 RenderScript mRS = RenderScript.create(mCtx); in run() local 35 allocation_copy1DRangeTo_Byte(mRS); in run() 36 allocation_copy1DRangeTo_Short(mRS); in run() 37 allocation_copy1DRangeTo_Int(mRS); in run() 38 allocation_copy1DRangeTo_Float(mRS); in run() 39 allocation_copy1DRangeTo_Long(mRS); in run() 41 allocation_copy2DRangeTo_Byte(mRS); in run() 42 allocation_copy2DRangeTo_Short(mRS); in run() 43 allocation_copy2DRangeTo_Int(mRS); in run() 44 allocation_copy2DRangeTo_Float(mRS); in run() [all …]
|
D | UT_instance.java | 39 RenderScript mRS = RenderScript.create(mCtx); in run() local 40 mRS.setMessageHandler(mRsMessage); in run() 42 ScriptC_instance instance_1 = new ScriptC_instance(mRS); in run() 43 ScriptC_instance instance_2 = new ScriptC_instance(mRS); in run() 44 ScriptC_instance instance_3 = new ScriptC_instance(mRS); in run() 45 ScriptC_instance instance_4 = new ScriptC_instance(mRS); in run() 46 ScriptC_instance instance_5 = new ScriptC_instance(mRS); in run() 48 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(1).create(); in run() 49 Allocation ai1 = Allocation.createTyped(mRS, t); in run() 50 Allocation ai2 = Allocation.createTyped(mRS, t); in run() [all …]
|
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_alloc_copyPadded.java | 33 RenderScript mRS = RenderScript.create(mCtx); in run() local 35 testAllocation_Byte3_1D(mRS); in run() 36 testAllocation_Byte3_2D(mRS); in run() 37 testAllocation_Byte3_3D(mRS); in run() 39 testAllocation_Short3_1D(mRS); in run() 40 testAllocation_Short3_2D(mRS); in run() 41 testAllocation_Short3_3D(mRS); in run() 43 testAllocation_Int3_1D(mRS); in run() 44 testAllocation_Int3_2D(mRS); in run() 45 testAllocation_Int3_3D(mRS); in run() [all …]
|
D | UT_alloc_copy.java | 33 RenderScript mRS = RenderScript.create(mCtx); in run() local 35 allocation_copy1DRangeTo_Byte(mRS); in run() 36 allocation_copy1DRangeTo_Short(mRS); in run() 37 allocation_copy1DRangeTo_Int(mRS); in run() 38 allocation_copy1DRangeTo_Float(mRS); in run() 39 allocation_copy1DRangeTo_Long(mRS); in run() 41 allocation_copy2DRangeTo_Byte(mRS); in run() 42 allocation_copy2DRangeTo_Short(mRS); in run() 43 allocation_copy2DRangeTo_Int(mRS); in run() 44 allocation_copy2DRangeTo_Float(mRS); in run() [all …]
|
D | UT_instance.java | 39 RenderScript mRS = RenderScript.create(mCtx); in run() local 40 mRS.setMessageHandler(mRsMessage); in run() 42 ScriptC_instance instance_1 = new ScriptC_instance(mRS); in run() 43 ScriptC_instance instance_2 = new ScriptC_instance(mRS); in run() 44 ScriptC_instance instance_3 = new ScriptC_instance(mRS); in run() 45 ScriptC_instance instance_4 = new ScriptC_instance(mRS); in run() 46 ScriptC_instance instance_5 = new ScriptC_instance(mRS); in run() 48 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(1).create(); in run() 49 Allocation ai1 = Allocation.createTyped(mRS, t); in run() 50 Allocation ai2 = Allocation.createTyped(mRS, t); in run() [all …]
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
D | BallsRS.java | 34 private RenderScriptGL mRS; field in BallsRS 45 mVpConsts = new ScriptField_VpConsts(mRS, 1, in updateProjectionMatrices() 50 mvp.loadOrtho(0, mRS.getWidth(), mRS.getHeight(), 0, -1, 1); in updateProjectionMatrices() 58 ProgramVertex.Builder sb = new ProgramVertex.Builder(mRS); in createProgramVertex() 72 mRS.bindProgramVertex(pvs); in createProgramVertex() 80 Allocation.createFromBitmap(mRS, bp, in loadTexture() 96 ProgramFragmentFixedFunction.Builder pfb = new ProgramFragmentFixedFunction.Builder(mRS); in createPF() 105 mRS = rs; in init() 112 mPoints = new ScriptField_Point(mRS, PART_COUNT, Allocation.USAGE_SCRIPT); in init() 114 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS); in init() [all …]
|
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/ |
D | SampleRSActivity.java | 79 private RenderScript mRS; field in SampleRSActivity 101 mRS = RenderScript.create(this); in onCreate() 102 mTwoByTwoAlloc = Allocation.createFromBitmap(mRS, mBitmapTwoByTwo, in onCreate() 106 mCityAlloc = Allocation.createFromBitmap(mRS, mBitmapCity, in onCreate() 110 Type.Builder b = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in onCreate() 118 Allocation outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage); in onCreate() 119 TextureViewUpdater updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_LINEAR(mRS)); in onCreate() 124 outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage); in onCreate() 125 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_LINEAR(mRS)); in onCreate() 130 outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage); in onCreate() [all …]
|