/aosp12/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | UT_sampler.java | 21 import android.renderscript.Sampler; 24 Sampler minification; 25 Sampler magnification; 26 Sampler wrapS; 27 Sampler wrapT; 28 Sampler anisotropy; 35 Sampler.Builder b = new Sampler.Builder(RS); in getDefaultBuilder() 38 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder() 39 b.setWrapT(Sampler.Value.CLAMP); in getDefaultBuilder() 54 b.setWrapS(Sampler.Value.WRAP); in initializeGlobals() [all …]
|
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
H A D | UT_sampler.java | 23 import androidx.renderscript.Sampler; 26 Sampler minification; 27 Sampler magnification; 28 Sampler wrapS; 29 Sampler wrapT; 30 Sampler anisotropy; 37 Sampler.Builder b = new Sampler.Builder(RS); in getDefaultBuilder() 40 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder() 41 b.setWrapT(Sampler.Value.CLAMP); in getDefaultBuilder() 56 b.setWrapS(Sampler.Value.WRAP); in initializeGlobals() [all …]
|
H A D | UT_apitest.java | 26 import androidx.renderscript.Sampler; 51 Sampler sampler = Sampler.CLAMP_NEAREST(pRS); in run()
|
/aosp12/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | UT_sampler.java | 26 Sampler minification; 27 Sampler magnification; 28 Sampler wrapS; 29 Sampler wrapT; 30 Sampler anisotropy; 38 Sampler.Builder b = new Sampler.Builder(RS); in getDefaultBuilder() 39 b.setMinification(Sampler.Value.NEAREST); in getDefaultBuilder() 41 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder() 42 b.setWrapT(Sampler.Value.CLAMP); in getDefaultBuilder() 57 b.setWrapS(Sampler.Value.WRAP); in initializeGlobals() [all …]
|
H A D | UT_apitest.java | 48 Sampler sampler = Sampler.CLAMP_NEAREST(pRS); in run()
|
/aosp12/frameworks/rs/ |
H A D | rsSampler.cpp | 24 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) { in Sampler() function in android::renderscript::Sampler 29 Sampler::Sampler(Context *rsc, in Sampler() function in android::renderscript::Sampler 46 Sampler::~Sampler() { in ~Sampler() 50 void Sampler::preDestroy() const { in preDestroy() 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() 107 Sampler *s = new (allocMem) Sampler(rsc, magFilter, minFilter, wrapS, wrapT, wrapR, aniso); in getSampler() 122 void Sampler::operator delete(void* ptr) { in operator delete() 124 Sampler *s = (Sampler*) ptr; in operator delete() [all …]
|
H A D | rsSampler.h | 39 class Sampler : public ObjectBase { 58 static ObjectBaseRef<Sampler> getSampler(Context *, 70 static Sampler *createFromStream(Context *rsc, IStream *stream); 76 virtual ~Sampler(); 79 explicit Sampler(Context *); 80 Sampler(Context *, 92 ObjectBaseRef<Sampler> mSamplers[RS_MAX_SAMPLER_SLOT]; 101 std::vector<Sampler *> mAllSamplers;
|
H A D | rsProgram.h | 47 Sampler **samplers; 71 void bindSampler(Context *, uint32_t slot, Sampler *); 75 ObjectBaseRef<Sampler> *mSamplers;
|
H A D | rsProgram.cpp | 43 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() 224 p->bindSampler(rsc, slot, static_cast<Sampler *>(s)); in rsi_ProgramBindSampler()
|
H A D | rs_hal.h | 95 class Sampler; variable 122 RS_BASE_OBJ(Sampler) rs_sampler; 353 bool (*init)(const Context *rsc, const Sampler *m); 354 void (*destroy)(const Context *rsc, const Sampler *m); 355 void (*updateCachedObject)(const Context *rsc, const Sampler *s, rs_sampler *obj);
|
/aosp12/frameworks/rs/cpp/ |
H A D | Sampler.cpp | 20 using android::RSC::Sampler; 23 Sampler::Sampler(sp<RS> rs, void* id): in Sampler() function in Sampler 33 Sampler::Sampler(sp<RS> rs, void* id, RsSamplerValue min, RsSamplerValue mag, in Sampler() function in Sampler 44 RsSamplerValue Sampler::getMinification() { in getMinification() 48 RsSamplerValue Sampler::getMagnification() { in getMagnification() 52 RsSamplerValue Sampler::getWrapS() { in getWrapS() 56 RsSamplerValue Sampler::getWrapT() { in getWrapT() 60 float Sampler::getAnisotropy() { in getAnisotropy() 64 sp<Sampler> Sampler::create(const sp<RS>& rs, RsSamplerValue min, RsSamplerValue mag, in create() 69 return new Sampler(rs, id, min, mag, wrapS, wrapT, anisotropy); in create() [all …]
|
H A D | rsCppStructs.h | 50 class Sampler; variable 521 sp<const Sampler> CLAMP_NEAREST; 522 sp<const Sampler> CLAMP_LINEAR; 523 sp<const Sampler> CLAMP_LINEAR_MIP_LINEAR; 524 sp<const Sampler> WRAP_NEAREST; 525 sp<const Sampler> WRAP_LINEAR; 526 sp<const Sampler> WRAP_LINEAR_MIP_LINEAR; 528 sp<const Sampler> MIRRORED_REPEAT_LINEAR; 531 friend class Sampler; variable 4226 class Sampler : public BaseObj { [all …]
|
/aosp12/frameworks/base/rs/java/android/renderscript/ |
H A D | Sampler.java | 34 public class Sampler extends BaseObj { class 57 Sampler(long id, RenderScript rs) { in Sampler() method in Sampler 105 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST() 129 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR() 153 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) { in CLAMP_LINEAR_MIP_LINEAR() 177 public static Sampler WRAP_NEAREST(RenderScript rs) { in WRAP_NEAREST() 201 public static Sampler WRAP_LINEAR(RenderScript rs) { in WRAP_LINEAR() 225 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) { in WRAP_LINEAR_MIP_LINEAR() 273 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) { in MIRRORED_REPEAT_LINEAR() 379 public Sampler create() { in create() [all …]
|
/aosp12/frameworks/rs/support/java/src/androidx/renderscript/ |
H A D | Sampler.java | 47 public class Sampler extends BaseObj { class 70 Sampler(long id, RenderScript rs) { in Sampler() method in Sampler 117 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST() 137 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR() 157 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) { in CLAMP_LINEAR_MIP_LINEAR() 177 public static Sampler WRAP_NEAREST(RenderScript rs) { in WRAP_NEAREST() 197 public static Sampler WRAP_LINEAR(RenderScript rs) { in WRAP_LINEAR() 217 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) { in WRAP_LINEAR_MIP_LINEAR() 257 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) { in MIRRORED_REPEAT_LINEAR() 335 public Sampler create() { in create() [all …]
|
/aosp12/frameworks/rs/script_api/ |
H A D | rs_object_info.spec | 21 or Sampler object. These objects are created from Java. You can't create them from a 314 summary: Anisotropy of the Sampler 316 Get the Sampler's anisotropy. 318 …See <a href='http://developer.android.com/reference/android/renderscript/Sampler.html'>android.ren… 338 summary: Sampler minification value 340 Get the Sampler's minification value. 342 …See <a href='http://developer.android.com/reference/android/renderscript/Sampler.html'>android.ren… 362 summary: Sampler wrap T value 366 …See <a href='http://developer.android.com/reference/android/renderscript/Sampler.html'>android.ren…
|
H A D | rs_object_types.spec | 71 summary: Handle to a Sampler 75 …eveloper.android.com/reference/android/renderscript/Sampler.html">android.renderscript.Sampler</a>. 211 summary: Sampler wrap T value
|
/aosp12/frameworks/rs/driver/ |
H A D | rsdSampler.cpp | 33 using android::renderscript::Sampler; 36 bool rsdSamplerInit(const Context *, const Sampler *s) { in rsdSamplerInit() 41 const android::renderscript::Sampler *s) { in rsdSamplerDestroy() 45 const Sampler *alloc, in rsdSamplerUpdateCachedObject()
|
H A D | rsdSampler.h | 24 const android::renderscript::Sampler *); 27 const android::renderscript::Sampler *); 30 const android::renderscript::Sampler *,
|
/aosp12/frameworks/rs/tests/java_api/SampleTest/src/com/android/rs/sample/ |
H A D | SampleRSActivity.java | 30 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()
|
/aosp12/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | Fisheye.java | 21 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()
|
/aosp12/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | Fisheye.java | 21 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()
|
/aosp12/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | Fisheye.java | 105 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest() 109 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest() 114 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest() 118 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS)); in createTest()
|
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/ |
H A D | UT_apitest.java | 24 import android.renderscript.Sampler; 49 Sampler sampler = Sampler.CLAMP_NEAREST(pRS); in run()
|
/aosp12/frameworks/rs/script_api/include/ |
H A D | rs_object_info.rsh | 23 * or Sampler object. These objects are created from Java. You can't create them from a 384 * rsSamplerGetAnisotropy: Anisotropy of the Sampler 386 * Get the Sampler's anisotropy. 396 * rsSamplerGetMagnification: Sampler magnification value 398 * Get the Sampler's magnification value. 408 * rsSamplerGetMinification: Sampler minification value 410 * Get the Sampler's minification value. 420 * rsSamplerGetWrapS: Sampler wrap S value 422 * Get the Sampler's wrap S value. 432 * rsSamplerGetWrapT: Sampler wrap T value
|
/aosp12/frameworks/rs/tests/cpp_api/cppbasic/ |
H A D | compute.cpp | 43 sp<const Sampler> samp = Sampler::CLAMP_NEAREST(rs); in test_compute()
|