Lines Matching defs:bitmap
48 bool BitmapRegionDecoder::decodeRegion(SkBitmap* bitmap, BRDAllocator* allocator,
57 // The size of the output bitmap is determined by the size of the
61 // output bitmap starting at a left offset. Call this outX.
64 // output bitmap starting at a top offset. Call this outY.
86 // Initialize the destination bitmap
107 // bitmap in order to avoid a behavior change.
110 bitmap->setInfo(outInfo);
111 if (!bitmap->tryAllocPixels(allocator)) {
116 // Zero the bitmap if the region is not completely within the image.
124 void* pixels = bitmap->getPixels();
125 size_t bytes = outInfo.computeByteSize(bitmap->rowBytes());
129 // Decode into the destination bitmap
134 void* dst = bitmap->getAddr(scaledOutX, scaledOutY);
136 SkCodec::Result result = fCodec->getAndroidPixels(decodeInfo, dst, bitmap->rowBytes(),