Searched refs:Sampler (Results 1 - 25 of 49) 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...]
/frameworks/rs/driver/
H A DrsdSampler.h24 const android::renderscript::Sampler *);
27 const android::renderscript::Sampler *);
H A DrsdSampler.cpp36 bool rsdSamplerInit(const Context *, const Sampler *s) {
41 const android::renderscript::Sampler *s) {
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A 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;
35 super(rstc, "Sampler", ctx);
39 private Sampler.Builder getDefaultBuilder(RenderScript RS) {
40 Sampler
[all...]
/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.cpp41 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount];
47 mHal.state.samplers = new Sampler*[mHal.state.texturesCount];
198 void Program::bindSampler(Context *rsc, uint32_t slot, Sampler *s) {
225 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.h46 class Sampler;
237 sp<const Sampler> CLAMP_NEAREST;
238 sp<const Sampler> CLAMP_LINEAR;
239 sp<const Sampler> CLAMP_LINEAR_MIP_LINEAR;
240 sp<const Sampler> WRAP_NEAREST;
241 sp<const Sampler> WRAP_LINEAR;
242 sp<const Sampler> WRAP_LINEAR_MIP_LINEAR;
243 sp<const Sampler> MIRRORED_REPEAT_NEAREST;
244 sp<const Sampler> MIRRORED_REPEAT_LINEAR;
245 sp<const Sampler> MIRRORED_REPEAT_LINEAR_MIP_LINEA
1869 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/graphics/java/android/renderscript/
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
36 * android.renderscript.Allocation#USAGE_GRAPHICS_TEXTURE}; using a Sampler on
40 public class Sampler extends BaseObj { class in inherits:BaseObj
63 Sampler(int id, RenderScript rs) { method in class:Sampler
108 * @return Sampler
110 public static Sampler CLAMP_NEAREST(RenderScript rs) {
128 * @return Sampler
130 public static Sampler CLAMP_LINEAR(RenderScript rs) {
148 * @return Sampler
[all...]
/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) {
120 TextureViewUpdater updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_LINEAR(mRS));
126 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_LINEAR(mRS));
132 updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_NEAREST(mRS));
138 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_NEAREST(mRS));
156 private synchronized void filterAlloc(Allocation alloc, Sampler sampler) {
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A DFisheye.java21 import android.renderscript.Sampler;
104 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
109 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
115 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
120 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;
104 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
109 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
115 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
120 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
/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/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DFisheye.java101 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
106 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
112 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
117 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
/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);
/frameworks/rs/driver/runtime/
H A Drs_structs.h132 * internal members of the C++ class Sampler owned by librs. Unfortunately,
145 typedef struct Sampler { struct

Completed in 471 milliseconds

12