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

1 2

  /external/skia/src/images/
SkImageDecoder_libbmp.cpp 119 SkScaledBitmapSampler sampler(width, height, getSampleSize());
121 bm->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight());
133 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, getDitherImage())) {
138 const int dstHeight = sampler.scaledHeight();
141 srcRow += sampler.srcY0() * srcRowBytes;
143 sampler.next(srcRow);
144 srcRow += sampler.srcDY() * srcRowBytes;
SkImageDecoder_libpng.cpp 292 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize);
298 if (reuseBitmap && (sampler.scaledWidth() != decodedBitmap->width() ||
299 sampler.scaledHeight() != decodedBitmap->height())) {
305 decodedBitmap->setConfig(config, sampler.scaledWidth(),
306 sampler.scaledHeight(), 0);
380 if (!sampler.begin(decodedBitmap, sc, doDither, ctLock.colors())) {
399 base += sampler.srcY0() * rb;
401 reallyHasAlpha |= sampler.next(base);
402 base += sampler.srcDY() * rb;
407 skip_src_rows(png_ptr, srcRow, sampler.srcY0())
    [all...]
SkImageDecoder_libjpeg.cpp 391 SkScaledBitmapSampler sampler(cinfo.output_width, cinfo.output_height,
398 if (reuseBitmap && (sampler.scaledWidth() != bm->width() ||
399 sampler.scaledHeight() != bm->height())) {
405 bm->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight());
420 if (!sampler.begin(bm, sc, this->getDitherImage())) {
421 return return_false(cinfo, *bm, "sampler.begin");
426 // Possibly skip initial rows [sampler.srcY0]
427 if (!skip_src_rows(&cinfo, srcRow, sampler.srcY0())) {
442 sampler.next(srcRow)
    [all...]
SkImageDecoder_libwebp.cpp 318 SkScaledBitmapSampler sampler(width, height, sampleSize);
320 if (!setDecodeConfig(decodedBitmap, sampler.scaledWidth(),
321 sampler.scaledHeight())) {
353 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize);
355 if (!setDecodeConfig(decodedBitmap, sampler.scaledWidth(),
356 sampler.scaledHeight())) {
  /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);
  /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) {
63 * @return minification setting for the sampler
71 * @return magnification setting for the sampler
79 * @return S wrapping mode for the sampler
87 * @return T wrapping mode for the sampler
95 * @return anisotropy setting for the sampler
102 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
105 * @param rs Context to which the sampler will belong
293 Sampler sampler = new Sampler(id, mRS); local
    [all...]
  /external/v8/src/
platform-cygwin.cc 602 // On Cygwin we use the same sampler implementation as on win32.
604 class Sampler::PlatformData : public Malloced {
608 // 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 652 class Sampler::PlatformData : public Malloced {
676 static void AddActiveSampler(Sampler* sampler) {
678 SamplerRegistry::AddActiveSampler(sampler);
680 instance_ = new SamplerThread(sampler->interval());
683 ASSERT(instance_->interval_ == sampler->interval());
687 static void RemoveActiveSampler(Sampler* sampler) {
689 SamplerRegistry::RemoveActiveSampler(sampler);
725 static void DoCpuProfile(Sampler* sampler, void* raw_sampler_thread)
    [all...]
platform-freebsd.cc 626 class Sampler::PlatformData : public Malloced {
650 Sampler* sampler = isolate->logger()->sampler(); local
651 if (sampler == NULL || !sampler->IsActive()) return;
674 sampler->SampleStack(sample);
675 sampler->Tick(sample);
690 static void AddActiveSampler(Sampler* sampler) {
    [all...]
platform-linux.cc 861 Sampler* sampler = isolate->logger()->sampler(); local
862 if (sampler == NULL || !sampler->IsActive()) return;
896 sampler->SampleStack(sample);
897 sampler->Tick(sample);
902 class Sampler::PlatformData : public Malloced {
941 static void AddActiveSampler(Sampler* sampler) {
    [all...]
platform-win32.cc     [all...]
log.h 138 class Sampler;
156 Sampler* sampler();
350 // Returns whether profiler's sampler is active.
353 // The sampler used by the profiler and the sliding state window.
419 typedef void (*VisitSampler)(Sampler*, void*);
427 // Adds/Removes an active sampler.
428 static void AddActiveSampler(Sampler* sampler);
429 static void RemoveActiveSampler(Sampler* sampler)
    [all...]
cpu-profiler.cc 239 // sampler writes w/o any sync to the queue, so if the processor
522 Sampler* sampler = reinterpret_cast<Sampler*>(isolate->logger()->ticker_); local
523 if (!sampler->IsActive()) {
524 sampler->Start();
527 sampler->IncreaseProfilingDepth();
563 Sampler* sampler = reinterpret_cast<Sampler*>(logger->ticker_) local
    [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/src/gpu/
SkGr.cpp 68 const GrSamplerState& sampler,
90 if (ctx->supportsIndex8PixelConfig(sampler,
100 return ctx->createAndLockTexture(key, sampler, desc, storage.get(),
111 return ctx->createAndLockTexture(key, sampler, desc, bitmap->getPixels(),
SkGpuDevice.cpp 55 const GrSamplerState& sampler,
59 *texture = this->set(device, bitmap, sampler);
68 const GrSamplerState& sampler) {
79 fTex = device->lockCachedTexture(bitmap, sampler, &texture, false);
433 GrSamplerState* sampler = grPaint->getTextureSampler(kShaderTextureIdx); local
434 sampler->setSampleMode(sampleMode);
436 sampler->setFilter(GrSamplerState::kBilinear_Filter);
438 sampler->setFilter(GrSamplerState::kNearest_Filter);
440 sampler->setWrapX(sk_tile_mode_to_grwrap(tileModes[0]));
441 sampler->setWrapY(sk_tile_mode_to_grwrap(tileModes[1]))
    [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);
  /external/skia/include/gpu/
SkGpuDevice.h 129 const GrSamplerState& sampler,
139 const GrSamplerState& sampler,
163 // doesn't set the texture/sampler/matrix state
  /frameworks/base/libs/rs/
rsSampler.cpp 25 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) {
30 Sampler::Sampler(Context *rsc,
44 mRSC->mHal.funcs.sampler.init(mRSC, this);
47 Sampler::~Sampler() {
48 mRSC->mHal.funcs.sampler.destroy(mRSC, this);
51 void Sampler::preDestroy() const {
60 void Sampler::bindToContext(SamplerState *ss, uint32_t slot)
    [all...]
  /external/skia/gpu/src/
GrContext.cpp 142 const GrSamplerState& sampler,
151 bool tiled = (sampler.getWrapX() != GrSamplerState::kClamp_WrapMode) ||
152 (sampler.getWrapY() != GrSamplerState::kClamp_WrapMode);
156 if (GrSamplerState::kNearest_Filter != sampler.getFilter()) {
170 const GrSamplerState& sampler) {
171 finalizeTextureKey(key, sampler, false);
203 const GrSamplerState& sampler,
214 bool special = finalizeTextureKey(key, sampler, false);
255 if (GrSamplerState::kNearest_Filter == sampler.getFilter()) {
283 // stretched textures when the sampler state is either filtered o
1320 GrSamplerState sampler; local
    [all...]

Completed in 561 milliseconds

1 2