/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | RsBrickedBitMask.java | 16 package com.example.android.rs.vr.engine;
82 Allocation createChunkAllocation(RenderScript rs) {
argument 83 Type.Builder b = new Type.Builder(rs, android.renderscript.Element.U32(rs));
87 return Allocation.createTyped(rs, b.create(), Allocation.USAGE_SCRIPT);
90 Allocation createBitChunkAllocation(RenderScript rs) {
argument 91 Type.Builder b = new Type.Builder(rs, android.renderscript.Element.U8(rs));
95 return Allocation.createTyped(rs, b.create(), Allocation.USAGE_SCRIPT);
|
/frameworks/rs/tests/lldb/java/Reduction/src/com/android/rs/lldbreductiontest/ |
H A D | MainActivity.java | 23 package com.android.rs.lldbreductiontest; 66 RenderScript rs, ScriptC_reduce_auto_comb s, Allocation alloc) { 74 private float findMinUserType(RenderScript rs, ScriptC_reduce s, Allocation alloc) { argument 82 private float findMinUserType1DAutoComb(RenderScript rs, ScriptC_reduce_auto_comb s, int xCount) { argument 83 ScriptField_MinUserType minUserType = new ScriptField_MinUserType(rs, xCount); 93 return findMinUserTypeAutoComb(rs, s, alloc); 96 private float findMinUserType1D(RenderScript rs, ScriptC_reduce s, int xCount) { argument 97 ScriptField_MinUserType minUserType = new ScriptField_MinUserType(rs, xCount); 107 return findMinUserType(rs, s, alloc); 65 findMinUserTypeAutoComb( RenderScript rs, ScriptC_reduce_auto_comb s, Allocation alloc) argument
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | RSSurfaceView.java | 137 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); 138 setRenderScriptGL(rs); 139 return rs; 155 public void setRenderScriptGL(RenderScriptGL rs) { argument 156 mRS = rs;
|
H A D | ScriptIntrinsicResize.java | 25 private ScriptIntrinsicResize(long id, RenderScript rs) { argument 26 super(id, rs); 35 * @param rs The RenderScript context 39 public static ScriptIntrinsicResize create(RenderScript rs) { argument 40 long id = rs.nScriptIntrinsicCreate(12, 0); 41 ScriptIntrinsicResize si = new ScriptIntrinsicResize(id, rs);
|
H A D | BaseObj.java | 29 BaseObj(long id, RenderScript rs) { argument 30 rs.validate(); 31 mRS = rs; 47 * @param rs Context to verify against internal context for 52 long getID(RenderScript rs) { argument 60 if ((rs != null) && (rs != mRS)) {
|
H A D | AllocationAdapter.java | 26 AllocationAdapter(long id, RenderScript rs, Allocation alloc, Type t) { argument 27 super(id, rs, alloc.mType, alloc.mUsage); 33 long getID(RenderScript rs) { 231 static public AllocationAdapter create1D(RenderScript rs, Allocation a) { argument 232 rs.validate(); 233 Type t = Type.createX(rs, a.getElement(), a.getType().getX()); 234 return createTyped(rs, a, t); 238 static public AllocationAdapter create2D(RenderScript rs, Allocation a) { argument 239 rs.validate(); 240 Type t = Type.createXY(rs, 266 createTyped(RenderScript rs, Allocation a, Type t) argument [all...] |
H A D | ProgramFragment.java | 39 ProgramFragment(long id, RenderScript rs) { argument 40 super(id, rs); 51 * @param rs Context to which the program will belong. 53 public Builder(RenderScript rs) { argument 54 super(rs);
|
H A D | ProgramVertexFixedFunction.java | 30 ProgramVertexFixedFunction(long id, RenderScript rs) { argument 31 super(id, rs); 50 public InternalBuilder(RenderScript rs) { argument 51 super(rs); 119 * @param rs Context to which the program will belong. 121 public Builder(RenderScript rs) { argument 122 mRS = rs; 135 static Type getConstantInputType(RenderScript rs) { argument 136 Element.Builder b = new Element.Builder(rs); 137 b.add(Element.MATRIX4X4(rs), "M 218 Constants(RenderScript rs) argument [all...] |
H A D | Type.java | 228 Type(long id, RenderScript rs) { argument 229 super(id, rs); 257 * @param rs The RenderScript context 263 static public Type createX(RenderScript rs, Element e, int dimX) { argument 268 long id = rs.nTypeCreate(e.getID(rs), dimX, 0, 0, false, false, 0); 269 Type t = new Type(id, rs); 280 * @param rs The RenderScript context 287 static public Type createXY(RenderScript rs, Element e, int dimX, int dimY) { argument 292 long id = rs 313 createXYZ(RenderScript rs, Element e, int dimX, int dimY, int dimZ) argument 350 Builder(RenderScript rs, Element e) argument [all...] |
/frameworks/rs/tests/java_api/LatencyBenchmark/src/com/example/android/rs/computebench/ |
H A D | Benchmark.java | 17 package com.example.android.rs.latencybench; 28 public Benchmark(RenderScript rs, Resources res) { argument 29 mRS = rs; 31 ain = Allocation.createSized(rs, Element.U32(mRS), 10000); 32 aout = Allocation.createSized(rs, Element.U32(mRS), 10000);
|
/frameworks/rs/cpp/ |
H A D | Element.cpp | 74 #define CREATE_USER(N, T) android::RSC::sp<const Element> Element::N(const android::RSC::sp<RS>& rs) { \ 75 if (rs->mElements.N == nullptr) { \ 76 rs->mElements.N = (createUser(rs, RS_TYPE_##T)); \ 78 return rs->mElements.N; \ 102 #define CREATE_PIXEL(N, T, K) android::RSC::sp<const Element> Element::N(const android::RSC::sp<RS> &rs) { \ 103 if (rs->mElements.N == nullptr) { \ 104 rs->mElements.N = createPixel(rs, RS_TYPE_##T, RS_KIND_##K); \ 106 return rs 177 Element(void *id, android::RSC::sp<RS> rs, android::RSC::sp<const Element> * elements, size_t elementCount, const char ** elementNames, size_t * elementNameLengths, uint32_t * arraySizes) argument 216 Element(void *id, android::RSC::sp<RS> rs) argument 273 Element(void *id, android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk, bool norm, uint32_t size) argument 318 createUser(const android::RSC::sp<RS>& rs, RsDataType dt) argument 323 createVector(const android::RSC::sp<RS>& rs, RsDataType dt, uint32_t size) argument 332 createPixel(const android::RSC::sp<RS>& rs, RsDataType dt, RsDataKind dk) argument 408 Builder(android::RSC::sp<RS> rs) argument [all...] |
H A D | ScriptIntrinsics.cpp | 35 ScriptIntrinsic::ScriptIntrinsic(sp<RS> rs, int id, sp<const Element> e) argument 36 : Script(nullptr, rs) { 37 mID = createDispatch(rs, RS::dispatch->ScriptIntrinsicCreate(rs->getContext(), id, 46 sp<ScriptIntrinsic3DLUT> ScriptIntrinsic3DLUT::create(const sp<RS>& rs, const sp<const Element>& e) { argument 47 if (e->isCompatible(Element::U8_4(rs)) == false) { 48 rs->throwError(RS_ERROR_INVALID_ELEMENT, "Element not supported for intrinsic"); 51 return new ScriptIntrinsic3DLUT(rs, e); 54 ScriptIntrinsic3DLUT::ScriptIntrinsic3DLUT(sp<RS> rs, sp<const Element> e) argument 55 : ScriptIntrinsic(rs, RS_SCRIPT_INTRINSIC_ID_3DLU 80 create(const sp<RS>& rs, const sp<const Element>& e) argument 88 ScriptIntrinsicBlend(sp<RS> rs, sp<const Element> e) argument 215 create(const sp<RS>& rs, const sp<const Element>& e) argument 224 ScriptIntrinsicBlur(sp<RS> rs, sp<const Element> e) argument 255 create(const sp<RS>& rs) argument 259 ScriptIntrinsicColorMatrix(sp<RS> rs, sp<const Element> e) argument 348 create(const sp<RS>& rs, const sp<const Element>& e) argument 364 ScriptIntrinsicConvolve3x3(sp<RS> rs, sp<const Element> e) argument 389 create(const sp<RS>& rs, const sp<const Element>& e) argument 405 ScriptIntrinsicConvolve5x5(sp<RS> rs, sp<const Element> e) argument 431 create(const sp<RS>& rs, const sp<const Element>& e) argument 435 ScriptIntrinsicHistogram(sp<RS> rs, sp<const Element> e) argument 516 create(const sp<RS>& rs, const sp<const Element>& e) argument 524 ScriptIntrinsicLUT(sp<RS> rs, sp<const Element> e) argument 581 create(const sp<RS>& rs) argument 585 ScriptIntrinsicResize(sp<RS> rs, sp<const Element> e) argument 618 create(const sp<RS>& rs, const sp<const Element>& e) argument 626 ScriptIntrinsicYuvToRGB(sp<RS> rs, sp<const Element> e) argument [all...] |
/frameworks/rs/rsov/driver/ |
H A D | Android.mk | 47 frameworks/rs \ 48 frameworks/rs/cpu_ref \ 49 frameworks/rs/rsov/compiler \
|
/frameworks/av/media/libstagefright/filters/ |
H A D | Android.mk | 11 saturationARGB.rs \ 17 $(TOP)/frameworks/rs/cpp \ 18 $(TOP)/frameworks/rs \
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
H A D | ScriptIntrinsicResize.java | 29 protected ScriptIntrinsicResize(long id, RenderScript rs) { argument 30 super(id, rs); 39 * @param rs The RenderScript context 43 public static ScriptIntrinsicResize create(RenderScript rs) { argument 45 boolean mUseIncSupp = rs.isUseNative() && 48 id = rs.nScriptIntrinsicCreate(12, 0, mUseIncSupp); 50 ScriptIntrinsicResize si = new ScriptIntrinsicResize(id, rs);
|
H A D | ScriptIntrinsicHistogram.java | 31 protected ScriptIntrinsicHistogram(long id, RenderScript rs) { argument 32 super(id, rs); 43 * @param rs The RenderScript context 48 public static ScriptIntrinsicHistogram create(RenderScript rs, Element e) { argument 49 if ((!e.isCompatible(Element.U8_4(rs))) && 50 (!e.isCompatible(Element.U8_3(rs))) && 51 (!e.isCompatible(Element.U8_2(rs))) && 52 (!e.isCompatible(Element.U8(rs)))) { 56 boolean mUseIncSupp = rs.isUseNative() && 59 id = rs [all...] |
H A D | Type.java | 188 Type(long id, RenderScript rs) { argument 189 super(id, rs); 204 * @param rs The RenderScript context 210 static public Type createX(RenderScript rs, Element e, int dimX) { argument 215 long id = rs.nTypeCreate(e.getID(rs), dimX, 0, 0, false, false, 0); 216 Type t = new Type(id, rs); 227 * @param rs The RenderScript context 234 static public Type createXY(RenderScript rs, Element e, int dimX, int dimY) { argument 239 long id = rs 260 createXYZ(RenderScript rs, Element e, int dimX, int dimY, int dimZ) argument 296 Builder(RenderScript rs, Element e) argument [all...] |
/frameworks/rs/tests/cpp_api/cppf16/ |
H A D | Android.mk | 16 include frameworks/rs/tests/cpp_api/common.mk
|
/frameworks/rs/tests/java_api/HealingBrush/ |
H A D | Android.mk | 35 $(TOPDIR)frameworks/rs/script_api/include 37 LOCAL_RENDERSCRIPT_FLAGS := -rs-package-name=android.support.v8.renderscript
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | ImageProcessingTestRunner.java | 17 package com.android.rs.image; 19 import com.android.rs.image.ImageProcessingTest; 27 * adb shell am instrument -e iteration <n> -w com.android.rs.image/.ImageProcessingTestRunner
|
H A D | BWFilter.java | 17 package com.android.rs.image;
|
/frameworks/rs/tests/java_api/ImageProcessing2/ |
H A D | Android.mk | 32 $(TOPDIR)frameworks/rs/script_api/include 34 LOCAL_RENDERSCRIPT_FLAGS := -rs-package-name=android.support.v8.renderscript
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | ViewfinderProcessor.java | 43 public ViewfinderProcessor(RenderScript rs, Size dimensions) { argument 44 Type.Builder yuvTypeBuilder = new Type.Builder(rs, Element.YUV(rs)); 49 mInputAllocation = Allocation.createTyped(rs, yuvTypeBuilder.create(), 52 Type.Builder rgbTypeBuilder = new Type.Builder(rs, Element.RGBA_8888(rs)); 56 mOutputAllocation = Allocation.createTyped(rs, rgbTypeBuilder.create(), 62 mScriptFocusPeak = new ScriptC_focus_peak(rs);
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Healing.java | 17 package rs.example.android.com.healingbrush; 32 import com.example.android.rs.sample.ScriptC_healing; 73 * @param rs 76 public void heal(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output) { argument 79 Type.Builder floatImage = new Type.Builder(rs, Element.F32_3(rs)); 87 Allocation dest_alloc = Allocation.createFromBitmap(rs, dest_bitmap); 90 Allocation src_alloc = Allocation.createFromBitmap(rs, src_bitmap); 91 Allocation mask_alloc = Allocation.createFromBitmap(rs, mask_bitmap); 110 heal_orig(healing, rs, imag 122 heal_orig(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output) argument [all...] |
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Healing.java | 17 package rs.example.android.com.healingbrush; 32 import com.example.android.rs.sample.ScriptC_healing; 73 * @param rs 76 public void heal(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output) { argument 78 Type.Builder floatImage = new Type.Builder(rs, Element.F32_3(rs)); 85 Allocation dest1 = Allocation.createTyped(rs, floatImage.create()); 86 Allocation dest2 = Allocation.createTyped(rs, floatImage.create()); 92 Allocation dest_uc4 = Allocation.createFromBitmap(rs, destBitmap); 97 Allocation src_f3 = Allocation.createTyped(rs, floatImag [all...] |