Home | History | Annotate | Download | only in images

Lines Matching defs:bitmap

76     virtual bool onDecodeRegion(SkBitmap* bitmap, SkIRect rect);
598 SkBitmap *bitmap = new SkBitmap;
599 SkAutoTDelete<SkBitmap> adb(bitmap);
611 bitmap->setConfig(config, cinfo->output_width, height);
612 bitmap->setIsOpaque(true);
619 // Not using a recycled-bitmap and the output rect is same as the
624 (w == bitmap->width()) && (h == bitmap->height()) &&
628 if (!this->allocPixelRef(bitmap, NULL)) {
629 return return_false(*cinfo, *bitmap, "allocPixelRef");
632 if (!bitmap->allocPixels()) {
633 return return_false(*cinfo, *bitmap, "allocPixels");
637 SkAutoLockPixels alp(*bitmap);
638 JSAMPLE* rowptr = (JSAMPLE*)bitmap->getPixels();
639 INT32 const bpr = bitmap->rowBytes();
648 return return_false(*cinfo, *bitmap, "read_scanlines");
651 return return_false(*cinfo, *bitmap, "shouldCancelDecode");
658 bm->swap(*bitmap);
660 cropBitmap(bm, bitmap, actualSampleSize, region.x(), region.y(),
685 bitmap->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight());
686 bitmap->setIsOpaque(true);
695 (w == bitmap->width()) && (h == bitmap->height()) &&
699 if (!this->allocPixelRef(bitmap, NULL)) {
700 return return_false(*cinfo, *bitmap, "allocPixelRef");
703 if (!bitmap->allocPixels()) {
704 return return_false(*cinfo, *bitmap, "allocPixels");
708 SkAutoLockPixels alp(*bitmap);
709 if (!sampler.begin(bitmap, sc, this->getDitherImage())) {
710 return return_false(*cinfo, *bitmap, "sampler.begin");
717 return return_false(*cinfo, *bitmap, "skip rows");
720 // now loop through scanlines until y == bitmap->height() - 1
725 return return_false(*cinfo, *bitmap, "read_scanlines");
728 return return_false(*cinfo, *bitmap, "shouldCancelDecode");
732 if (bitmap->height() - 1 == y) {
739 return return_false(*cinfo, *bitmap, "skip rows");
743 bm->swap(*bitmap);
745 cropBitmap(bm, bitmap, actualSampleSize, region.x(), region.y(),