Lines Matching defs:bitmap
76 virtual bool onDecodeRegion(SkBitmap* bitmap, SkIRect rect);
636 SkBitmap *bitmap = new SkBitmap;
637 SkAutoTDelete<SkBitmap> adb(bitmap);
649 bitmap->setConfig(config, cinfo->output_width, height);
650 bitmap->setIsOpaque(true);
657 // Not using a recycled-bitmap and the output rect is same as the
662 (w == bitmap->width()) && (h == bitmap->height()) &&
666 if (!this->allocPixelRef(bitmap, NULL)) {
667 return return_false(*cinfo, *bitmap, "allocPixelRef");
670 if (!bitmap->allocPixels()) {
671 return return_false(*cinfo, *bitmap, "allocPixels");
675 SkAutoLockPixels alp(*bitmap);
676 JSAMPLE* rowptr = (JSAMPLE*)bitmap->getPixels();
677 INT32 const bpr = bitmap->rowBytes();
686 return return_false(*cinfo, *bitmap, "read_scanlines");
689 return return_false(*cinfo, *bitmap, "shouldCancelDecode");
696 bm->swap(*bitmap);
698 cropBitmap(bm, bitmap, actualSampleSize, region.x(), region.y(),
723 bitmap->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight());
724 bitmap->setIsOpaque(true);
733 (w == bitmap->width()) && (h == bitmap->height()) &&
737 if (!this->allocPixelRef(bitmap, NULL)) {
738 return return_false(*cinfo, *bitmap, "allocPixelRef");
741 if (!bitmap->allocPixels()) {
742 return return_false(*cinfo, *bitmap, "allocPixels");
746 SkAutoLockPixels alp(*bitmap);
747 if (!sampler.begin(bitmap, sc, this->getDitherImage())) {
748 return return_false(*cinfo, *bitmap, "sampler.begin");
755 return return_false(*cinfo, *bitmap, "skip rows");
758 // now loop through scanlines until y == bitmap->height() - 1
763 return return_false(*cinfo, *bitmap, "read_scanlines");
766 return return_false(*cinfo, *bitmap, "shouldCancelDecode");
770 if (bitmap->height() - 1 == y) {
777 return return_false(*cinfo, *bitmap, "skip rows");
781 bm->swap(*bitmap);
783 cropBitmap(bm, bitmap, actualSampleSize, region.x(), region.y(),