Searched refs:rs (Results 26 - 50 of 415) sorted by relevance

1234567891011>>

/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicLUT.java33 protected ScriptIntrinsicLUT(int id, RenderScript rs) { argument
34 super(id, rs);
42 * @param rs The RenderScript context
47 public static ScriptIntrinsicLUT create(RenderScript rs, Element e) { argument
48 if (rs.isNative) {
49 RenderScriptThunker rst = (RenderScriptThunker) rs;
50 return ScriptIntrinsicLUTThunker.create(rs, e);
53 int id = rs.nScriptIntrinsicCreate(3, e.getID(rs));
55 ScriptIntrinsicLUT si = new ScriptIntrinsicLUT(id, rs);
[all...]
H A DScriptC.java43 * @param rs
45 protected ScriptC(int id, RenderScript rs) { argument
46 super(id, rs);
53 * @param rs
57 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { argument
58 super(0, rs);
60 if (rs.isNative) {
61 RenderScriptThunker rst = (RenderScriptThunker)rs;
67 int id = internalCreate(rs, resources, resourceID);
75 private static synchronized int internalCreate(RenderScript rs, Resource argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DScriptIntrinsicBlur.java29 private ScriptIntrinsicBlur(long id, RenderScript rs) { argument
30 super(id, rs);
39 * @param rs The RenderScript context
44 public static ScriptIntrinsicBlur create(RenderScript rs, Element e) { argument
45 if ((!e.isCompatible(Element.U8_4(rs))) && (!e.isCompatible(Element.U8(rs)))) {
48 long id = rs.nScriptIntrinsicCreate(5, e.getID(rs));
49 ScriptIntrinsicBlur sib = new ScriptIntrinsicBlur(id, rs);
H A DFileA3D.java129 static synchronized BaseObj internalCreate(RenderScript rs, IndexEntry entry) { argument
139 long objectID = rs.nFileA3DGetEntryByIndex(entry.mID, entry.mIndex);
146 entry.mLoadedObj = new Mesh(objectID, rs);
154 IndexEntry(RenderScript rs, int index, long id, String name, EntryType type) { argument
155 mRS = rs;
167 FileA3D(long id, RenderScript rs, InputStream stream) { argument
168 super(id, rs);
222 * @param rs Context to which the object will belong.
228 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { argument
229 rs
249 createFromFile(RenderScript rs, String path) argument
269 createFromFile(RenderScript rs, File path) argument
283 createFromResource(RenderScript rs, Resources res, int id) argument
[all...]
H A DFont.java151 Font(long id, RenderScript rs) { argument
152 super(id, rs);
159 static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { argument
160 rs.validate();
162 long fontId = rs.nFontCreateFromFile(path, pointSize, dpi);
167 Font rsFont = new Font(fontId, rs);
175 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { argument
176 return createFromFile(rs, res, path.getAbsolutePath(), pointSize);
182 static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { argument
183 rs
198 createFromResource(RenderScript rs, Resources res, int id, float pointSize) argument
238 create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) argument
[all...]
H A DScriptIntrinsic3DLUT.java31 private ScriptIntrinsic3DLUT(long id, RenderScript rs, Element e) { argument
32 super(id, rs);
41 * @param rs The RenderScript context
46 public static ScriptIntrinsic3DLUT create(RenderScript rs, Element e) { argument
47 long id = rs.nScriptIntrinsicCreate(8, e.getID(rs));
49 if (!e.isCompatible(Element.U8_4(rs))) {
53 return new ScriptIntrinsic3DLUT(id, rs, e);
H A DScriptIntrinsicLUT.java31 private ScriptIntrinsicLUT(long id, RenderScript rs) { argument
32 super(id, rs);
33 mTables = Allocation.createSized(rs, Element.U8(rs), 1024);
48 * @param rs The RenderScript context
53 public static ScriptIntrinsicLUT create(RenderScript rs, Element e) { argument
54 long id = rs.nScriptIntrinsicCreate(3, e.getID(rs));
55 return new ScriptIntrinsicLUT(id, rs);
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/
H A DLaunchTest.java17 package com.example.android.rs.computeperf;
28 LaunchTest(RenderScript rs, Resources res) { argument
29 mRS = rs;
33 mAllocationX = Allocation.createSized(rs, Element.U8(rs), dim);
34 Type.Builder tb = new Type.Builder(rs, Element.U8(rs));
37 mAllocationXY = Allocation.createTyped(rs, tb.create());
H A Dlaunchtest.rs18 #pragma rs java_package_name(com.example.android.rs.computeperf)
/frameworks/rs/tests/cppallocation/
H A Dmultiply.rs18 #pragma rs java_package_name(unused)
H A Dcompute.cpp23 sp<RS> rs = new RS(); local
25 bool r = rs->init("/system/bin");
27 sp<const Element> e = Element::U32(rs);
29 Type::Builder tb(rs, e);
33 sp<Allocation> ain = Allocation::createTyped(rs, t);
34 sp<Allocation> aout = Allocation::createTyped(rs, t);
36 sp<ScriptC_multiply> sc = new ScriptC_multiply(rs);
/frameworks/rs/tests/cppstrided/
H A Dmultiply.rs18 #pragma rs java_package_name(unused)
/frameworks/rs/cpp/
H A DSampler.cpp22 Sampler::Sampler(sp<RS> rs, void* id): argument
23 BaseObj(id, rs)
52 sp<Sampler> Sampler::create(sp<RS> rs, RsSamplerValue min, RsSamplerValue mag, RsSamplerValue wrapS, RsSamplerValue wrapT, float anisotropy) { argument
54 void* id = RS::dispatch->SamplerCreate(rs->getContext(), min, mag, wrapS, wrapT, RS_SAMPLER_WRAP, anisotropy);
55 return new Sampler(rs, id);
58 #define CREATE_SAMPLER(N, MIN, MAG, WRAPS, WRAPT) sp<const Sampler> Sampler::N(sp<RS> rs) { \
59 if (rs->mSamplers.N == NULL) { \
60 rs->mSamplers.N = (create(rs, MIN, MAG, WRAPS, WRAPT, 0.f)); \
62 return rs
[all...]
H A DElement.cpp75 #define CREATE_USER(N, T) android::RSC::sp<const Element> Element::N(android::RSC::sp<RS> rs) { \
76 if (rs->mElements.N == NULL) { \
77 rs->mElements.N = (createUser(rs, RS_TYPE_##T)); \
79 return rs->mElements.N; \
102 #define CREATE_PIXEL(N, T, K) android::RSC::sp<const Element> Element::N(android::RSC::sp<RS> rs) { \
103 if (rs->mElements.N == NULL) { \
104 rs->mElements.N = createPixel(rs, RS_TYPE_##T, RS_KIND_##K); \
106 return rs
170 Element(void *id, android::RSC::sp<RS> rs, std::vector<android::RSC::sp<Element> > &elements, std::vector<std::string> &elementNames, std::vector<uint32_t> &arraySizes) argument
244 Element(void *id, android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk, bool norm, uint32_t size) argument
274 createUser(android::RSC::sp<RS> rs, RsDataType dt) argument
279 createVector(android::RSC::sp<RS> rs, RsDataType dt, uint32_t size) argument
288 createPixel(android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk) argument
361 Builder(android::RSC::sp<RS> rs) argument
[all...]
/frameworks/rs/tests/cppbasic/
H A Dcompute.cpp14 sp<RS> rs = new RS(); local
15 printf("New RS %p\n", rs.get());
18 bool r = rs->init("/system/bin");
21 sp<const Element> e = Element::RGBA_8888(rs);
24 Type::Builder tb(rs, e);
31 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000);
34 sp<Allocation> ain = Allocation::createTyped(rs, t);
35 sp<Allocation> aout = Allocation::createTyped(rs, t);
38 sp<ScriptC_mono> sc = new ScriptC_mono(rs);
46 sp<const Sampler> samp = Sampler::CLAMP_NEAREST(rs);
[all...]
/frameworks/rs/tests/cppbasic-shared/
H A Dcompute.cpp14 sp<RS> rs = new RS(); local
15 printf("New RS %p\n", rs.get());
18 bool r = rs->init("/system/bin");
21 sp<const Element> e = Element::RGBA_8888(rs);
24 Type::Builder tb(rs, e);
31 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000);
34 sp<Allocation> ain = Allocation::createTyped(rs, t);
35 sp<Allocation> aout = Allocation::createTyped(rs, t);
38 sp<ScriptC_mono> sc = new ScriptC_mono(rs);
46 sp<const Sampler> samp = Sampler::CLAMP_NEAREST(rs);
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DTransform.java53 RenderScriptGL rs = SceneManager.getRS();
55 Allocation childRSData = Allocation.createSized(rs, Element.ALLOCATION(rs),
76 RenderScriptGL rs = SceneManager.getRS();
77 if (rs == null) {
80 mField = new ScriptField_SgTransform(rs, 1);
83 mTransformData.name = getNameAlloc(rs);
/frameworks/base/tests/RenderScriptTests/HelloWorld/src/com/example/android/rs/helloworld/
H A DHelloWorldRS.java17 package com.example.android.rs.helloworld;
34 public void init(RenderScriptGL rs, Resources res) { argument
35 mRS = rs;
/frameworks/rs/java/tests/ComputeBenchmark/src/com/example/android/rs/computebench/
H A DBenchmark.java17 package com.example.android.rs.computebench;
26 public Benchmark(RenderScript rs, Resources res) { argument
27 mRS = rs;
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DRsBenchBaseTest.java22 boolean init(RenderScriptGL rs, Resources res); argument
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-common/SRC/
H A DDriverRS.java.template34 public void init(RenderScriptGL rs, Resources res) {
35 mRS = rs;
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-int-param/
H A DDriverRS.java.template34 public void init(RenderScriptGL rs, Resources res) {
35 mRS = rs;
/frameworks/rs/java/tests/HelloComputeNDK/libhellocomputendk/
H A Dmono.rs18 #pragma rs java_package_name(com.example.android.rs.hellocomputendk)
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_copy_test.java17 package com.android.rs.test_compat;
33 void testFloat2(RenderScript rs, ScriptC_copy_test s) { argument
34 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024);
35 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024);
57 void testFloat3(RenderScript rs, ScriptC_copy_test s) { argument
58 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024);
59 Allocation a2 = Allocation.createSized(rs, Elemen
81 testFloat4(RenderScript rs, ScriptC_copy_test s) argument
[all...]
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_copy_test.java17 package com.android.rs.test;
33 void testFloat2(RenderScript rs, ScriptC_copy_test s) { argument
34 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024);
35 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024);
57 void testFloat3(RenderScript rs, ScriptC_copy_test s) { argument
58 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024);
59 Allocation a2 = Allocation.createSized(rs, Elemen
81 testFloat4(RenderScript rs, ScriptC_copy_test s) argument
[all...]

Completed in 577 milliseconds

1234567891011>>