Home
last modified time | relevance | path

Searched refs:Sampler (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DUT_sampler.java26 Sampler minification;
27 Sampler magnification;
28 Sampler wrapS;
29 Sampler wrapT;
30 Sampler anisotropy;
37 private Sampler.Builder getDefaultBuilder(RenderScript RS) { in getDefaultBuilder()
38 Sampler.Builder b = new Sampler.Builder(RS); in getDefaultBuilder()
39 b.setMinification(Sampler.Value.NEAREST); in getDefaultBuilder()
40 b.setMagnification(Sampler.Value.NEAREST); in getDefaultBuilder()
41 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder()
[all …]
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
DUT_sampler.java26 Sampler minification;
27 Sampler magnification;
28 Sampler wrapS;
29 Sampler wrapT;
30 Sampler anisotropy;
37 private Sampler.Builder getDefaultBuilder(RenderScript RS) { in getDefaultBuilder()
38 Sampler.Builder b = new Sampler.Builder(RS); in getDefaultBuilder()
39 b.setMinification(Sampler.Value.NEAREST); in getDefaultBuilder()
40 b.setMagnification(Sampler.Value.NEAREST); in getDefaultBuilder()
41 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder()
[all …]
DUT_apitest.java48 Sampler sampler = Sampler.CLAMP_NEAREST(pRS); in run()
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_sampler.java26 Sampler minification;
27 Sampler magnification;
28 Sampler wrapS;
29 Sampler wrapT;
30 Sampler anisotropy;
37 private Sampler.Builder getDefaultBuilder(RenderScript RS) { in getDefaultBuilder()
38 Sampler.Builder b = new Sampler.Builder(RS); in getDefaultBuilder()
39 b.setMinification(Sampler.Value.NEAREST); in getDefaultBuilder()
40 b.setMagnification(Sampler.Value.NEAREST); in getDefaultBuilder()
41 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder()
[all …]
DUT_apitest.java48 Sampler sampler = Sampler.CLAMP_NEAREST(pRS); in run()
/frameworks/rs/
DrsSampler.cpp25 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) { in Sampler() function in Sampler
30 Sampler::Sampler(Context *rsc, in Sampler() function in Sampler
47 Sampler::~Sampler() { in ~Sampler()
51 void Sampler::preDestroy() const { in preDestroy()
60 void Sampler::bindToContext(SamplerState *ss, uint32_t slot) { in bindToContext()
65 void Sampler::unbindFromContext(SamplerState *ss) { in unbindFromContext()
71 void Sampler::serialize(Context *rsc, OStream *stream) const { in serialize()
74 Sampler *Sampler::createFromStream(Context *rsc, IStream *stream) { in createFromStream()
78 ObjectBaseRef<Sampler> Sampler::getSampler(Context *rsc, in getSampler()
85 ObjectBaseRef<Sampler> returnRef; in getSampler()
[all …]
DrsSampler.h37 class Sampler : public ObjectBase {
56 static ObjectBaseRef<Sampler> getSampler(Context *,
68 static Sampler *createFromStream(Context *rsc, IStream *stream);
74 virtual ~Sampler();
77 Sampler(Context *);
78 Sampler(Context *,
90 ObjectBaseRef<Sampler> mSamplers[RS_MAX_SAMPLER_SLOT];
99 Vector<Sampler *> mAllSamplers;
DrsProgram.h47 Sampler **samplers;
71 void bindSampler(Context *, uint32_t slot, Sampler *);
75 ObjectBaseRef<Sampler> *mSamplers;
DrsProgram.cpp43 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount]; in Program()
49 mHal.state.samplers = new Sampler*[mHal.state.texturesCount]; in Program()
200 void Program::bindSampler(Context *rsc, uint32_t slot, Sampler *s) { in bindSampler()
227 p->bindSampler(rsc, slot, static_cast<Sampler *>(s)); in rsi_ProgramBindSampler()
Drs_hal.h95 class Sampler; variable
119 RS_BASE_OBJ(Sampler) rs_sampler;
350 bool (*init)(const Context *rsc, const Sampler *m);
351 void (*destroy)(const Context *rsc, const Sampler *m);
352 void (*updateCachedObject)(const Context *rsc, const Sampler *s, rs_sampler *obj);
/frameworks/rs/cpp/
DSampler.cpp23 Sampler::Sampler(sp<RS> rs, void* id): in Sampler() function in Sampler
33 Sampler::Sampler(sp<RS> rs, void* id, RsSamplerValue min, RsSamplerValue mag, in Sampler() function in Sampler
44 RsSamplerValue Sampler::getMinification() { in getMinification()
48 RsSamplerValue Sampler::getMagnification() { in getMagnification()
52 RsSamplerValue Sampler::getWrapS() { in getWrapS()
56 RsSamplerValue Sampler::getWrapT() { in getWrapT()
60 float Sampler::getAnisotropy() { in getAnisotropy()
64 sp<Sampler> Sampler::create(sp<RS> rs, RsSamplerValue min, RsSamplerValue mag, in create()
69 return new Sampler(rs, id, min, mag, wrapS, wrapT, anisotropy); in create()
72 #define CREATE_SAMPLER(N, MIN, MAG, WRAPS, WRAPT) sp<const Sampler> Sampler::N(sp<RS> rs) { \
DrsCppStructs.h50 class Sampler; variable
521 sp<const Sampler> CLAMP_NEAREST;
522 sp<const Sampler> CLAMP_LINEAR;
523 sp<const Sampler> CLAMP_LINEAR_MIP_LINEAR;
524 sp<const Sampler> WRAP_NEAREST;
525 sp<const Sampler> WRAP_LINEAR;
526 sp<const Sampler> WRAP_LINEAR_MIP_LINEAR;
527 sp<const Sampler> MIRRORED_REPEAT_NEAREST;
528 sp<const Sampler> MIRRORED_REPEAT_LINEAR;
529 sp<const Sampler> MIRRORED_REPEAT_LINEAR_MIP_LINEAR;
[all …]
/frameworks/base/rs/java/android/renderscript/
DSampler.java29 public class Sampler extends BaseObj { class
52 Sampler(long id, RenderScript rs) { in Sampler() method in Sampler
100 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST()
124 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR()
148 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) { in CLAMP_LINEAR_MIP_LINEAR()
172 public static Sampler WRAP_NEAREST(RenderScript rs) { in WRAP_NEAREST()
196 public static Sampler WRAP_LINEAR(RenderScript rs) { in WRAP_LINEAR()
220 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) { in WRAP_LINEAR_MIP_LINEAR()
244 public static Sampler MIRRORED_REPEAT_NEAREST(RenderScript rs) { in MIRRORED_REPEAT_NEAREST()
268 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) { in MIRRORED_REPEAT_LINEAR()
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DSampler.java42 public class Sampler extends BaseObj { class
65 Sampler(long id, RenderScript rs) { in Sampler() method in Sampler
112 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST()
132 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR()
152 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) { in CLAMP_LINEAR_MIP_LINEAR()
172 public static Sampler WRAP_NEAREST(RenderScript rs) { in WRAP_NEAREST()
192 public static Sampler WRAP_LINEAR(RenderScript rs) { in WRAP_LINEAR()
212 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) { in WRAP_LINEAR_MIP_LINEAR()
232 public static Sampler MIRRORED_REPEAT_NEAREST(RenderScript rs) { in MIRRORED_REPEAT_NEAREST()
252 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) { in MIRRORED_REPEAT_LINEAR()
[all …]
/frameworks/rs/api/
Drs_object_info.spec21 or Sampler object. These objects are created from Java. You can't create them from a
314 summary: Anisotropy of the Sampler
316 Get the Sampler's anisotropy.
318 …See <a href='http://developer.android.com/reference/android/renderscript/Sampler.html'>android.ren…
338 summary: Sampler minification value
340 Get the Sampler's minification value.
342 …See <a href='http://developer.android.com/reference/android/renderscript/Sampler.html'>android.ren…
362 summary: Sampler wrap T value
366 …See <a href='http://developer.android.com/reference/android/renderscript/Sampler.html'>android.ren…
Drs_object_types.spec71 summary: Handle to a Sampler
75 …eveloper.android.com/reference/android/renderscript/Sampler.html">android.renderscript.Sampler</a>.
211 summary: Sampler wrap T value
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
DSampleRSActivity.java30 import android.renderscript.Sampler;
45 private Sampler mSampler;
47 TextureViewUpdater(Allocation outAlloc, Sampler sampler) { in TextureViewUpdater()
119 TextureViewUpdater updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_LINEAR(mRS)); in onCreate()
125 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_LINEAR(mRS)); in onCreate()
131 updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_NEAREST(mRS)); in onCreate()
137 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_NEAREST(mRS)); in onCreate()
155 private synchronized void filterAlloc(Allocation alloc, Sampler sampler) { in filterAlloc()
/frameworks/rs/driver/
DrsdSampler.h24 const android::renderscript::Sampler *);
27 const android::renderscript::Sampler *);
30 const android::renderscript::Sampler *,
DrsdSampler.cpp36 bool rsdSamplerInit(const Context *, const Sampler *s) { in rsdSamplerInit()
41 const android::renderscript::Sampler *s) { in rsdSamplerDestroy()
45 const Sampler *alloc, in rsdSamplerUpdateCachedObject()
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
DFisheye.java21 import android.renderscript.Sampler;
103 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
107 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
112 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
116 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
DFisheye.java21 import android.renderscript.Sampler;
108 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
112 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
117 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
121 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
DFisheye.java105 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
109 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
114 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
118 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
/frameworks/rs/scriptc/
Drs_object_info.rsh23 * or Sampler object. These objects are created from Java. You can't create them from a
384 * rsSamplerGetAnisotropy: Anisotropy of the Sampler
386 * Get the Sampler's anisotropy.
396 * rsSamplerGetMagnification: Sampler magnification value
398 * Get the Sampler's magnification value.
408 * rsSamplerGetMinification: Sampler minification value
410 * Get the Sampler's minification value.
420 * rsSamplerGetWrapS: Sampler wrap S value
422 * Get the Sampler's wrap S value.
432 * rsSamplerGetWrapT: Sampler wrap T value
/frameworks/rs/tests/cppbasic-shared/
Dcompute.cpp46 sp<const Sampler> samp = Sampler::CLAMP_NEAREST(rs); in test_compute()
/frameworks/rs/tests/cppbasic/
Dcompute.cpp46 sp<const Sampler> samp = Sampler::CLAMP_NEAREST(rs); in test_compute()

123