Home
last modified time | relevance | path

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

123

/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/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/
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.h45 class Sampler; variable
69 RS_BASE_OBJ(Sampler) rs_sampler;
291 bool (*init)(const Context *rsc, const Sampler *m);
292 void (*destroy)(const Context *rsc, const Sampler *m);
293 void (*updateCachedObject)(const Context *rsc, const Sampler *s, rs_sampler *obj);
/frameworks/rs/cpp/
DSampler.cpp22 Sampler::Sampler(sp<RS> rs, void* id): in Sampler() function in Sampler
32 RsSamplerValue Sampler::getMinification() { in getMinification()
36 RsSamplerValue Sampler::getMagnification() { in getMagnification()
40 RsSamplerValue Sampler::getWrapS() { in getWrapS()
44 RsSamplerValue Sampler::getWrapT() { in getWrapT()
48 float Sampler::getAnisotropy() { in getAnisotropy()
52 sp<Sampler> Sampler::create(sp<RS> rs, RsSamplerValue min, RsSamplerValue mag, RsSamplerValue wrapS… in create()
55 return new Sampler(rs, id); in create()
58 #define CREATE_SAMPLER(N, MIN, MAG, WRAPS, WRAPT) sp<const Sampler> Sampler::N(sp<RS> rs) { \
DrsCppStructs.h47 class Sampler; variable
242 sp<const Sampler> CLAMP_NEAREST;
243 sp<const Sampler> CLAMP_LINEAR;
244 sp<const Sampler> CLAMP_LINEAR_MIP_LINEAR;
245 sp<const Sampler> WRAP_NEAREST;
246 sp<const Sampler> WRAP_LINEAR;
247 sp<const Sampler> WRAP_LINEAR_MIP_LINEAR;
248 sp<const Sampler> MIRRORED_REPEAT_NEAREST;
249 sp<const Sampler> MIRRORED_REPEAT_LINEAR;
250 sp<const Sampler> MIRRORED_REPEAT_LINEAR_MIP_LINEAR;
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DSamplerThunker.java33 class SamplerThunker extends Sampler {
34 android.renderscript.Sampler mN;
44 static android.renderscript.Sampler.Value convertValue (Value v) { in convertValue()
47 return android.renderscript.Sampler.Value.NEAREST; in convertValue()
49 return android.renderscript.Sampler.Value.LINEAR; in convertValue()
51 return android.renderscript.Sampler.Value.LINEAR_MIP_LINEAR; in convertValue()
53 return android.renderscript.Sampler.Value.LINEAR_MIP_NEAREST; in convertValue()
55 return android.renderscript.Sampler.Value.WRAP; in convertValue()
57 return android.renderscript.Sampler.Value.CLAMP; in convertValue()
59 return android.renderscript.Sampler.Value.MIRRORED_REPEAT; in convertValue()
[all …]
DSampler.java42 public class Sampler extends BaseObj { class
65 Sampler(int 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/base/rs/java/android/renderscript/
DSampler.java29 public class Sampler extends BaseObj { class
52 Sampler(long id, RenderScript rs) { in Sampler() method in Sampler
99 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST()
119 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR()
139 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) { in CLAMP_LINEAR_MIP_LINEAR()
159 public static Sampler WRAP_NEAREST(RenderScript rs) { in WRAP_NEAREST()
179 public static Sampler WRAP_LINEAR(RenderScript rs) { in WRAP_LINEAR()
199 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) { in WRAP_LINEAR_MIP_LINEAR()
219 public static Sampler MIRRORED_REPEAT_NEAREST(RenderScript rs) { in MIRRORED_REPEAT_NEAREST()
239 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) { in MIRRORED_REPEAT_LINEAR()
[all …]
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/
DRsRenderStatesRS.java28 import android.renderscript.Sampler.Value;
64 private Sampler mLinearClamp;
65 private Sampler mLinearWrap;
66 private Sampler mMipLinearWrap;
67 private Sampler mNearestClamp;
68 private Sampler mMipLinearAniso8;
69 private Sampler mMipLinearAniso15;
362 Sampler.Builder bs = new Sampler.Builder(mRS); in initSamplers()
363 bs.setMinification(Sampler.Value.LINEAR); in initSamplers()
364 bs.setMagnification(Sampler.Value.LINEAR); in initSamplers()
[all …]
/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/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DSimpleModelRS.java45 private Sampler mSampler;
89 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF()
90 bs.setMinification(Sampler.Value.LINEAR); in initPF()
91 bs.setMagnification(Sampler.Value.LINEAR); in initPF()
92 bs.setWrapS(Sampler.Value.CLAMP); in initPF()
93 bs.setWrapT(Sampler.Value.CLAMP); in initPF()
DSceneGraphRS.java53 private Sampler mSampler;
105 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF()
106 bs.setMinification(Sampler.Value.LINEAR); in initPF()
107 bs.setMagnification(Sampler.Value.LINEAR); in initPF()
108 bs.setWrapS(Sampler.Value.CLAMP); in initPF()
109 bs.setWrapT(Sampler.Value.CLAMP); in initPF()
/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/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
DFBOTestRS.java48 private Sampler mSampler;
90 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF()
91 bs.setMinification(Sampler.Value.LINEAR); in initPF()
92 bs.setMagnification(Sampler.Value.LINEAR); in initPF()
93 bs.setWrapS(Sampler.Value.CLAMP); in initPF()
94 bs.setWrapT(Sampler.Value.CLAMP); in initPF()
DFBOSyncRS.java48 private Sampler mSampler;
91 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF()
92 bs.setMinification(Sampler.Value.LINEAR); in initPF()
93 bs.setMagnification(Sampler.Value.LINEAR); in initPF()
94 bs.setWrapS(Sampler.Value.CLAMP); in initPF()
95 bs.setWrapT(Sampler.Value.CLAMP); in initPF()
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
DFisheye.java100 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
104 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
109 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
113 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
DShadersTestRS.java35 import android.renderscript.Sampler;
55 private Sampler mLinearClamp;
56 private Sampler mNearestClamp;
97 mLinearClamp = Sampler.CLAMP_LINEAR(mRS); in initPF()
100 mNearestClamp = Sampler.CLAMP_NEAREST(mRS); in initPF()

123