/frameworks/base/rs/java/android/renderscript/ |
D | ScriptIntrinsicBLAS.java | 325 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGEMV() 328 …mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.ge… in SGEMV() 347 validateGEMV(Element.F64(mRS), TransA, A, X, incX, Y, incY); in DGEMV() 350 …mRS.nScriptIntrinsicBLAS_Double(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.ge… in DGEMV() 369 validateGEMV(Element.F32_2(mRS), TransA, A, X, incX, Y, incY); in CGEMV() 372 …mRS.nScriptIntrinsicBLAS_Complex(getID(mRS), RsBlas_cgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, a… in CGEMV() 391 validateGEMV(Element.F64_2(mRS), TransA, A, X, incX, Y, incY); in ZGEMV() 394 …mRS.nScriptIntrinsicBLAS_Z(getID(mRS), RsBlas_zgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y… in ZGEMV() 423 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGBMV() 429 …mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgbmv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.ge… in SGBMV() [all …]
|
D | Script.java | 64 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID() 69 k = new KernelID(id, mRS, this, slot, sig); in createKernelID() 102 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot); in createInvokeID() 107 i = new InvokeID(id, mRS, this, slot); in createInvokeID() 140 long id = mRS.nScriptFieldIDCreate(getID(mRS), slot); in createFieldID() 145 f = new FieldID(id, mRS, this, slot); in createFieldID() 156 mRS.nScriptInvoke(getID(mRS), slot); in invoke() 165 mRS.nScriptInvokeV(getID(mRS), slot, v.getData()); in invoke() 167 mRS.nScriptInvoke(getID(mRS), slot); in invoke() 187 mRS.validate(); in forEach() [all …]
|
D | RSTextureView.java | 33 private RenderScriptGL mRS; field in RSTextureView 73 if (mRS != null) { in onSurfaceTextureAvailable() 74 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureAvailable() 86 if (mRS != null) { in onSurfaceTextureSizeChanged() 87 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureSizeChanged() 99 if (mRS != null) { in onSurfaceTextureDestroyed() 100 mRS.setSurfaceTexture(null, 0, 0); in onSurfaceTextureDestroyed() 123 if(mRS != null) { in pause() 124 mRS.pause(); in pause() 137 if(mRS != null) { in resume() [all …]
|
D | RSSurfaceView.java | 39 private RenderScriptGL mRS; field in RSSurfaceView 91 if (mRS != null) { in surfaceDestroyed() 92 mRS.setSurface(null, 0, 0); in surfaceDestroyed() 104 if (mRS != null) { in surfaceChanged() 105 mRS.setSurface(holder, w, h); in surfaceChanged() 118 if(mRS != null) { in pause() 119 mRS.pause(); in pause() 132 if(mRS != null) { in resume() 133 mRS.resume(); in resume() 151 mRS.destroy(); in destroyRenderScriptGL() [all …]
|
D | BaseObj.java | 38 mRS = rs; in BaseObj() 60 mRS.validate(); in getID() 67 if ((rs != null) && (rs != mRS)) { in getID() 84 RenderScript mRS; field in BaseObj 108 mRS.nAssignName(mID, bytes); in setName() 134 ReentrantReadWriteLock.ReadLock rlock = mRS.mRWLock.readLock(); in helpDestroy() 137 if(mRS.isAlive() && mID != 0) { in helpDestroy() 138 mRS.nObjDestroy(mID); in helpDestroy() 141 mRS = null; in helpDestroy() 174 mRS.validate(); in updateFromNative() [all …]
|
D | ScriptIntrinsicHistogram.java | 97 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && in forEach() 98 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && in forEach() 99 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && in forEach() 100 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { in forEach() 144 if (mOut.getType().getElement() != Element.U32(mRS) && in setOutput() 145 mOut.getType().getElement() != Element.U32_2(mRS) && in setOutput() 146 mOut.getType().getElement() != Element.U32_3(mRS) && in setOutput() 147 mOut.getType().getElement() != Element.U32_4(mRS) && in setOutput() 148 mOut.getType().getElement() != Element.I32(mRS) && in setOutput() 149 mOut.getType().getElement() != Element.I32_2(mRS) && in setOutput() [all …]
|
D | Mesh.java | 160 int vtxCount = mRS.nMeshGetVertexBufferCount(getID(mRS)); in updateFromNative() 161 int idxCount = mRS.nMeshGetIndexCount(getID(mRS)); in updateFromNative() 167 mRS.nMeshGetVertices(getID(mRS), vtxIDs, vtxCount); in updateFromNative() 168 mRS.nMeshGetIndices(getID(mRS), idxIDs, primitives, idxCount); in updateFromNative() 176 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative() 183 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative() 198 RenderScript mRS; field in Mesh.Builder 222 mRS = rs; in Builder() 347 Type.Builder tb = new Type.Builder(mRS, e); in newType() 358 mRS.validate(); in create() [all …]
|
D | ScriptIntrinsicColorMatrix.java | 250 if (!ain.getElement().isCompatible(Element.U8(mRS)) && in forEach() 251 !ain.getElement().isCompatible(Element.U8_2(mRS)) && in forEach() 252 !ain.getElement().isCompatible(Element.U8_3(mRS)) && in forEach() 253 !ain.getElement().isCompatible(Element.U8_4(mRS)) && in forEach() 254 !ain.getElement().isCompatible(Element.F32(mRS)) && in forEach() 255 !ain.getElement().isCompatible(Element.F32_2(mRS)) && in forEach() 256 !ain.getElement().isCompatible(Element.F32_3(mRS)) && in forEach() 257 !ain.getElement().isCompatible(Element.F32_4(mRS))) { in forEach() 262 if (!aout.getElement().isCompatible(Element.U8(mRS)) && in forEach() 263 !aout.getElement().isCompatible(Element.U8_2(mRS)) && in forEach() [all …]
|
D | ProgramVertexFixedFunction.java | 46 mRS.validate(); in bindConstants() 81 mRS.validate(); in create() 88 tmp[idx++] = mInputs[i].getID(mRS); in create() 92 tmp[idx++] = mOutputs[i].getID(mRS); in create() 96 tmp[idx++] = mConstants[i].getID(mRS); in create() 104 long id = mRS.nProgramVertexCreate(mShader, texNames, tmp); in create() 105 ProgramVertexFixedFunction pv = new ProgramVertexFixedFunction(id, mRS); in create() 117 RenderScript mRS; field in ProgramVertexFixedFunction.Builder 127 mRS = rs; in Builder() 182 InternalBuilder sb = new InternalBuilder(mRS); in create() [all …]
|
/frameworks/rs/cpp/ |
D | ScriptIntrinsicBLAS.cpp | 107 nScriptIntrinsicBLAS_Single(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Single() argument 115 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr, in nScriptIntrinsicBLAS_Single() 121 nScriptIntrinsicBLAS_Double(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Double() argument 129 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr, in nScriptIntrinsicBLAS_Double() 134 nScriptIntrinsicBLAS_Complex(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Complex() argument 142 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr, in nScriptIntrinsicBLAS_Complex() 147 nScriptIntrinsicBLAS_Z(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Z() argument 155 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr, in nScriptIntrinsicBLAS_Z() 161 nScriptIntrinsicBLAS_BNNM(RS* mRS, RsContext con, RsScript id, int M, int N, int K, in nScriptIntrinsicBLAS_BNNM() argument 176 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr, in nScriptIntrinsicBLAS_BNNM() [all …]
|
D | ScriptIntrinsics.cpp | 61 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "3DLUT forEach element mismatch"); in forEach() 69 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "setLUT element does not match"); in setLUT() 73 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "setLUT Allocation must be 3D"); in setLUT() 95 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachClear() 103 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrc() 111 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDst() 119 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrcOver() 127 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDstOver() 135 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrcIn() 143 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 | 25 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len)); in invoke() 31 …mRS->throwError(RS_ERROR_INVALID_PARAMETER, "At least one of ain or aout is required to be non-nul… in forEach() 35 …tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr,… in forEach() 43 …tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(… in bindAllocation() 48 …tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == nullptr) ?… in setVar() 52 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len)); in setVar()
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Script.java | 53 dInElement = inType.getElement().getDummyElement(mRS); in getDummyAlloc() 54 dInType = inType.getDummyType(mRS, dInElement); in getDummyAlloc() 56 placeholderAlloc = mRS.nIncAllocationCreateTyped(ain.getID(mRS), dInType, xBytesSize); in getDummyAlloc() 101 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp); in createKernelID() 106 k = new KernelID(id, mRS, this, slot, sig); in createKernelID() 140 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot); in createInvokeID() 145 i = new InvokeID(id, mRS, this, slot); in createInvokeID() 184 long id = mRS.nScriptFieldIDCreate(getID(mRS), slot, mUseIncSupp); in createFieldID() 189 f = new FieldID(id, mRS, this, slot); in createFieldID() 200 mRS.nScriptInvoke(getID(mRS), slot, mUseIncSupp); in invoke() [all …]
|
D | ScriptIntrinsicBLAS.java | 332 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGEMV() 337 long aID = A.getID(mRS); in SGEMV() 338 long xID = X.getID(mRS); in SGEMV() 339 long yID = Y.getID(mRS); in SGEMV() 345 …mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID,… in SGEMV() 364 validateGEMV(Element.F64(mRS), TransA, A, X, incX, Y, incY); in DGEMV() 369 long aID = A.getID(mRS); in DGEMV() 370 long xID = X.getID(mRS); in DGEMV() 371 long yID = Y.getID(mRS); in DGEMV() 377 …mRS.nScriptIntrinsicBLAS_Double(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID,… in DGEMV() [all …]
|
D | ScriptIntrinsicHistogram.java | 107 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && 108 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && 109 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && 110 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { 154 if (mOut.getType().getElement() != Element.U32(mRS) && 155 mOut.getType().getElement() != Element.U32_2(mRS) && 156 mOut.getType().getElement() != Element.U32_3(mRS) && 157 mOut.getType().getElement() != Element.U32_4(mRS) && 158 mOut.getType().getElement() != Element.I32(mRS) && 159 mOut.getType().getElement() != Element.I32_2(mRS) && [all …]
|
D | ScriptIntrinsicColorMatrix.java | 230 if (!ain.getElement().isCompatible(Element.U8(mRS)) && 231 !ain.getElement().isCompatible(Element.U8_2(mRS)) && 232 !ain.getElement().isCompatible(Element.U8_3(mRS)) && 233 !ain.getElement().isCompatible(Element.U8_4(mRS)) && 234 !ain.getElement().isCompatible(Element.F32(mRS)) && 235 !ain.getElement().isCompatible(Element.F32_2(mRS)) && 236 !ain.getElement().isCompatible(Element.F32_3(mRS)) && 237 !ain.getElement().isCompatible(Element.F32_4(mRS))) { 242 if (!aout.getElement().isCompatible(Element.U8(mRS)) && 243 !aout.getElement().isCompatible(Element.U8_2(mRS)) && [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_alloc_copyPadded.java | 34 RenderScript mRS = createRenderScript(false); in run() local 36 testAllocation_Byte3_1D(mRS); in run() 37 testAllocation_Byte3_2D(mRS); in run() 38 testAllocation_Byte3_3D(mRS); in run() 40 testAllocation_Short3_1D(mRS); in run() 41 testAllocation_Short3_2D(mRS); in run() 42 testAllocation_Short3_3D(mRS); in run() 44 testAllocation_Int3_1D(mRS); in run() 45 testAllocation_Int3_2D(mRS); in run() 46 testAllocation_Int3_3D(mRS); in run() [all …]
|
D | UT_alloc_copy.java | 35 RenderScript mRS = createRenderScript(false); in run() local 37 allocation_copy1DRangeTo_Byte(mRS); in run() 38 allocation_copy1DRangeTo_Short(mRS); in run() 39 allocation_copy1DRangeTo_Int(mRS); in run() 40 allocation_copy1DRangeTo_Float(mRS); in run() 41 allocation_copy1DRangeTo_Long(mRS); in run() 43 allocation_copy2DRangeTo_Byte(mRS); in run() 44 allocation_copy2DRangeTo_Short(mRS); in run() 45 allocation_copy2DRangeTo_Int(mRS); in run() 46 allocation_copy2DRangeTo_Float(mRS); in run() [all …]
|
D | UT_instance.java | 37 RenderScript mRS = createRenderScript(false); in run() local 39 ScriptC_instance instance_1 = new ScriptC_instance(mRS); in run() 40 ScriptC_instance instance_2 = new ScriptC_instance(mRS); in run() 41 ScriptC_instance instance_3 = new ScriptC_instance(mRS); in run() 42 ScriptC_instance instance_4 = new ScriptC_instance(mRS); in run() 43 ScriptC_instance instance_5 = new ScriptC_instance(mRS); in run() 45 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(1).create(); in run() 46 Allocation ai1 = Allocation.createTyped(mRS, t); in run() 47 Allocation ai2 = Allocation.createTyped(mRS, t); in run() 48 Allocation ai3 = Allocation.createTyped(mRS, t); in run() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_alloc_copyPadded.java | 36 RenderScript mRS = createRenderScript(false); in run() local 38 testAllocation_Byte3_1D(mRS); in run() 39 testAllocation_Byte3_2D(mRS); in run() 40 testAllocation_Byte3_3D(mRS); in run() 42 testAllocation_Short3_1D(mRS); in run() 43 testAllocation_Short3_2D(mRS); in run() 44 testAllocation_Short3_3D(mRS); in run() 46 testAllocation_Int3_1D(mRS); in run() 47 testAllocation_Int3_2D(mRS); in run() 48 testAllocation_Int3_3D(mRS); in run() [all …]
|
D | UT_alloc_copy.java | 37 RenderScript mRS = createRenderScript(false); in run() local 39 allocation_copy1DRangeTo_Byte(mRS); in run() 40 allocation_copy1DRangeTo_Short(mRS); in run() 41 allocation_copy1DRangeTo_Int(mRS); in run() 42 allocation_copy1DRangeTo_Float(mRS); in run() 43 allocation_copy1DRangeTo_Long(mRS); in run() 45 allocation_copy2DRangeTo_Byte(mRS); in run() 46 allocation_copy2DRangeTo_Short(mRS); in run() 47 allocation_copy2DRangeTo_Int(mRS); in run() 48 allocation_copy2DRangeTo_Float(mRS); in run() [all …]
|
D | UT_instance.java | 39 RenderScript mRS = createRenderScript(false); in run() local 41 ScriptC_instance instance_1 = new ScriptC_instance(mRS); in run() 42 ScriptC_instance instance_2 = new ScriptC_instance(mRS); in run() 43 ScriptC_instance instance_3 = new ScriptC_instance(mRS); in run() 44 ScriptC_instance instance_4 = new ScriptC_instance(mRS); in run() 45 ScriptC_instance instance_5 = new ScriptC_instance(mRS); in run() 47 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(1).create(); in run() 48 Allocation ai1 = Allocation.createTyped(mRS, t); in run() 49 Allocation ai2 = Allocation.createTyped(mRS, t); in run() 50 Allocation ai3 = Allocation.createTyped(mRS, t); in run() [all …]
|
/frameworks/rs/tests/java_api/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/tests/java_api/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 …]
|