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

1 2 3

  /external/skia/legacy/src/images/
SkImageDecoder_libbmp.cpp 112 SkScaledBitmapSampler sampler(width, height, getSampleSize());
115 bm->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight());
125 bm->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight());
134 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, getDitherImage())) {
139 const int dstHeight = sampler.scaledHeight();
142 srcRow += sampler.srcY0() * srcRowBytes;
144 sampler.next(srcRow);
145 srcRow += sampler.srcDY() * srcRowBytes
    [all...]
SkImageDecoder_libpng.cpp 284 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize);
290 if (reuseBitmap && (sampler.scaledWidth() != decodedBitmap->width() ||
291 sampler.scaledHeight() != decodedBitmap->height())) {
297 decodedBitmap->setConfig(config, sampler.scaledWidth(),
298 sampler.scaledHeight(), 0);
372 if (!sampler.begin(decodedBitmap, sc, doDither, ctLock.colors())) {
391 base += sampler.srcY0() * rb;
393 reallyHasAlpha |= sampler.next(base);
394 base += sampler.srcDY() * rb;
399 skip_src_rows(png_ptr, srcRow, sampler.srcY0())
    [all...]
SkImageDecoder_libjpeg.cpp 386 SkScaledBitmapSampler sampler(cinfo.output_width, cinfo.output_height,
393 if (reuseBitmap && (sampler.scaledWidth() != bm->width() ||
394 sampler.scaledHeight() != bm->height())) {
400 bm->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight());
415 if (!sampler.begin(bm, sc, this->getDitherImage())) {
416 return return_false(cinfo, *bm, "sampler.begin");
421 // Possibly skip initial rows [sampler.srcY0]
422 if (!skip_src_rows(&cinfo, srcRow, sampler.srcY0())) {
437 sampler.next(srcRow)
    [all...]
  /external/skia/src/images/
SkImageDecoder_libbmp.cpp 116 SkScaledBitmapSampler sampler(width, height, getSampleSize());
119 bm->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight());
129 bm->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight());
138 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, getDitherImage())) {
143 const int dstHeight = sampler.scaledHeight();
146 srcRow += sampler.srcY0() * srcRowBytes;
148 sampler.next(srcRow);
149 srcRow += sampler.srcDY() * srcRowBytes
    [all...]
SkImageDecoder_libpng.cpp 285 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize);
291 if (reuseBitmap && (sampler.scaledWidth() != decodedBitmap->width() ||
292 sampler.scaledHeight() != decodedBitmap->height())) {
298 decodedBitmap->setConfig(config, sampler.scaledWidth(),
299 sampler.scaledHeight(), 0);
373 if (!sampler.begin(decodedBitmap, sc, doDither, ctLock.colors())) {
392 base += sampler.srcY0() * rb;
394 reallyHasAlpha |= sampler.next(base);
395 base += sampler.srcDY() * rb;
400 skip_src_rows(png_ptr, srcRow, sampler.srcY0())
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/gpu/
TexShader.h 41 void use(const AffineTransform& transform, const AffineTransform& texTransform, int sampler, float alpha);
TexShader.cpp 48 m_samplerLocation = context->getUniformLocation(program, "sampler");
61 void TexShader::use(const AffineTransform& transform, const AffineTransform& texTransform, int sampler, float alpha)
72 m_context->uniform1i(m_samplerLocation, sampler);
  /frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
SamplerThunker.java 33 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.Value.MIRRORED_REPEAT
140 SamplerThunker sampler = new SamplerThunker(0, mRS); local
    [all...]
Sampler.java 31 * 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 {
65 Sampler(int id, RenderScript rs) {
70 * @return minification setting for the sampler
77 * @return magnification setting for the sampler
84 * @return S wrapping mode for the sampler
91 * @return T wrapping mode for the sampler
98 * @return anisotropy setting for the sampler
344 Sampler sampler = new Sampler(id, mRS); local
    [all...]
  /frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
sample.rs 25 void setSampleData(rs_allocation dest, rs_allocation source, rs_sampler sampler) {
28 allocSampler = sampler;
  /libcore/dalvik/src/main/java/dalvik/system/profiler/
SamplingProfiler.java 76 * A sampler is created every time profiling starts and cleared
80 private Sampler sampler; field in class:SamplingProfiler
280 if (sampler != null) {
283 sampler = new Sampler();
285 timer.scheduleAtFixedRate(sampler, 0, interval);
293 if (sampler == null) {
296 synchronized(sampler) {
297 sampler.stop = true
    [all...]
  /frameworks/base/graphics/java/android/renderscript/
Sampler.java 31 * 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 {
63 Sampler(int id, RenderScript rs) {
68 * @return minification setting for the sampler
75 * @return magnification setting for the sampler
82 * @return S wrapping mode for the sampler
89 * @return T wrapping mode for the sampler
96 * @return anisotropy setting for the sampler
352 Sampler sampler = new Sampler(id, mRS); local
    [all...]
  /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...]
platform-freebsd.cc 667 class Sampler::PlatformData : public Malloced {
691 Sampler* sampler = isolate->logger()->sampler(); local
692 if (sampler == NULL || !sampler->IsActive()) return;
715 sampler->SampleStack(sample);
716 sampler->Tick(sample);
733 static void AddActiveSampler(Sampler* sampler) {
    [all...]
platform-linux.cc 1036 Sampler* sampler = isolate->logger()->sampler(); local
1037 if (sampler == NULL || !sampler->IsActive()) return;
1071 sampler->SampleStack(sample);
1072 sampler->Tick(sample);
1076 class Sampler::PlatformData : public Malloced {
1117 static void AddActiveSampler(Sampler* sampler) {
    [all...]
platform-openbsd.cc 744 Sampler* sampler = isolate->logger()->sampler(); local
745 if (sampler == NULL || !sampler->IsActive()) return;
776 sampler->SampleStack(sample);
777 sampler->Tick(sample);
781 class Sampler::PlatformData : public Malloced {
822 static void AddActiveSampler(Sampler* sampler) {
    [all...]
  /frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
fisheye.rsh 18 rs_sampler sampler;
55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
fisheye_approx.rsh 18 rs_sampler sampler;
55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
  /frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
fisheye.rsh 18 rs_sampler sampler;
55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
fisheye_approx.rsh 18 rs_sampler sampler;
55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
  /frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
fisheye.rsh 18 rs_sampler sampler;
55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
fisheye_approx.rsh 18 rs_sampler sampler;
55 const float4 fout = rsSample(in_alloc, sampler, new_coord);
  /external/v8/test/cctest/
test-log.cc 253 class TestSampler : public v8::internal::Sampler {
256 : Sampler(isolate, 0, true, true),
284 TestSampler* sampler = NULL;
287 sampler = new TestSampler(v8::internal::Isolate::Current());
288 sampler->Start();
289 CHECK(sampler->IsActive());
297 CHECK(!sampler->WasSampleStackCalled());
300 CHECK(sampler->WaitForTick());
301 CHECK(sampler->WasSampleStackCalled());
302 sampler->Reset()
    [all...]

Completed in 645 milliseconds

1 2 3