Home | History | Annotate | Download | only in images

Lines Matching refs:SkBitmap

20 #include "SkBitmap.h"
34 Base class for decoding compressed images into a SkBitmap
102 virtual void inspect(int index, SkBitmap::Config config, int width, int height) {}
136 void setPrefConfigTable(const SkBitmap::Config pref[6]);
138 SkBitmap::Allocator* getAllocator() const { return fAllocator; }
139 SkBitmap::Allocator* setAllocator(SkBitmap::Allocator*);
194 bool decode(SkStream*, SkBitmap* bitmap, SkBitmap::Config pref, Mode);
195 bool decode(SkStream* stream, SkBitmap* bitmap, Mode mode) {
196 return this->decode(stream, bitmap, SkBitmap::kNo_Config, mode);
216 virtual bool decodeRegion(SkBitmap* bitmap, SkIRect rect,
217 SkBitmap::Config pref);
237 static bool DecodeFile(const char file[], SkBitmap* bitmap,
238 SkBitmap::Config prefConfig, Mode,
240 static bool DecodeFile(const char file[], SkBitmap* bitmap) {
241 return DecodeFile(file, bitmap, SkBitmap::kNo_Config,
257 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap,
258 SkBitmap::Config prefConfig, Mode,
260 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap){
261 return DecodeMemory(buffer, size, bitmap, SkBitmap::kNo_Config,
277 static bool DecodeStream(SkStream* stream, SkBitmap* bitmap,
278 SkBitmap::Config prefConfig, Mode,
280 static bool DecodeStream(SkStream* stream, SkBitmap* bitmap) {
281 return DecodeStream(stream, bitmap, SkBitmap::kNo_Config,
290 static SkBitmap::Config GetDeviceConfig();
297 static void SetDeviceConfig(SkBitmap::Config);
305 virtual bool onDecode(SkStream*, SkBitmap* bitmap, Mode) = 0;
316 virtual bool onDecodeRegion(SkBitmap* bitmap, SkIRect rect) {
334 virtual void cropBitmap(SkBitmap *dest, SkBitmap *src, int sampleSize,
357 bool chooseFromOneChoice(SkBitmap::Config config, int width, int height) const;
363 bool allocPixelRef(SkBitmap*, SkColorTable*) const;
378 SkBitmap::Config getPrefConfig(SrcDepth, bool hasAlpha) const;
385 SkBitmap::Allocator* fAllocator;
387 SkBitmap::Config fDefaultPref; // use if fUsePrefTable is false
388 SkBitmap::Config fPrefTable[6]; // use if fUsePrefTable is true