Home
last modified time | relevance | path

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

123

/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
DUT_sampler.java22 import android.renderscript.Sampler;
23 import android.renderscript.Sampler.Value;
28 Sampler minification;
29 Sampler magnification;
30 Sampler wrapS;
31 Sampler wrapT;
32 Sampler anisotropy;
39 private Sampler.Builder getDefaultBuilder(RenderScript RS) { in getDefaultBuilder()
40 Sampler.Builder b = new Sampler.Builder(RS); in getDefaultBuilder()
50 Sampler.Builder b = getDefaultBuilder(RS); in initializeGlobals()
[all …]
/frameworks/support/renderscript/v8/rs_support/
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 {
54 static ObjectBaseRef<Sampler> getSampler(Context *,
66 static Sampler *createFromStream(Context *rsc, IStream *stream);
72 virtual ~Sampler();
75 Sampler(Context *);
76 Sampler(Context *,
88 ObjectBaseRef<Sampler> mSamplers[RS_MAX_SAMPLER_SLOT];
97 Vector<Sampler *> mAllSamplers;
/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 {
54 static ObjectBaseRef<Sampler> getSampler(Context *,
66 static Sampler *createFromStream(Context *rsc, IStream *stream);
72 virtual ~Sampler();
75 Sampler(Context *);
76 Sampler(Context *,
88 ObjectBaseRef<Sampler> mSamplers[RS_MAX_SAMPLER_SLOT];
97 Vector<Sampler *> mAllSamplers;
DrsProgram.h47 Sampler **samplers;
71 void bindSampler(Context *, uint32_t slot, Sampler *);
75 ObjectBaseRef<Sampler> *mSamplers;
DrsProgram.cpp41 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount]; in Program()
47 mHal.state.samplers = new Sampler*[mHal.state.texturesCount]; in Program()
187 void Program::bindSampler(Context *rsc, uint32_t slot, Sampler *s) { in bindSampler()
214 p->bindSampler(rsc, slot, static_cast<Sampler *>(s)); in rsi_ProgramBindSampler()
/frameworks/base/graphics/java/android/renderscript/
DSampler.java35 public class Sampler extends BaseObj { class
57 Sampler(int id, RenderScript rs) { in Sampler() method in Sampler
104 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST()
124 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR()
144 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) { in CLAMP_LINEAR_MIP_LINEAR()
164 public static Sampler WRAP_NEAREST(RenderScript rs) { in WRAP_NEAREST()
184 public static Sampler WRAP_LINEAR(RenderScript rs) { in WRAP_LINEAR()
204 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) { in WRAP_LINEAR_MIP_LINEAR()
284 public Sampler create() { in create()
288 Sampler sampler = new Sampler(id, mRS); in create()
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
DSampler.java35 public class Sampler extends BaseObj { class
57 Sampler(int id, RenderScript rs) { in Sampler() method in Sampler
104 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST()
124 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR()
144 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) { in CLAMP_LINEAR_MIP_LINEAR()
164 public static Sampler WRAP_NEAREST(RenderScript rs) { in WRAP_NEAREST()
184 public static Sampler WRAP_LINEAR(RenderScript rs) { in WRAP_LINEAR()
204 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) { in WRAP_LINEAR_MIP_LINEAR()
284 public Sampler create() { in create()
288 Sampler sampler = new Sampler(id, mRS); in create()
DRenderScript.java548 Sampler mSampler_CLAMP_NEAREST;
549 Sampler mSampler_CLAMP_LINEAR;
550 Sampler mSampler_CLAMP_LINEAR_MIP_LINEAR;
551 Sampler mSampler_WRAP_NEAREST;
552 Sampler mSampler_WRAP_LINEAR;
553 Sampler mSampler_WRAP_LINEAR_MIP_LINEAR;
/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/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/
DSampleRSActivity.java30 import android.renderscript.Sampler;
44 private Sampler mSampler;
46 TextureViewUpdater(Allocation outAlloc, Sampler sampler) { in TextureViewUpdater()
115 TextureViewUpdater updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_LINEAR(mRS)); in onCreate()
121 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_LINEAR(mRS)); in onCreate()
127 updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_NEAREST(mRS)); in onCreate()
133 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_NEAREST(mRS)); in onCreate()
151 private synchronized void filterAlloc(Allocation alloc, Sampler sampler) { in filterAlloc()
/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/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/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
DFisheye.java21 import android.renderscript.Sampler;
104 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
109 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
115 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
120 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/
DFisheye.java101 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
106 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
112 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
117 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
/frameworks/rs/driver/
DrsdSampler.h24 const android::renderscript::Sampler *);
27 const android::renderscript::Sampler *);
DrsdSampler.cpp34 const android::renderscript::Sampler *) { in rsdSamplerInit() argument
39 const android::renderscript::Sampler *s) { in rsdSamplerDestroy()
/frameworks/support/renderscript/v8/rs_support/driver/
DrsdSampler.h24 const android::renderscript::Sampler *);
27 const android::renderscript::Sampler *);
DrsdSampler.cpp28 const android::renderscript::Sampler *) { in rsdSamplerInit() argument
33 const android::renderscript::Sampler *s) { in rsdSamplerDestroy()
/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()
/frameworks/ex/carousel/java/com/android/ex/carousel/
DCarouselRS.java382 mSingleTextureFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initFragmentProgram()
399 mSingleTextureBlendingFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initFragmentProgram()
415 mMultiTextureFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initFragmentProgram()
416 mMultiTextureFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 1); in initFragmentProgram()
432 mMultiTextureBlendingFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initFragmentProgram()
433 mMultiTextureBlendingFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 1); in initFragmentProgram()
435 mScript.set_linearClamp(Sampler.CLAMP_LINEAR(mRS)); in initFragmentProgram()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DRsBenchRS.java35 import android.renderscript.Sampler.Value;
231 mProgFragmentTexture.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initProgramFragment()
302 mScript.set_gLinearClamp(Sampler.CLAMP_LINEAR(mRS)); in initRS()

123