Home | History | Annotate | Download | only in images

Lines Matching defs:bitmap

323     // draw lots faster if we can flag the bitmap has being opaque
362 // For an A8 bitmap, we assume there is an alpha for speed. It is
363 // possible the bitmap is opaque, but that is an unlikely use case
832 const SkBitmap* bitmap = &originalBitmap;
844 bitmap = ©
847 SkColorType ct = bitmap->colorType();
849 const bool hasAlpha = !bitmap->isOpaque();
889 SkAutoLockPixels alp(*bitmap);
891 if (!bitmap->readyToDraw()) {
896 SkColorTable* ctable = bitmap->getColorTable();
905 return doEncode(stream, *bitmap, hasAlpha, colorType, bitDepth, ct, sig_bit);
908 bool SkPNGImageEncoder::doEncode(SkWStream* stream, const SkBitmap& bitmap,
947 png_set_IHDR(png_ptr, info_ptr, bitmap.width(), bitmap.height(),
956 SkColorTable* ct = bitmap.getColorTable();
968 const char* srcImage = (const char*)bitmap.getPixels();
969 SkAutoSTMalloc<1024, char> rowStorage(bitmap.width() << 2);
973 for (int y = 0; y < bitmap.height(); y++) {
975 proc(srcImage, bitmap.width(), storage);
977 srcImage += bitmap.rowBytes();