Home | History | Annotate | Download | only in images

Lines Matching refs:sampler

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());
405 reallyHasAlpha |= sampler.next(srcRow);
407 skip_src_rows(png_ptr, srcRow, sampler.srcDY() - 1);
412 png_uint_32 read = (height - 1) * sampler.srcDY() +
413 sampler.srcY0() + 1;
657 SkScaledBitmapSampler sampler(origWidth, rect.height(), sampleSize);
662 decodedBitmap->setConfig(config, sampler.scaledWidth(),
663 sampler.scaledHeight(), 0);
752 if (!sampler.begin(decodedBitmap, sc, doDither, ctLock.colors())) {
776 base += sampler.srcY0() * rb;
778 reallyHasAlpha |= sampler.next(base);
779 base += sampler.srcDY() * rb;
786 skip_src_rows(png_ptr, srcRow, sampler.srcY0());
795 reallyHasAlpha |= sampler.next(srcRow);
797 skip_src_rows(png_ptr, srcRow, sampler.srcDY() - 1);