HomeSort by relevance Sort by last modified time
    Searched refs:Sampler (Results 1 - 25 of 71) sorted by null

1 2 3

  /cts/tests/tests/renderscript/src/android/renderscript/cts/
SamplerTest.java 19 import android.renderscript.Sampler;
20 import android.renderscript.Sampler.Value;
24 Sampler.Value[] mMinValues;
25 Sampler.Value[] mMagValues;
26 Sampler.Value[] mWrapValues;
32 mMinValues = new Sampler.Value[4];
33 mMinValues[0] = Sampler.Value.NEAREST;
34 mMinValues[1] = Sampler.Value.LINEAR;
35 mMinValues[2] = Sampler.Value.LINEAR_MIP_LINEAR;
36 mMinValues[3] = Sampler.Value.LINEAR_MIP_NEAREST
    [all...]
SampleTest.java 26 import android.renderscript.Sampler;
57 mScript.set_gNearest(Sampler.CLAMP_NEAREST(mRS));
58 mScript.set_gLinear(Sampler.CLAMP_LINEAR(mRS));
60 Sampler.Builder sb = new Sampler.Builder(mRS);
61 sb.setMinification(Sampler.Value.LINEAR_MIP_NEAREST);
64 mScript.set_gMipLinear(Sampler.CLAMP_LINEAR_MIP_LINEAR(mRS));
ProgramFragmentFixedFunctionTest.java 23 import android.renderscript.Sampler;
72 pf.bindSampler(Sampler.CLAMP_NEAREST(mRS), t);
  /frameworks/rs/driver/
rsdSampler.h 24 const android::renderscript::Sampler *);
27 const android::renderscript::Sampler *);
rsdSampler.cpp 34 const android::renderscript::Sampler *) {
39 const android::renderscript::Sampler *s) {
  /frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
UT_sampler.java 22 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;
35 super(rstc, "Sampler", ctx);
39 private Sampler.Builder getDefaultBuilder(RenderScript RS) {
40 Sampler.Builder b = new Sampler.Builder(RS)
    [all...]
  /frameworks/rs/
rsSampler.h 37 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;
rsSampler.cpp 25 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) {
30 Sampler::Sampler(Context *rsc,
44 mRSC->mHal.funcs.sampler.init(mRSC, this);
47 Sampler::~Sampler() {
48 mRSC->mHal.funcs.sampler.destroy(mRSC, this);
51 void Sampler::preDestroy() const {
60 void Sampler::bindToContext(SamplerState *ss, uint32_t slot)
    [all...]
rsProgram.h 38 // Texture lookups go though a sampler which in effect converts normalized
47 Sampler **samplers;
71 void bindSampler(Context *, uint32_t slot, Sampler *);
75 ObjectBaseRef<Sampler> *mSamplers;
rsProgram.cpp 41 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount];
47 mHal.state.samplers = new Sampler*[mHal.state.texturesCount];
187 void Program::bindSampler(Context *rsc, uint32_t slot, Sampler *s) {
189 ALOGE("Attempt to bind sampler to slot %u but tex count is %u", slot, mHal.state.texturesCount);
190 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind sampler");
214 p->bindSampler(rsc, slot, static_cast<Sampler *>(s));
  /frameworks/base/graphics/java/android/renderscript/
Sampler.java 31 * Sampler object which defines how data is extracted from textures. Samplers
35 public class Sampler extends BaseObj {
57 Sampler(int id, RenderScript rs) {
62 * @return minification setting for the sampler
69 * @return magnification setting for the sampler
76 * @return S wrapping mode for the sampler
83 * @return T wrapping mode for the sampler
90 * @return anisotropy setting for the sampler
97 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
100 * @param rs Context to which the sampler will belong
288 Sampler sampler = new Sampler(id, mRS); local
    [all...]
  /frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/
RsRenderStatesRS.java 28 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);
363 bs.setMinification(Sampler.Value.LINEAR)
    [all...]
  /frameworks/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/
SampleRSActivity.java 30 import android.renderscript.Sampler;
44 private Sampler mSampler;
46 TextureViewUpdater(Allocation outAlloc, Sampler sampler) {
48 mSampler = sampler;
115 TextureViewUpdater updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_LINEAR(mRS));
121 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_LINEAR(mRS));
127 updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_NEAREST(mRS));
133 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_NEAREST(mRS));
151 private synchronized void filterAlloc(Allocation alloc, Sampler sampler)
    [all...]
  /frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
FBOSyncRS.java 48 private Sampler mSampler;
91 Sampler.Builder bs = new Sampler.Builder(mRS);
92 bs.setMinification(Sampler.Value.LINEAR);
93 bs.setMagnification(Sampler.Value.LINEAR);
94 bs.setWrapS(Sampler.Value.CLAMP);
95 bs.setWrapT(Sampler.Value.CLAMP);
FBOTestRS.java 48 private Sampler mSampler;
90 Sampler.Builder bs = new Sampler.Builder(mRS);
91 bs.setMinification(Sampler.Value.LINEAR);
92 bs.setMagnification(Sampler.Value.LINEAR);
93 bs.setWrapS(Sampler.Value.CLAMP);
94 bs.setWrapT(Sampler.Value.CLAMP);
  /frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
SceneGraphRS.java 53 private Sampler mSampler;
105 Sampler.Builder bs = new Sampler.Builder(mRS);
106 bs.setMinification(Sampler.Value.LINEAR);
107 bs.setMagnification(Sampler.Value.LINEAR);
108 bs.setWrapS(Sampler.Value.CLAMP);
109 bs.setWrapT(Sampler.Value.CLAMP);
SimpleModelRS.java 45 private Sampler mSampler;
89 Sampler.Builder bs = new Sampler.Builder(mRS);
90 bs.setMinification(Sampler.Value.LINEAR);
91 bs.setMagnification(Sampler.Value.LINEAR);
92 bs.setWrapS(Sampler.Value.CLAMP);
93 bs.setWrapT(Sampler.Value.CLAMP);
  /frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
ShadersTestRS.java 35 import android.renderscript.Sampler;
55 private Sampler mLinearClamp;
56 private Sampler mNearestClamp;
97 mLinearClamp = Sampler.CLAMP_LINEAR(mRS);
100 mNearestClamp = Sampler.CLAMP_NEAREST(mRS);
  /packages/wallpapers/Basic/src/com/android/wallpaper/nexus/
NexusRS.java 22 import static android.renderscript.Sampler.Value.LINEAR;
23 import static android.renderscript.Sampler.Value.CLAMP;
24 import static android.renderscript.Sampler.Value.WRAP;
116 // sampler and program fragment for pulses
121 pft.bindSampler(Sampler.WRAP_LINEAR(mRS), 0);
124 // sampler and program fragment for background image
129 pft565.bindSampler(Sampler.CLAMP_NEAREST(mRS), 0);
  /packages/wallpapers/MusicVisualization/src/com/android/musicvis/
GenericWaveRS.java 20 import static android.renderscript.Sampler.Value.LINEAR;
21 import static android.renderscript.Sampler.Value.WRAP;
69 private Sampler mSampler;
160 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS);
  /packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/
Visualization4RS.java 20 import static android.renderscript.Sampler.Value.LINEAR;
21 import static android.renderscript.Sampler.Value.WRAP;
61 private Sampler mSampler;
124 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS);
  /external/v8/src/
platform-cygwin.cc 600 // On Cygwin we use the same sampler implementation as on win32.
602 class Sampler::PlatformData : public Malloced {
606 // going to use it in the sampler thread. Using GetThreadHandle() will
637 static void AddActiveSampler(Sampler* sampler) {
639 SamplerRegistry::AddActiveSampler(sampler);
641 instance_ = new SamplerThread(sampler->interval());
644 ASSERT(instance_->interval_ == sampler->interval());
648 static void RemoveActiveSampler(Sampler* sampler) {
    [all...]
platform-macos.cc 729 class Sampler::PlatformData : public Malloced {
756 static void AddActiveSampler(Sampler* sampler) {
758 SamplerRegistry::AddActiveSampler(sampler);
760 instance_ = new SamplerThread(sampler->interval());
763 ASSERT(instance_->interval_ == sampler->interval());
767 static void RemoveActiveSampler(Sampler* sampler) {
769 SamplerRegistry::RemoveActiveSampler(sampler);
804 static void DoCpuProfile(Sampler* sampler, void* raw_sampler_thread)
    [all...]
platform-solaris.cc 683 Sampler* sampler = isolate->logger()->sampler(); local
684 if (sampler == NULL || !sampler->IsActive()) return;
699 sampler->SampleStack(sample);
700 sampler->Tick(sample);
703 class Sampler::PlatformData : public Malloced {
743 static void AddActiveSampler(Sampler* sampler) {
    [all...]
log.h 139 class Sampler;
157 Sampler* sampler();
371 // Returns whether profiler's sampler is active.
374 // The sampler used by the profiler and the sliding state window.
440 typedef void (*VisitSampler)(Sampler*, void*);
448 // Adds/Removes an active sampler.
449 static void AddActiveSampler(Sampler* sampler);
450 static void RemoveActiveSampler(Sampler* sampler)
    [all...]

Completed in 2601 milliseconds

1 2 3