/frameworks/base/rs/java/android/renderscript/ |
H A D | ScriptIntrinsicHistogram.java | 94 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && 95 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && 96 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && 97 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { 141 if (mOut.getType().getElement() != Element.U32(mRS) && 142 mOut.getType().getElement() != Element.U32_2(mRS) && 143 mOut.getType().getElement() != Element.U32_3(mRS) && 144 mOut.getType().getElement() != Element.U32_4(mRS) && 145 mOut.getType().getElement() != Element.I32(mRS) && 146 mOut.getType().getElement() != Element.I32_2(mRS) [all...] |
H A D | ProgramFragment.java | 64 mRS.validate(); 71 tmp[idx++] = mInputs[i].getID(mRS); 75 tmp[idx++] = mOutputs[i].getID(mRS); 79 tmp[idx++] = mConstants[i].getID(mRS); 87 long id = mRS.nProgramFragmentCreate(mShader, texNames, tmp); 88 ProgramFragment pf = new ProgramFragment(id, mRS);
|
H A D | ProgramFragmentFixedFunction.java | 51 mRS.validate(); 58 tmp[idx++] = mInputs[i].getID(mRS); 62 tmp[idx++] = mOutputs[i].getID(mRS); 66 tmp[idx++] = mConstants[i].getID(mRS); 74 long id = mRS.nProgramFragmentCreate(mShader, texNames, tmp); 75 ProgramFragmentFixedFunction pf = new ProgramFragmentFixedFunction(id, mRS); 93 RenderScript mRS; field in class:ProgramFragmentFixedFunction.Builder 232 mRS = rs; 292 InternalBuilder sb = new InternalBuilder(mRS); 304 Element.Builder b = new Element.Builder(mRS); [all...] |
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/ |
H A D | Mandelbrot.java | 23 private RenderScript mRS; field in class:Mandelbrot 28 mRS = rs; 29 mScript = new ScriptC_mandelbrot(mRS); 40 mRS.finish();
|
H A D | LaunchTest.java | 23 private RenderScript mRS; field in class:LaunchTest 29 mRS = rs; 30 mScript = new ScriptC_launchtest(mRS); 44 mRS.finish(); 52 mRS.finish();
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
H A D | Artistic1.java | 29 mScript = new ScriptC_artistic1(mRS); 30 mBlured = Allocation.createTyped(mRS, mInPixelsAllocation.getType()); 33 ScriptIntrinsicBlur blur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS));
|
H A D | Histogram.java | 31 mScript = new ScriptC_histogram(mRS); 32 mHist = ScriptIntrinsicHistogram.create(mRS, Element.U8_4(mRS)); 44 Type.Builder tb = new Type.Builder(mRS, Element.I32(mRS)); 47 mSums = Allocation.createTyped(mRS, t); 48 mSum = Allocation.createSized(mRS, Element.I32(mRS), 256);
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | Artistic1.java | 29 mScript = new ScriptC_artistic1(mRS); 30 mBlured = Allocation.createTyped(mRS, mInPixelsAllocation.getType()); 33 ScriptIntrinsicBlur blur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS));
|
H A D | Histogram.java | 37 mScript = new ScriptC_histogram(mRS); 38 mHist = ScriptIntrinsicHistogram.create(mRS, Element.U8_4(mRS)); 50 Type.Builder tb = new Type.Builder(mRS, Element.I32(mRS)); 53 mSums = Allocation.createTyped(mRS, t); 54 mSum = Allocation.createSized(mRS, Element.I32(mRS), 256);
|
H A D | Blur25G.java | 67 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 mScript = new ScriptC_greyscale(mRS); 76 mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8(mRS));
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A 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...] |
H A D | ScriptIntrinsicResize.java | 64 if (!e.isCompatible(Element.U8(mRS)) && 65 !e.isCompatible(Element.U8_2(mRS)) && 66 !e.isCompatible(Element.U8_3(mRS)) && 67 !e.isCompatible(Element.U8_4(mRS)) && 68 !e.isCompatible(Element.F32(mRS)) && 69 !e.isCompatible(Element.F32_2(mRS)) && 70 !e.isCompatible(Element.F32_3(mRS)) && 71 !e.isCompatible(Element.F32_4(mRS))) {
|
/frameworks/av/media/libstagefright/filters/ |
H A D | IntrinsicBlurFilter.cpp | 46 mRS = new RSC::RS(); 48 if (!mRS->init(mCacheDir.c_str())) { 54 RSC::sp<const RSC::Element> e = RSC::Element::U8_4(mRS); 56 RSC::Type::Builder tb(mRS, e); 61 mAllocIn = RSC::Allocation::createTyped(mRS, t); 62 mAllocOut = RSC::Allocation::createTyped(mRS, t); 64 mBlur = RSC::ScriptIntrinsicBlur::create(mRS, e); 75 mRS.clear();
|
H A D | SaturationFilter.cpp | 46 mRS = new RSC::RS(); 48 if (!mRS->init(mCacheDir.c_str())) { 54 RSC::sp<const RSC::Element> e = RSC::Element::U8_4(mRS); 56 RSC::Type::Builder tb(mRS, e); 61 mAllocIn = RSC::Allocation::createTyped(mRS, t); 62 mAllocOut = RSC::Allocation::createTyped(mRS, t); 64 mScript = new ScriptC_saturationARGB(mRS); 75 mRS.clear();
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
H A D | 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); 82 testAllocation_Byte3_1D(RenderScript mRS) argument 113 testAllocation_Byte3_2D(RenderScript mRS) argument 145 testAllocation_Byte3_3D(RenderScript mRS) argument 178 testAllocation_Short3_1D(RenderScript mRS) argument 212 testAllocation_Short3_2D(RenderScript mRS) argument 247 testAllocation_Short3_3D(RenderScript mRS) argument 283 testAllocation_Int3_1D(RenderScript mRS) argument 317 testAllocation_Int3_2D(RenderScript mRS) argument 352 testAllocation_Int3_3D(RenderScript mRS) argument 388 testAllocation_Float3_1D(RenderScript mRS) argument 421 testAllocation_Float3_2D(RenderScript mRS) argument 455 testAllocation_Float3_3D(RenderScript mRS) argument 491 testAllocation_Double3_1D(RenderScript mRS) argument 524 testAllocation_Double3_2D(RenderScript mRS) argument 558 testAllocation_Double3_3D(RenderScript mRS) argument 594 testAllocation_Long3_1D(RenderScript mRS) argument 628 testAllocation_Long3_2D(RenderScript mRS) argument 663 testAllocation_Long3_3D(RenderScript mRS) argument 700 testAllocation_copy1DRangeTo_Byte3(RenderScript mRS) argument 740 testAllocation_copy1DRangeTo_Short3(RenderScript mRS) argument 783 testAllocation_copy1DRangeTo_Int3(RenderScript mRS) argument 826 testAllocation_copy1DRangeTo_Float3(RenderScript mRS) argument 869 testAllocation_copy1DRangeTo_Long3(RenderScript mRS) argument 912 testAllocation_copy2DRangeTo_Byte3(RenderScript mRS) argument 948 testAllocation_copy2DRangeTo_Short3(RenderScript mRS) argument 987 testAllocation_copy2DRangeTo_Int3(RenderScript mRS) argument 1026 testAllocation_copy2DRangeTo_Float3(RenderScript mRS) argument 1065 testAllocation_copy2DRangeTo_Long3(RenderScript mRS) argument 1105 testAllocation_copy1DRangeToUnchecked_Byte3(RenderScript mRS) argument 1145 testAllocation_copy1DRangeToUnchecked_Short3(RenderScript mRS) argument 1188 testAllocation_copy1DRangeToUnchecked_Int3(RenderScript mRS) argument 1231 testAllocation_copy1DRangeToUnchecked_Float3(RenderScript mRS) argument 1274 testAllocation_copy1DRangeToUnchecked_Long3(RenderScript mRS) argument [all...] |
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | 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); 82 testAllocation_Byte3_1D(RenderScript mRS) argument 113 testAllocation_Byte3_2D(RenderScript mRS) argument 145 testAllocation_Byte3_3D(RenderScript mRS) argument 178 testAllocation_Short3_1D(RenderScript mRS) argument 212 testAllocation_Short3_2D(RenderScript mRS) argument 247 testAllocation_Short3_3D(RenderScript mRS) argument 283 testAllocation_Int3_1D(RenderScript mRS) argument 317 testAllocation_Int3_2D(RenderScript mRS) argument 352 testAllocation_Int3_3D(RenderScript mRS) argument 388 testAllocation_Float3_1D(RenderScript mRS) argument 421 testAllocation_Float3_2D(RenderScript mRS) argument 455 testAllocation_Float3_3D(RenderScript mRS) argument 491 testAllocation_Double3_1D(RenderScript mRS) argument 524 testAllocation_Double3_2D(RenderScript mRS) argument 558 testAllocation_Double3_3D(RenderScript mRS) argument 594 testAllocation_Long3_1D(RenderScript mRS) argument 628 testAllocation_Long3_2D(RenderScript mRS) argument 663 testAllocation_Long3_3D(RenderScript mRS) argument 700 testAllocation_copy1DRangeTo_Byte3(RenderScript mRS) argument 740 testAllocation_copy1DRangeTo_Short3(RenderScript mRS) argument 783 testAllocation_copy1DRangeTo_Int3(RenderScript mRS) argument 826 testAllocation_copy1DRangeTo_Float3(RenderScript mRS) argument 869 testAllocation_copy1DRangeTo_Long3(RenderScript mRS) argument 912 testAllocation_copy2DRangeTo_Byte3(RenderScript mRS) argument 948 testAllocation_copy2DRangeTo_Short3(RenderScript mRS) argument 987 testAllocation_copy2DRangeTo_Int3(RenderScript mRS) argument 1026 testAllocation_copy2DRangeTo_Float3(RenderScript mRS) argument 1065 testAllocation_copy2DRangeTo_Long3(RenderScript mRS) argument 1105 testAllocation_copy1DRangeToUnchecked_Byte3(RenderScript mRS) argument 1145 testAllocation_copy1DRangeToUnchecked_Short3(RenderScript mRS) argument 1188 testAllocation_copy1DRangeToUnchecked_Int3(RenderScript mRS) argument 1231 testAllocation_copy1DRangeToUnchecked_Float3(RenderScript mRS) argument 1274 testAllocation_copy1DRangeToUnchecked_Long3(RenderScript mRS) argument [all...] |
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | Blur25.java | 67 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);
|
H A D | Blur25G.java | 61 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 64 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); 65 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); 67 mScript = new ScriptC_greyscale(mRS); 70 mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8(mRS));
|
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/ |
H A D | RSTestView.java | 52 private RenderScriptGL mRS; field in class:RSTestView 57 if (mRS == null) { 59 mRS = createRenderScriptGL(sc); 60 mRS.setSurface(holder, w, h); 62 mRender.init(mRS, getResources(), w, h); 68 if(mRS != null) { 70 mRS = null;
|
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/ |
H A D | RSTestView.java | 52 private RenderScriptGL mRS; field in class:RSTestView 57 if (mRS == null) { 59 mRS = createRenderScriptGL(sc); 60 mRS.setSurface(holder, w, h); 62 mRender.init(mRS, getResources(), w, h); 68 if(mRS != null) { 70 mRS = null;
|
/frameworks/rs/java/tests/RsTest_16/src/com/android/rs/test/ |
H A D | RSTestView.java | 52 private RenderScriptGL mRS; field in class:RSTestView 57 if (mRS == null) { 59 mRS = createRenderScriptGL(sc); 60 mRS.setSurface(holder, w, h); 62 mRender.init(mRS, getResources(), w, h); 68 if(mRS != null) { 70 mRS = null;
|
/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/ |
H A D | TestBase.java | 42 protected RenderScript mRS; field in class:TestBase 67 mRS = ipact.mRS; 68 mRS.setMessageHandler(new MessageProcessor(act)); 87 mRS.sendMessage(0, null); 91 mRS.finish(); 95 mRS.setMessageHandler(null);
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
H A D | BallsRS.java | 34 private RenderScriptGL mRS; field in class:BallsRS 45 mVpConsts = new ScriptField_VpConsts(mRS, 1, 50 mvp.loadOrtho(0, mRS.getWidth(), mRS.getHeight(), 0, -1, 1); 58 ProgramVertex.Builder sb = new ProgramVertex.Builder(mRS); 72 mRS.bindProgramVertex(pvs); 80 Allocation.createFromBitmap(mRS, bp, 96 ProgramFragmentFixedFunction.Builder pfb = new ProgramFragmentFixedFunction.Builder(mRS); 105 mRS = rs; 112 mPoints = new ScriptField_Point(mRS, PART_COUN [all...] |
/frameworks/rs/java/tests/LatencyBenchmark/src/com/example/android/rs/computebench/ |
H A D | Benchmark.java | 23 private final RenderScript mRS; field in class:Benchmark 29 mRS = rs; 30 mScript = new ScriptC_compute_benchmark(mRS); 31 ain = Allocation.createSized(rs, Element.U32(mRS), 10000); 32 aout = Allocation.createSized(rs, Element.U32(mRS), 10000);
|
/frameworks/rs/cpp/ |
H A D | ScriptIntrinsics.cpp | 51 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "3DLUT forEach element mismatch"); 59 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "setLUT element does not match"); 63 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "setLUT Allocation must be 3D"); 85 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 93 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 101 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 109 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 117 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 125 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 133 mRS [all...] |