Home | History | Annotate | Download | only in images

Lines Matching refs:sampler

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());
404 reallyHasAlpha |= sampler.next(srcRow);
406 skip_src_rows(png_ptr, srcRow, sampler.srcDY() - 1);
411 png_uint_32 read = (height - 1) * sampler.srcDY() +
412 sampler.srcY0() + 1;
651 SkScaledBitmapSampler sampler(origWidth, rect.height(), sampleSize);
656 decodedBitmap->setConfig(config, sampler.scaledWidth(),
657 sampler.scaledHeight(), 0);
746 if (!sampler.begin(decodedBitmap, sc, doDither, ctLock.colors())) {
770 base += sampler.srcY0() * rb;
772 reallyHasAlpha |= sampler.next(base);
773 base += sampler.srcDY() * rb;
780 skip_src_rows(png_ptr, srcRow, sampler.srcY0());
789 reallyHasAlpha |= sampler.next(srcRow);
791 skip_src_rows(png_ptr, srcRow, sampler.srcDY() - 1);