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

1 2 3

  /external/skia/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/mesa3d/src/pixelflinger2/
texture.h 37 void tex2d_int32(unsigned sample[4], const float tex_coord[4], const unsigned sampler);
texture.cpp 139 static void tex2d(unsigned sample[4], const float tex_coord[4], const unsigned sampler)
141 const unsigned * data = (const unsigned *)textureGGLContext->textureState.textureData[sampler];
142 const unsigned width = textureGGLContext->textureState.textureDimensions[sampler * 2];
143 const unsigned height = textureGGLContext->textureState.textureDimensions[sampler * 2 + 1];
193 void texcube(unsigned sample[4], const float tex_coord[4], const unsigned sampler)
250 const unsigned * data = (const unsigned *)textureGGLContext->textureState.textureData[sampler];
251 const unsigned width = textureGGLContext->textureState.textureDimensions[sampler * 2];
252 const unsigned height = textureGGLContext->textureState.textureDimensions[sampler * 2 + 1];
389 static void SetSampler(GGLInterface * iface, const unsigned sampler, GGLTexture * texture)
391 assert(GGL_MAXCOMBINEDTEXTUREIMAGEUNITS > sampler);
    [all...]
llvm_texture.cpp 274 Value * tex2D(IRBuilder<> & builder, Value * in1, const unsigned sampler,
290 sampler * 2);
293 sampler * 2 + 1);
304 Value * x = texcoordWrap(builder, gglCtx->textureState.textures[sampler].wrapS,
306 Value * y = texcoordWrap(builder, gglCtx->textureState.textures[sampler].wrapT,
318 textureData = builder.CreateConstInBoundsGEP1_32(textureData, sampler);
321 if (0 == gglCtx->textureState.textures[sampler].minFilter &&
322 0 == gglCtx->textureState.textures[sampler].magFilter) { // GL_NEAREST
324 gglCtx->textureState.textures[sampler].format/*, dstDesc*/);
326 } else if (1 == gglCtx->textureState.textures[sampler].minFilter &
    [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/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/
sample.rs 25 void setSampleData(rs_allocation dest, rs_allocation source, rs_sampler sampler) {
28 allocSampler = sampler;
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...]
  /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 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...]
  /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 1041 Sampler* sampler = isolate->logger()->sampler(); local
1042 if (sampler == NULL || !sampler->IsActive()) return;
1076 sampler->SampleStack(sample);
1077 sampler->Tick(sample);
1081 class Sampler::PlatformData : public Malloced {
1122 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...]
  /external/mesa3d/src/glsl/
opt_function_inlining.cpp 40 ir_variable *sampler,
147 /* For samplers, we want the inlined sampler references
148 * referencing the passed in sampler variable, since that
150 * a sampler wouldn't. Fix it up below.
191 /* If any samplers were passed in, replace any deref of the sampler
192 * with a deref of the sampler argument.
323 * Replaces references to the "sampler" variable with a clone of "deref."
328 * also appear in the sampler field of an ir_tex instruction.
333 ir_sampler_replacement_visitor(ir_variable *sampler, ir_dereference *deref)
335 this->sampler = sampler
351 ir_variable *sampler; member in class:ir_sampler_replacement_visitor
    [all...]
  /external/skia/include/gpu/
SkGpuDevice.h 125 const GrSamplerState* sampler,
128 const GrSamplerState& sampler) const;
136 const GrSamplerState* sampler,
169 // doesn't set the texture/sampler/matrix state
204 const GrSamplerState& sampler,
  /external/skia/src/gpu/
SkGr.cpp 61 const GrSamplerState* sampler,
85 if (ctx->supportsIndex8PixelConfig(sampler,
97 return ctx->createAndLockTexture(key, sampler, desc, storage.get(),
117 return ctx->createAndLockTexture(key, sampler, desc,
SkGpuDevice.cpp 62 const GrSamplerState* sampler,
65 *texture = this->set(device, bitmap, sampler);
73 const GrSamplerState* sampler) {
84 fTex = device->lockCachedTexture(bitmap, sampler);
522 GrSamplerState* sampler = grPaint->textureSampler(kShaderTextureIdx); local
523 sampler->setSampleMode(sampleMode);
525 sampler->setFilter(GrSamplerState::kBilinear_Filter);
527 sampler->setFilter(GrSamplerState::kNearest_Filter);
529 sampler->setWrapX(sk_tile_mode_to_grwrap(tileModes[0]));
530 sampler->setWrapY(sk_tile_mode_to_grwrap(tileModes[1]))
1351 GrSamplerState* sampler = grPaint.textureSampler(kBitmapTextureIdx); local
1438 GrSamplerState* sampler = grPaint->textureSampler(kBitmapTextureIdx); local
1508 GrSamplerState* sampler = grPaint.textureSampler(kBitmapTextureIdx); local
    [all...]
  /external/skia/src/gpu/gl/
GrGpuGLShaders.cpp 368 *fHWDrawState.sampler(stage)->matrix() = matrix;
527 const GrSamplerState& sampler = this->getDrawState().getSampler(s); local
529 (fProgramData->fRadial2CenterX1[s] != sampler.getRadial2CenterX1() ||
530 fProgramData->fRadial2Radius0[s] != sampler.getRadial2Radius0() ||
531 fProgramData->fRadial2PosRoot[s] != sampler.isRadial2PosRoot())) {
533 GrScalar centerX1 = sampler.getRadial2CenterX1();
534 GrScalar radius0 = sampler.getRadial2Radius0();
549 sampler.isRadial2PosRoot() ? 1.f : -1.f
552 fProgramData->fRadial2CenterX1[s] = sampler.getRadial2CenterX1();
553 fProgramData->fRadial2Radius0[s] = sampler.getRadial2Radius0()
559 const GrSamplerState& sampler = this->getDrawState().getSampler(s); local
    [all...]
  /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...]
  /external/webkit/Source/JavaScriptCore/runtime/
Executable.h 158 if (SamplingTool* sampler = globalData->interpreter->sampler())
159 sampler->notifyOfScope(this);
172 if (SamplingTool* sampler = exec->globalData().interpreter->sampler())
173 sampler->notifyOfScope(this);

Completed in 624 milliseconds

1 2 3