Searched refs:mRS (Results 76 - 100 of 183) sorted by relevance

12345678

/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DContrast.java26 mScript = new ScriptC_contrast(mRS);
H A DExposure.java27 mScript = new ScriptC_exposure(mRS);
H A DGreyscale.java25 mScript = new ScriptC_greyscale(mRS, res, R.raw.greyscale);
H A DShadows.java24 mScript = new ScriptC_shadows(mRS);
H A DVibrance.java23 mScript = new ScriptC_vibrance(mRS);
H A DBlur25.java67 mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS));
72 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS));
75 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create());
76 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
78 mScript = new ScriptC_threshold(mRS, res, R.raw.threshold);
H A DGrain.java68 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS));
71 mNoise = Allocation.createTyped(mRS, tb.create());
72 mNoise2 = Allocation.createTyped(mRS, tb.create());
74 mScript = new ScriptC_grain(mRS, res, R.raw.grain);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
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 DBlur25.java71 mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS));
76 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS));
79 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create());
80 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
82 mScript = new ScriptC_threshold(mRS, res, R.raw.threshold);
H A DGrain.java73 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS));
76 mNoise = Allocation.createTyped(mRS, tb.create());
77 mNoise2 = Allocation.createTyped(mRS, tb.create());
79 mScript = new ScriptC_grain(mRS, res, R.raw.grain);
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java80 private RenderScript mRS; field in class:SampleRSActivity
102 mRS = RenderScript.create(this);
103 mTwoByTwoAlloc = Allocation.createFromBitmap(mRS, mBitmapTwoByTwo,
107 mCityAlloc = Allocation.createFromBitmap(mRS, mBitmapCity,
111 Type.Builder b = new Type.Builder(mRS, Element.RGBA_8888(mRS));
119 Allocation outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage);
120 TextureViewUpdater updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_LINEAR(mRS));
125 outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage);
126 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_LINEAR(mRS));
[all...]
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
H A DFountainView.java49 private RenderScriptGL mRS; field in class:FountainView
54 if (mRS == null) {
56 mRS = createRenderScriptGL(sc);
57 mRS.setSurface(holder, w, h);
59 mRender.init(mRS, getResources());
65 if (mRS != null) {
66 mRS = null;
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/
H A DFountainView.java49 private RenderScriptGL mRS; field in class:FountainView
54 if (mRS == null) {
56 mRS = createRenderScriptGL(sc);
57 mRS.setSurface(holder, w, h);
59 mRender.init(mRS, getResources(), w, h);
65 if (mRS != null) {
66 mRS = null;
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A DBlur25.java71 mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS));
76 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS));
79 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create());
80 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
82 mScript = new ScriptC_threshold(mRS, res, R.raw.threshold);
H A DBlur25G.java67 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS));
70 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create());
71 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
73 mCM = ScriptIntrinsicColorMatrix.create(mRS);
76 mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8(mRS));
H A DGrain.java73 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS));
76 mNoise = Allocation.createTyped(mRS, tb.create());
77 mNoise2 = Allocation.createTyped(mRS, tb.create());
79 mScript = new ScriptC_grain(mRS, res, R.raw.grain);
/frameworks/base/graphics/java/android/renderscript/
H A DFileA3D.java81 RenderScript mRS; field in class:FileA3D.IndexEntry
118 mRS.validate();
119 BaseObj obj = internalCreate(mRS, this);
160 mRS = rs;
178 int numFileEntries = mRS.nFileA3DGetNumIndexEntries(getID(mRS));
187 mRS.nFileA3DGetIndexEntries(getID(mRS), numFileEntries, ids, names);
190 mFileEntries[i] = new IndexEntry(mRS, i, getID(mRS), name
[all...]
H A DProgramRaster.java123 RenderScript mRS; field in class:ProgramRaster.Builder
131 mRS = rs;
156 mRS.validate();
157 int id = mRS.nProgramRasterCreate(mPointSprite, mCullMode.mID);
158 ProgramRaster programRaster = new ProgramRaster(id, mRS);
H A DProgram.java150 a.getType().getID(mRS) != mConstants[slot].getID(mRS)) {
153 int id = a != null ? a.getID(mRS) : 0;
154 mRS.nProgramBindConstants(getID(mRS), slot, id);
166 mRS.validate();
175 int id = va != null ? va.getID(mRS) : 0;
176 mRS.nProgramBindTexture(getID(mRS), slot, id);
190 mRS
201 RenderScript mRS; field in class:Program.BaseProgramBuilder
[all...]
H A DMesh.java154 int vtxCount = mRS.nMeshGetVertexBufferCount(getID(mRS));
155 int idxCount = mRS.nMeshGetIndexCount(getID(mRS));
161 mRS.nMeshGetVertices(getID(mRS), vtxIDs, vtxCount);
162 mRS.nMeshGetIndices(getID(mRS), idxIDs, primitives, idxCount);
170 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT);
177 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, nul
192 RenderScript mRS; field in class:Mesh.Builder
407 RenderScript mRS; field in class:Mesh.AllocationBuilder
555 RenderScript mRS; field in class:Mesh.TriangleMeshBuilder
[all...]
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
H A DRSTestCore.java39 private RenderScriptGL mRS; field in class:RSTestCore
57 mRS = rs;
63 mScript = new ScriptC_rslist(mRS, mRes, R.raw.rslist);
86 mListAllocs = new ScriptField_ListAllocs_s(mRS, uta.length);
89 listElem.text = Allocation.createFromString(mRS, uta[i].name, Allocation.USAGE_SCRIPT);
99 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8);
102 mRS.bindRootScript(mScript);
151 if (mListAllocs != null && mScript != null && mRS != null) {
155 mRS.bindRootScript(mScript);
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
H A DRSTestCore.java39 private RenderScriptGL mRS; field in class:RSTestCore
57 mRS = rs;
63 mScript = new ScriptC_rslist(mRS, mRes, R.raw.rslist);
90 mListAllocs = new ScriptField_ListAllocs_s(mRS, uta.length);
93 listElem.text = Allocation.createFromString(mRS, uta[i].name, Allocation.USAGE_SCRIPT);
103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8);
106 mRS.bindRootScript(mScript);
155 if (mListAllocs != null && mScript != null && mRS != null) {
159 mRS.bindRootScript(mScript);

Completed in 1529 milliseconds

12345678