HomeSort by relevance Sort by last modified time
    Searched defs:mRS (Results 76 - 100 of 145) sorted by null

1 2 34 5 6

  /development/samples/RenderScript/Levels/src/com/android/rs/levels/
LevelsRSActivity.java 62 private RenderScript mRS;
170 mRS = RenderScript.create(this);
171 mInPixelsAllocation = Allocation.createFromBitmap(mRS, mBitmapIn,
174 mOutPixelsAllocation = Allocation.createTyped(mRS, mInPixelsAllocation.getType(),
179 mScript = new ScriptC_levels(mRS);
200 mRS.finish();
  /frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
UT_alloc_copyPadded.java 33 RenderScript mRS = RenderScript.create(mCtx);
35 testAllocation_Byte3_1D(mRS);
36 testAllocation_Byte3_2D(mRS);
37 testAllocation_Byte3_3D(mRS);
39 testAllocation_Short3_1D(mRS);
40 testAllocation_Short3_2D(mRS);
41 testAllocation_Short3_3D(mRS);
43 testAllocation_Int3_1D(mRS);
44 testAllocation_Int3_2D(mRS);
45 testAllocation_Int3_3D(mRS);
    [all...]
  /frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
UT_alloc_copyPadded.java 34 RenderScript mRS = createRenderScript(false);
36 testAllocation_Byte3_1D(mRS);
37 testAllocation_Byte3_2D(mRS);
38 testAllocation_Byte3_3D(mRS);
40 testAllocation_Short3_1D(mRS);
41 testAllocation_Short3_2D(mRS);
42 testAllocation_Short3_3D(mRS);
44 testAllocation_Int3_1D(mRS);
45 testAllocation_Int3_2D(mRS);
46 testAllocation_Int3_3D(mRS);
    [all...]
  /frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
UT_alloc_copyPadded.java 36 RenderScript mRS = createRenderScript(false);
38 testAllocation_Byte3_1D(mRS);
39 testAllocation_Byte3_2D(mRS);
40 testAllocation_Byte3_3D(mRS);
42 testAllocation_Short3_1D(mRS);
43 testAllocation_Short3_2D(mRS);
44 testAllocation_Short3_3D(mRS);
46 testAllocation_Int3_1D(mRS);
47 testAllocation_Int3_2D(mRS);
48 testAllocation_Int3_3D(mRS);
    [all...]
  /frameworks/base/rs/java/android/renderscript/
Mesh.java 153 int vtxCount = mRS.nMeshGetVertexBufferCount(getID(mRS));
154 int idxCount = mRS.nMeshGetIndexCount(getID(mRS));
160 mRS.nMeshGetVertices(getID(mRS), vtxIDs, vtxCount);
161 mRS.nMeshGetIndices(getID(mRS), idxIDs, primitives, idxCount);
169 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT);
176 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT)
    [all...]
Script.java 58 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig);
63 k = new KernelID(id, mRS, this, slot, sig);
96 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot);
101 i = new InvokeID(id, mRS, this, slot);
134 long id = mRS.nScriptFieldIDCreate(getID(mRS), slot);
139 f = new FieldID(id, mRS, this, slot);
150 mRS.nScriptInvoke(getID(mRS), slot)
    [all...]
  /frameworks/rs/support/java/src/android/support/v8/renderscript/
Script.java 48 dInElement = inType.getElement().getDummyElement(mRS);
49 dInType = inType.getDummyType(mRS, dInElement);
51 dummyAlloc = mRS.nIncAllocationCreateTyped(ain.getID(mRS), dInType, xBytesSize);
96 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp);
101 k = new KernelID(id, mRS, this, slot, sig);
135 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot);
140 i = new InvokeID(id, mRS, this, slot)
    [all...]
Type.java 196 public long getDummyType(RenderScript mRS, long eid) {
197 return mRS.nIncTypeCreate(eid, mDimX, mDimY, mDimZ, mDimMipmaps, mDimFaces, mDimYuv);
280 RenderScript mRS;
298 mRS = rs;
394 long id = mRS.nTypeCreate(mElement.getID(mRS),
396 t = new Type(id, mRS);
  /cts/tests/camera/src/android/hardware/camera2/cts/rs/
AllocationCache.java 45 private final RenderScript mRS;
58 mRS = checkNotNull("rs", rs);
67 return mRS;
100 return Allocation.createTyped(mRS, type, usage);
AllocationInfo.java 42 private final RenderScript mRS = RenderScriptSingleton.getRS();
236 if (element.equals(Element.YUV(mRS))) {
334 comparison = Element.YUV(mRS);
337 comparison = Element.RGBA_8888(mRS);
340 comparison = Element.U8_3(mRS);
343 comparison = Element.U8_4(mRS);
Script.java 182 protected final RenderScript mRS = RenderScriptSingleton.getRS();
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
Intrinsic3DLut.java 80 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS));
85 mCube = Allocation.createTyped(mRS, t);
88 mScript = new ScriptC_intrinsic_3dlut(mRS);
91 mIntrinsic = ScriptIntrinsic3DLUT.create(mRS, Element.U8_4(mRS));
97 makeBuffers(97, 97, Element.U8_4(mRS));
104 mRS.finish();
110 makeBuffers(97, 97, Element.U8_4(mRS));
118 mRS.finish()
    [all...]
IntrinsicBase.java 37 mVerify = new ScriptC_verify(mRS);
64 e = Element.createVector(mRS, dt, vecSize);
67 e = Element.U8(mRS);
69 e = Element.F32(mRS);
76 Type.Builder tb = new Type.Builder(mRS, e);
80 Allocation a = Allocation.createTyped(mRS, t);
136 mRS.finish();
IntrinsicBlur.java 51 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS));
54 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create());
55 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
57 mIntrinsic = ScriptIntrinsicBlur.create(mRS, e);
61 mScript = new ScriptC_intrinsic_blur(mRS);
77 if (mAllocSrc.getType().getElement().isCompatible(Element.U8(mRS))) {
81 if (mAllocSrc.getType().getElement().isCompatible(Element.U8_4(mRS))) {
89 if (mAllocSrc.getType().getElement().isCompatible(Element.U8(mRS))) {
93 if (mAllocSrc.getType().getElement().isCompatible(Element.U8_4(mRS))) {
    [all...]
IntrinsicColorMatrix.java 46 mSi = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS));
47 mSr = new ScriptC_intrinsic_colormatrix(mRS);
77 mRS.finish();
IntrinsicConvolve5x5.java 73 mRS.finish();
101 ScriptIntrinsicConvolve5x5 si = ScriptIntrinsicConvolve5x5.create(mRS, e);
102 ScriptC_intrinsic_convolve5x5 sr = new ScriptC_intrinsic_convolve5x5(mRS);
191 ScriptIntrinsicConvolve5x5 s = ScriptIntrinsicConvolve5x5.create(mRS, Element.U8_4(mRS));
IntrinsicLut.java 45 mIntrinsic = ScriptIntrinsicLUT.create(mRS, Element.U8_4(mRS));
46 mScript = new ScriptC_intrinsic_lut(mRS);
68 makeBuffers(97, 97, Element.U8_4(mRS));
75 mRS.finish();
81 makeBuffers(97, 97, Element.U8_4(mRS));
90 mRS.finish();
96 ScriptIntrinsicLUT s = ScriptIntrinsicLUT.create(mRS, Element.U8_4(mRS));
RSBaseCompute.java 30 RenderScript mRS;
36 mRS = RenderScript.create(mCtx);
37 mRS.setMessageHandler(mRsMessage);
SampleTest.java 36 Allocation a = Allocation.createTyped(mRS, t, Allocation.MipmapControl.MIPMAP_FULL,
69 Element format = Element.RGBA_8888(mRS);
70 Type.Builder b = new Type.Builder(mRS, format);
75 mScript = new ScriptC_sample(mRS);
77 mScript.set_gNearest(Sampler.CLAMP_NEAREST(mRS));
78 mScript.set_gLinear(Sampler.CLAMP_LINEAR(mRS));
80 Sampler.Builder sb = new Sampler.Builder(mRS);
84 mScript.set_gMipLinear(Sampler.CLAMP_LINEAR_MIP_LINEAR(mRS));
97 mRS.finish();
SingleSourceForEachTest.java 44 Type.Builder i32TypeBuilder = new Type.Builder(mRS, Element.I32(mRS));
46 testInputAlloc = Allocation.createTyped(mRS, i32TypeBuilder.create());
47 testInputAlloc2 = Allocation.createTyped(mRS, i32TypeBuilder.create());
48 testOutputAlloc = Allocation.createTyped(mRS, i32TypeBuilder.create());
49 baselineOutputAlloc = Allocation.createTyped(mRS, i32TypeBuilder.create());
56 s = new ScriptC_single_source_script(mRS);
131 mRS.finish();
SmallStructsTest.java 54 mScript = new ScriptC_small_structs(mRS);
64 mRS.finish();
156 .newInstance(mRS, sAllocationElements);
186 mRS.finish();
216 .newInstance(mRS, sAllocationElements);
248 mRS.finish();
YuvTest.java 76 ay = Allocation.createTyped(mRS, Type.createXY(mRS, Element.U8(mRS), w, h));
77 final Type tuv = Type.createXY(mRS, Element.U8(mRS), w >> 1, h >> 1);
78 au = Allocation.createTyped(mRS, tuv);
79 av = Allocation.createTyped(mRS, tuv);
87 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height))
    [all...]
  /cts/tests/tests/rscpp/librscpptest/
rs_jni.cpp 459 sp<RS> mRS = new RS();
460 mRS->init(path);
463 sp<ScriptIntrinsicYuvToRGB> syuv = ScriptIntrinsicYuvToRGB::create(mRS, Element::U8_4(mRS));;
467 //syuv = ScriptIntrinsicYuvToRGB::create(mRS, Element::YUV(mRS));
468 Type::Builder tb(mRS, Element::YUV(mRS));
472 inputAlloc = Allocation::createTyped(mRS, tb.create());
475 //syuv = ScriptIntrinsicYuvToRGB::create(mRS, Element::U8(mRS))
    [all...]
rs_jni_element.cpp 37 sp<RS> mRS = new RS();
38 mRS->init(path);
42 passed &= (Element::createPixel(mRS,
45 passed &= (Element::createPixel(mRS,
48 passed &= (Element::createPixel(mRS,
51 passed &= (Element::createPixel(mRS,
54 passed &= (Element::createPixel(mRS,
57 passed &= (Element::createPixel(mRS,
69 sp<RS> mRS = new RS();
70 mRS->init(path)
    [all...]
  /frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
ErrorCalculator.java 35 private RenderScript mRS;
52 mRS = RenderScript.create(c);
57 mScript = new ScriptC_errorCalculator(mRS);
62 mInputRowsAllocation = Allocation.createSized(mRS, Element.I32(mRS), rowIndices.length,
65 mOutputRegionsAllocation = Allocation.createSized(mRS, Element.I32(mRS),
77 mIdealPixelsAllocation = Allocation.createFromBitmap(mRS, ideal,
79 mGivenPixelsAllocation = Allocation.createFromBitmap(mRS, given,
118 mIdealPixelsAllocation = Allocation.createFromBitmap(mRS, ideal
    [all...]

Completed in 303 milliseconds

1 2 34 5 6