Searched refs:Sampler (Results 1 - 25 of 50) sorted by relevance

12

/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_sampler.java26 Sampler minification;
27 Sampler magnification;
28 Sampler wrapS;
29 Sampler wrapT;
30 Sampler anisotropy;
33 super(rstc, "Sampler", ctx);
37 private Sampler.Builder getDefaultBuilder(RenderScript RS) {
38 Sampler.Builder b = new Sampler.Builder(RS);
39 b.setMinification(Sampler
[all...]
H A DUT_apitest.java48 Sampler sampler = Sampler.CLAMP_NEAREST(pRS);
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_sampler.java26 Sampler minification;
27 Sampler magnification;
28 Sampler wrapS;
29 Sampler wrapT;
30 Sampler anisotropy;
33 super(rstc, "Sampler", ctx);
37 private Sampler.Builder getDefaultBuilder(RenderScript RS) {
38 Sampler.Builder b = new Sampler.Builder(RS);
39 b.setMinification(Sampler
[all...]
/frameworks/rs/driver/
H A DrsdSampler.h24 const android::renderscript::Sampler *);
27 const android::renderscript::Sampler *);
30 const android::renderscript::Sampler *,
H A DrsdSampler.cpp36 bool rsdSamplerInit(const Context *, const Sampler *s) {
41 const android::renderscript::Sampler *s) {
45 const Sampler *alloc,
/frameworks/rs/
H A DrsSampler.cpp25 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) { function in class:Sampler
30 Sampler::Sampler(Context *rsc, function in class:Sampler
47 Sampler::~Sampler() {
51 void Sampler::preDestroy() const {
60 void Sampler::bindToContext(SamplerState *ss, uint32_t slot) {
65 void Sampler::unbindFromContext(SamplerState *ss) {
71 void Sampler
[all...]
H A DrsSampler.h37 class Sampler : public ObjectBase { class in namespace:android::renderscript
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;
H A DrsProgram.h47 Sampler **samplers;
71 void bindSampler(Context *, uint32_t slot, Sampler *);
75 ObjectBaseRef<Sampler> *mSamplers;
H A DrsProgram.cpp43 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount];
49 mHal.state.samplers = new Sampler*[mHal.state.texturesCount];
200 void Program::bindSampler(Context *rsc, uint32_t slot, Sampler *s) {
227 p->bindSampler(rsc, slot, static_cast<Sampler *>(s));
/frameworks/rs/cpp/
H A DSampler.cpp22 Sampler::Sampler(sp<RS> rs, void* id): function in class:Sampler
32 RsSamplerValue Sampler::getMinification() {
36 RsSamplerValue Sampler::getMagnification() {
40 RsSamplerValue Sampler::getWrapS() {
44 RsSamplerValue Sampler::getWrapT() {
48 float Sampler::getAnisotropy() {
52 sp<Sampler> Sampler::create(sp<RS> rs, RsSamplerValue min, RsSamplerValue mag, RsSamplerValue wrapS, RsSamplerValue wrapT, float anisotropy) {
55 return new Sampler(r
[all...]
H A DrsCppStructs.h47 class Sampler;
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_LINEA
1882 class Sampler : public BaseObj { class in namespace:android::RSC
[all...]
H A DAndroid.mk10 Sampler.cpp
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DSamplerThunker.java33 class SamplerThunker extends Sampler {
34 android.renderscript.Sampler mN;
44 static android.renderscript.Sampler.Value convertValue (Value v) {
47 return android.renderscript.Sampler.Value.NEAREST;
49 return android.renderscript.Sampler.Value.LINEAR;
51 return android.renderscript.Sampler.Value.LINEAR_MIP_LINEAR;
53 return android.renderscript.Sampler.Value.LINEAR_MIP_NEAREST;
55 return android.renderscript.Sampler.Value.WRAP;
57 return android.renderscript.Sampler.Value.CLAMP;
59 return android.renderscript.Sampler
[all...]
H A DSampler.java31 * Sampler object that defines how Allocations can be read as textures within a
35 * Any Allocation used with a Sampler must have been created with {@link
37 * Sampler on an {@link android.support.v8.renderscript.Allocation} that was not
42 public class Sampler extends BaseObj { class in inherits:BaseObj
65 Sampler(int id, RenderScript rs) { method in class:Sampler
110 * @return Sampler
112 public static Sampler CLAMP_NEAREST(RenderScript rs) {
130 * @return Sampler
132 public static Sampler CLAMP_LINEAR(RenderScript rs) {
150 * @return Sampler
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DSampler.java20 * Sampler object that defines how Allocations can be read as textures within a
24 * Any Allocation used with a Sampler must have been created with {@link
25 * android.renderscript.Allocation#USAGE_GRAPHICS_TEXTURE}; using a Sampler on
29 public class Sampler extends BaseObj { class in inherits:BaseObj
52 Sampler(long id, RenderScript rs) { method in class:Sampler
97 * @return Sampler
99 public static Sampler CLAMP_NEAREST(RenderScript rs) {
117 * @return Sampler
119 public static Sampler CLAMP_LINEAR(RenderScript rs) {
137 * @return Sampler
[all...]
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A DFisheye.java21 import android.renderscript.Sampler;
103 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
107 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
112 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
116 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DFisheye.java21 import android.renderscript.Sampler;
108 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
112 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
117 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
121 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DFisheye.java100 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
104 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
109 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
113 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/
H A 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);
363 bs.setMinification(Sampler
[all...]
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java30 import android.renderscript.Sampler;
45 private Sampler mSampler;
47 TextureViewUpdater(Allocation outAlloc, Sampler sampler) {
119 TextureViewUpdater updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_LINEAR(mRS));
125 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_LINEAR(mRS));
131 updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_NEAREST(mRS));
137 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_NEAREST(mRS));
155 private synchronized void filterAlloc(Allocation alloc, Sampler sampler) {
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
H A DFBOSyncRS.java48 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);
H A DFBOTestRS.java48 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/
H A DSceneGraphRS.java53 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);
H A DSimpleModelRS.java45 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/
H A DShadersTestRS.java35 import android.renderscript.Sampler;
55 private Sampler mLinearClamp;
56 private Sampler mNearestClamp;
97 mLinearClamp = Sampler.CLAMP_LINEAR(mRS);
100 mNearestClamp = Sampler.CLAMP_NEAREST(mRS);

Completed in 632 milliseconds

12