Searched refs:mRS (Results 51 - 75 of 183) sorted by relevance

12345678

/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DColorMatrix.java42 mIntrinsic = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS));
49 mScript = new ScriptC_colormatrix(mRS, res, R.raw.colormatrix);
H A DColorCube.java39 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS));
44 mCube = Allocation.createTyped(mRS, t);
63 mScript = new ScriptC_colorcube(mRS, res, R.raw.colorcube);
64 mIntrinsic = ScriptIntrinsic3DLUT.create(mRS, Element.U8_4(mRS));
H A DBWFilter.java26 mScript = new ScriptC_bwfilter(mRS);
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DAllocation.java164 return mAdaptedAllocation.getID(mRS);
166 return getID(mRS);
333 mRS.validate();
334 mRS.nAllocationSyncAll(getIDSafe(), srcLocation);
349 mRS.validate();
350 mRS.nAllocationIoSend(getID(mRS));
371 mRS.validate();
372 mRS.nAllocationIoReceive(getID(mRS));
[all...]
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DUiTest.java47 private RenderScriptGL mRS; field in class:UiTest
82 mTests[index].testName = Allocation.createFromString(mRS,
85 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS,
94 ScriptField_UiTestData_s testData = new ScriptField_UiTestData_s(mRS, 1);
100 mRS = rs;
102 mFontSans = Font.create(mRS, mRes, "sans-serif", Font.Style.NORMAL, 8);
129 return Allocation.createFromBitmapResource(mRS, mRes, id,
136 return Allocation.createFromBitmap(mRS, b,
142 ScriptField_Particle p = new ScriptField_Particle(mRS, PARTICLES_COUNT);
144 final Mesh.AllocationBuilder meshBuilder = new Mesh.AllocationBuilder(mRS);
[all...]
H A DRsBenchRS.java58 mRS = rs;
73 private RenderScriptGL mRS; field in class:RsBenchRS
142 allTests = new ScriptField_TestScripts_s(mRS, numTests);
227 ProgramFragmentFixedFunction.Builder texBuilder = new ProgramFragmentFixedFunction.Builder(mRS);
231 mProgFragmentTexture.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0);
233 ProgramFragmentFixedFunction.Builder colBuilder = new ProgramFragmentFixedFunction.Builder(mRS);
241 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS);
244 mPVA = new ProgramVertexFixedFunction.Constants(mRS);
275 mScript = new ScriptC_rsbench(mRS, mRes, R.raw.rsbench);
276 mRS
[all...]
H A DFillTest.java32 private RenderScriptGL mRS; field in class:FillTest
66 mTests[index].testName = Allocation.createFromString(mRS,
69 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS,
77 ScriptField_FillTestData_s testData = new ScriptField_FillTestData_s(mRS, 1);
83 mRS = rs;
110 ProgramFragment.Builder pfbCustom = new ProgramFragment.Builder(mRS);
117 pfbCustom = new ProgramFragment.Builder(mRS);
122 pfbCustom = new ProgramFragment.Builder(mRS);
125 mFragData = new ScriptField_FillTestFragData_s(mRS, 1);
133 return Allocation.createFromBitmap(mRS,
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DProgramVertex.java128 mRS.validate();
135 tmp[idx++] = mInputs[i].getID(mRS);
139 tmp[idx++] = mOutputs[i].getID(mRS);
143 tmp[idx++] = mConstants[i].getID(mRS);
151 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp);
152 ProgramVertex pv = new ProgramVertex(id, mRS);
H A DAllocation.java193 return mAdaptedAllocation.getID(mRS);
195 return getID(mRS);
348 int typeID = mRS.nAllocationGetType(getID(mRS));
350 mType = new Type(typeID, mRS);
391 mRS.validate();
392 mRS.nAllocationSyncAll(getIDSafe(), srcLocation);
409 mRS.validate();
410 mRS.nAllocationIoSend(getID(mRS));
[all...]
H A DProgramVertexFixedFunction.java46 mRS.validate();
81 mRS.validate();
88 tmp[idx++] = mInputs[i].getID(mRS);
92 tmp[idx++] = mOutputs[i].getID(mRS);
96 tmp[idx++] = mConstants[i].getID(mRS);
104 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp);
105 ProgramVertexFixedFunction pv = new ProgramVertexFixedFunction(id, mRS);
117 RenderScript mRS; field in class:ProgramVertexFixedFunction.Builder
126 mRS = rs;
180 InternalBuilder sb = new InternalBuilder(mRS);
[all...]
H A DScriptIntrinsicColorMatrix.java228 if (!ain.getElement().isCompatible(Element.U8(mRS)) &&
229 !ain.getElement().isCompatible(Element.U8_2(mRS)) &&
230 !ain.getElement().isCompatible(Element.U8_3(mRS)) &&
231 !ain.getElement().isCompatible(Element.U8_4(mRS)) &&
232 !ain.getElement().isCompatible(Element.F32(mRS)) &&
233 !ain.getElement().isCompatible(Element.F32_2(mRS)) &&
234 !ain.getElement().isCompatible(Element.F32_3(mRS)) &&
235 !ain.getElement().isCompatible(Element.F32_4(mRS))) {
240 if (!aout.getElement().isCompatible(Element.U8(mRS)) &&
241 !aout.getElement().isCompatible(Element.U8_2(mRS))
[all...]
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A DColorCube.java47 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS));
52 mCube = Allocation.createTyped(mRS, t);
71 mScript = new ScriptC_colorcube(mRS, res, R.raw.colorcube);
72 mIntrinsic = ScriptIntrinsic3DLUT.create(mRS, Element.U8_4(mRS));
H A DGroupTest.java51 mConvolve = ScriptIntrinsicConvolve3x3.create(mRS, Element.U8_4(mRS));
52 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS));
66 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS));
72 ScriptGroup.Builder b = new ScriptGroup.Builder(mRS);
78 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, connect);
H A DBWFilter.java26 mScript = new ScriptC_bwfilter(mRS);
H A DContrast.java27 mScript = new ScriptC_contrast(mRS);
H A DExposure.java27 mScript = new ScriptC_exposure(mRS);
H A DShadows.java27 mScript = new ScriptC_shadows(mRS);
H A DUsageIO.java41 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS));
51 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, connect, Allocation.USAGE_IO_OUTPUT | Allocation.USAGE_SCRIPT);
52 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, connect, Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT);
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DSceneGraphRS.java43 mRS = rs;
52 private RenderScriptGL mRS; field in class:SceneGraphRS
94 ProgramStore.Builder b = new ProgramStore.Builder(mRS);
105 Sampler.Builder bs = new Sampler.Builder(mRS);
112 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS);
122 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS);
125 mPVA = new ProgramVertexFixedFunction.Constants(mRS);
132 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot,
140 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT);
151 mRootTransform = new SgTransform(mRS);
[all...]
H A DSimpleModelRS.java33 mRS = rs;
39 mRS.getWidth();
40 mRS.getHeight();
44 private RenderScriptGL mRS; field in class:SimpleModelRS
78 ProgramStore.Builder b = new ProgramStore.Builder(mRS);
89 Sampler.Builder bs = new Sampler.Builder(mRS);
96 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS);
106 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS);
109 mPVA = new ProgramVertexFixedFunction.Constants(mRS);
116 mGridImage = Allocation.createFromBitmapResource(mRS, mRe
[all...]
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
H A DBallsView.java49 private RenderScriptGL mRS; field in class:BallsView
54 if (mRS == null) {
56 mRS = createRenderScriptGL(sc);
57 mRS.setSurface(holder, w, h);
59 mRender.init(mRS, getResources(), w, h);
66 if(mRS != null) {
67 mRS = null;
108 if ((mRender == null) || (mRS == null)) {
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DGroupTest.java51 mConvolve = ScriptIntrinsicConvolve3x3.create(mRS, Element.U8_4(mRS));
52 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS));
66 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS));
72 ScriptGroup.Builder b = new ScriptGroup.Builder(mRS);
78 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, connect);
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
H A DRsYuv.java41 private RenderScript mRS; field in class:RsYuv
51 mRS = rs;
52 mScript = new ScriptC_yuv(mRS);
53 mYuv = ScriptIntrinsicYuvToRGB.create(rs, Element.RGBA_8888(mRS));
77 Type.Builder tb = new Type.Builder(mRS, Element.RGBA_8888(mRS));
81 mAllocationOut = Allocation.createTyped(mRS, t, Allocation.USAGE_SCRIPT |
85 tb = new Type.Builder(mRS, Element.createPixel(mRS, Element.DataType.UNSIGNED_8, Element.DataKind.PIXEL_YUV));
89 mAllocationIn = Allocation.createTyped(mRS, t
[all...]
/frameworks/rs/cpp/
H A DScriptIntrinsics.cpp50 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "3DLUT forEach element mismatch");
58 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "setLUT element does not match");
62 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "setLUT Allocation must be 3D");
84 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend");
92 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend");
100 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend");
108 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend");
116 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend");
124 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend");
132 mRS
[all...]
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/
H A DComputePerf.java31 private RenderScript mRS; field in class:ComputePerf
43 mRS = RenderScript.create(this);
44 mLT = new LaunchTest(mRS, getResources());
59 mMandel = new Mandelbrot(mRS, getResources());

Completed in 4549 milliseconds

12345678