/external/chromium_org/third_party/skia/src/images/ |
H A D | SkImageDecoder.cpp | 189 bool SkImageDecoder::decode(SkStream* stream, SkBitmap* bm, argument 202 bm->swap(tmp); 206 bool SkImageDecoder::decodeSubset(SkBitmap* bm, const SkIRect& rect, argument 213 return this->onDecodeSubset(bm, rect); 274 bool SkImageDecoder::DecodeFile(const char file[], SkBitmap* bm, argument 277 SkASSERT(bm); 281 if (SkImageDecoder::DecodeStream(stream, bm, pref, mode, format)) { 282 bm->pixelRef()->setURI(file); 289 bool SkImageDecoder::DecodeMemory(const void* buffer, size_t size, SkBitmap* bm, argument 297 return SkImageDecoder::DecodeStream(&stream, bm, pre 412 SkBitmap bm; local 448 DecodeStream(SkStream* stream, SkBitmap* bm, SkBitmap::Config pref, Mode mode, Format* format) argument [all...] |
H A D | SkImageDecoder_libico.cpp | 24 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE; 48 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 51 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 54 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 57 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 60 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 76 bool SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) argument 163 if(otherDecoder->decode(&subStream, bm, this->getDefaultPref(), mode)) { 177 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = NULL; 249 bm 293 editPixelBit1(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 322 editPixelBit4(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 342 editPixelBit8(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 352 editPixelBit24(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 366 editPixelBit32(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument [all...] |
H A D | SkImageDecoder_libjpeg.cpp | 201 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE; 288 const SkBitmap& bm, const char msg[]) { 292 bm.width(), bm.height()); 445 bool SkJPEGImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument 461 return return_false(cinfo, *bm, "setjmp"); 469 return return_false(cinfo, *bm, "read_header"); 492 bm->setConfig(config, cinfo.image_width, cinfo.image_height); 493 bm->setIsOpaque(config != SkBitmap::kA8_Config); 514 bm 287 return_false(const jpeg_decompress_struct& cinfo, const SkBitmap& bm, const char msg[]) argument 701 onDecodeSubset(SkBitmap* bm, const SkIRect& region) argument 1029 ChooseWriter(const SkBitmap& bm) argument 1046 onEncode(SkWStream* stream, const SkBitmap& bm, int quality) argument [all...] |
/external/skia/src/images/ |
H A D | SkImageDecoder.cpp | 192 bool SkImageDecoder::decode(SkStream* stream, SkBitmap* bm, argument 205 bm->swap(tmp); 209 bool SkImageDecoder::decodeSubset(SkBitmap* bm, const SkIRect& rect, argument 216 return this->onDecodeSubset(bm, rect); 277 bool SkImageDecoder::DecodeFile(const char file[], SkBitmap* bm, argument 280 SkASSERT(bm); 284 if (SkImageDecoder::DecodeStream(stream, bm, pref, mode, format)) { 285 bm->pixelRef()->setURI(file); 292 bool SkImageDecoder::DecodeMemory(const void* buffer, size_t size, SkBitmap* bm, argument 300 return SkImageDecoder::DecodeStream(&stream, bm, pre 415 SkBitmap bm; local 451 DecodeStream(SkStream* stream, SkBitmap* bm, SkBitmap::Config pref, Mode mode, Format* format) argument [all...] |
H A D | SkImageDecoder_libico.cpp | 23 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE; 47 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 50 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 53 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 56 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 59 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 75 bool SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) argument 163 if(otherDecoder->decode(&subStream, bm, this->getDefaultPref(), mode)) { 177 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = NULL; 249 bm 293 editPixelBit1(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 322 editPixelBit4(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 342 editPixelBit8(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 352 editPixelBit24(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument 366 editPixelBit32(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument [all...] |
H A D | SkImageDecoder_libjpeg.cpp | 201 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE; 288 const SkBitmap& bm, const char msg[]) { 292 bm.width(), bm.height()); 445 bool SkJPEGImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument 461 return return_false(cinfo, *bm, "setjmp"); 469 return return_false(cinfo, *bm, "read_header"); 492 bm->setConfig(config, cinfo.image_width, cinfo.image_height); 493 bm->setIsOpaque(config != SkBitmap::kA8_Config); 514 bm 287 return_false(const jpeg_decompress_struct& cinfo, const SkBitmap& bm, const char msg[]) argument 701 onDecodeSubset(SkBitmap* bm, const SkIRect& region) argument 1029 ChooseWriter(const SkBitmap& bm) argument 1046 onEncode(SkWStream* stream, const SkBitmap& bm, int quality) argument [all...] |
/external/skia/tests/ |
H A D | PictureTest.cpp | 21 static void make_bm(SkBitmap* bm, int w, int h, SkColor color, bool immutable) { argument 22 bm->setConfig(SkBitmap::kARGB_8888_Config, w, h); 23 bm->allocPixels(); 24 bm->eraseColor(color); 26 bm->setImmutable(); 32 static void drawbitmap_proc(SkCanvas* canvas, const SkBitmap& bm, argument 34 canvas->drawBitmap(bm, pos.fX, pos.fY, NULL); 37 static void drawbitmaprect_proc(SkCanvas* canvas, const SkBitmap& bm, argument 40 0, 0, SkIntToScalar(bm.width()), SkIntToScalar(bm 46 drawshader_proc(SkCanvas* canvas, const SkBitmap& bm, const SkPoint& pos) argument 66 record_bitmaps(const SkBitmap bm[], const SkPoint pos[], int count, DrawBitmapProc proc) argument 121 gather_from_colors(const SkBitmap& bm, SkPixelRef* const refs[], int count, SkTDArray<SkPixelRef*>* array) argument 162 SkBitmap bm[N]; local 324 SkBitmap bm; local 364 encode_bitmap_to_data(size_t* offset, const SkBitmap& bm) argument 407 SkBitmap bm; local [all...] |
H A D | BlitRowTest.cpp | 67 static Proc find_proc(const SkBitmap& bm, SkPMColor expect32, uint16_t expect16, argument 69 switch (bm.config()) { 86 static bool check_color(const SkBitmap& bm, SkPMColor expect32, argument 90 Proc proc = find_proc(bm, expect32, expect16, expect8, &expect); 91 for (int y = 0; y < bm.height(); y++) { 93 int x = proc(bm.getAddr(0, y), bm.width(), expect, &bad); 97 gConfigName[bm.config()], x, y, expect, bad); 170 Mesh(const SkBitmap& bm, SkPaint* paint) { argument 171 const SkScalar w = SkIntToScalar(bm 190 save_bm(const SkBitmap& bm, const char name[]) argument [all...] |
/external/skia/gm/ |
H A D | aarectmodes.cpp | 110 SkBitmap bm; local 111 bm.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); 112 bm.allocPixels(); 113 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; 114 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, 117 SkShader* s = SkShader::CreateBitmapShader(bm,
|
H A D | hairmodes.cpp | 62 SkBitmap bm; local 63 bm.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); 64 bm.allocPixels(); 65 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; 66 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, 0xCC, 0xCC); 68 SkShader* s = SkShader::CreateBitmapShader(bm,
|
H A D | imagefiltersbase.cpp | 117 SkBitmap bm; local 118 bm.setConfig(SkBitmap::kARGB_8888_Config, bounds.width(), bounds.height()); 119 bm.allocPixels(); 120 bm.eraseColor(SK_ColorTRANSPARENT); 121 SkCanvas c(bm); 124 canvas->drawBitmap(bm, 0, 0, &paint); 134 SkBitmap bm; local 135 bm.setConfig(SkBitmap::kARGB_8888_Config, bounds.width(), bounds.height()); 136 bm.allocPixels(); 137 bm [all...] |
H A D | imagefilterscropped.cpp | 60 SkBitmap bm; local 61 bm.setConfig(SkBitmap::kARGB_8888_Config, bounds.width(), bounds.height()); 62 bm.allocPixels(); 63 bm.eraseColor(SK_ColorTRANSPARENT); 64 SkCanvas c(bm); 70 canvas->drawBitmap(bm, 0, 0, &paint); 80 SkBitmap bm; local 81 bm.setConfig(SkBitmap::kARGB_8888_Config, bounds.width(), bounds.height()); 82 bm.allocPixels(); 83 bm [all...] |
H A D | ninepatchstretch.cpp | 76 SkBitmap bm; local 78 make_bitmap(&bm, NULL /*SampleCode::GetGr()*/, ¢er); 80 // amount of bm that should not be stretched (unless we have to) 81 const SkScalar fixed = SkIntToScalar(bm.width() - center.width()); 90 canvas->drawBitmap(bm, SkIntToScalar(10), SkIntToScalar(10), NULL); 103 canvas->drawBitmapNine(bm, center, r, &paint);
|
/external/chromium_org/third_party/skia/include/core/ |
H A D | SkImageEncoder.h | 39 * Encode bitmap 'bm', returning the results in an SkData, at quality level 47 * Encode bitmap 'bm' in the desired format, writing results to 51 bool encodeFile(const char file[], const SkBitmap& bm, int quality); 54 * Encode bitmap 'bm' in the desired format, writing results to 58 bool encodeStream(SkWStream* stream, const SkBitmap& bm, int quality); 68 * Encode bitmap 'bm' in the desired format, writing results to 74 virtual bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality) = 0;
|
/external/skia/include/core/ |
H A D | SkImageEncoder.h | 39 * Encode bitmap 'bm', returning the results in an SkData, at quality level 47 * Encode bitmap 'bm' in the desired format, writing results to 51 bool encodeFile(const char file[], const SkBitmap& bm, int quality); 54 * Encode bitmap 'bm' in the desired format, writing results to 58 bool encodeStream(SkWStream* stream, const SkBitmap& bm, int quality); 68 * Encode bitmap 'bm' in the desired format, writing results to 74 virtual bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality) = 0;
|
/external/skia/bench/ |
H A D | BitmapBench.cpp | 112 SkBitmap bm; local 115 bm.setConfig(SkBitmap::kARGB_8888_Config, W, H); 117 bm.setConfig(fConfig, W, H); 120 bm.allocPixels(); 121 bm.eraseColor(fIsOpaque ? SK_ColorBLACK : 0); 123 onDrawIntoBitmap(bm); 126 convertToIndex666(bm, &fBitmap); 128 fBitmap = bm; 178 virtual void onDrawIntoBitmap(const SkBitmap& bm) { argument 179 const int w = bm [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
H A D | u_format_rgb9e5.h | 105 int rm, gm, bm; local 132 bm = (int) floor(bc / denom + 0.5); 136 assert(bm <= MAX_RGB9E5_MANTISSA); 139 assert(bm >= 0); 143 retval.field.b = bm;
|
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_format_rgb9e5.h | 105 int rm, gm, bm; local 132 bm = (int) floor(bc / denom + 0.5); 136 assert(bm <= MAX_RGB9E5_MANTISSA); 139 assert(bm >= 0); 143 retval.field.b = bm;
|
/external/chromium_org/third_party/skia/src/effects/gradients/ |
H A D | SkBitmapCache.cpp | 20 Entry(const void* buffer, size_t size, const SkBitmap& bm) argument 23 fBitmap(bm) { 83 bool SkBitmapCache::find(const void* buffer, size_t size, SkBitmap* bm) const { 89 if (bm) { 90 *bm = entry->fBitmap; 102 void SkBitmapCache::add(const void* buffer, size_t len, const SkBitmap& bm) { argument 111 Entry* entry = SkNEW_ARGS(Entry, (buffer, len, bm));
|
/external/skia/src/effects/gradients/ |
H A D | SkBitmapCache.cpp | 20 Entry(const void* buffer, size_t size, const SkBitmap& bm) argument 23 fBitmap(bm) { 83 bool SkBitmapCache::find(const void* buffer, size_t size, SkBitmap* bm) const { 89 if (bm) { 90 *bm = entry->fBitmap; 102 void SkBitmapCache::add(const void* buffer, size_t len, const SkBitmap& bm) { argument 111 Entry* entry = SkNEW_ARGS(Entry, (buffer, len, bm));
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkBitmapProcShader.cpp | 14 bool SkBitmapProcShader::CanDo(const SkBitmap& bm, TileMode tx, TileMode ty) { argument 15 switch (bm.config()) { 253 static bool canUseColorShader(const SkBitmap& bm, SkColor* color) { argument 254 if (1 != bm.width() || 1 != bm.height()) { 258 SkAutoLockPixels alp(bm); 259 if (!bm.readyToDraw()) { 263 switch (bm.config()) { 265 *color = SkUnPreMultiply::PMColorToColor(*bm.getAddr32(0, 0)); 268 *color = SkPixel16ToColor(*bm 281 bitmapIsTooBig(const SkBitmap& bm) argument [all...] |
/external/skia/src/core/ |
H A D | SkBitmapProcShader.cpp | 14 bool SkBitmapProcShader::CanDo(const SkBitmap& bm, TileMode tx, TileMode ty) { argument 15 switch (bm.config()) { 253 static bool canUseColorShader(const SkBitmap& bm, SkColor* color) { argument 254 if (1 != bm.width() || 1 != bm.height()) { 258 SkAutoLockPixels alp(bm); 259 if (!bm.readyToDraw()) { 263 switch (bm.config()) { 265 *color = SkUnPreMultiply::PMColorToColor(*bm.getAddr32(0, 0)); 268 *color = SkPixel16ToColor(*bm 281 bitmapIsTooBig(const SkBitmap& bm) argument [all...] |
/external/robolectric/lib/main/ |
H A D | commons-codec-1.6.jar | ... org/apache/commons/codec/language/ org/apache/commons/codec/language/bm/ org/apache/commons/codec/net/ META-INF/LICENSE. ... |
/external/chromium_org/third_party/skia/src/ports/ |
H A D | SkImageDecoder_WIC.cpp | 44 * @param bm SkBitmap to decode into. Only used if wicMode is kDecodeBounds_WICMode or 49 bool decodeStream(SkStream* stream, SkBitmap* bm, WICModes wicMode, Format* format) const; 52 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode) SK_OVERRIDE; 77 bool SkImageDecoder_WIC::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument 87 return this->decodeStream(stream, bm, wicMode, NULL); 90 bool SkImageDecoder_WIC::decodeStream(SkStream* stream, SkBitmap* bm, WICModes wicMode, argument 171 bm->setConfig(SkBitmap::kARGB_8888_Config, width, height); 175 if (!this->allocPixelRef(bm, NULL)) { 214 SkAutoLockPixels alp(*bm); 215 bm [all...] |
/external/skia/src/ports/ |
H A D | SkImageDecoder_WIC.cpp | 44 * @param bm SkBitmap to decode into. Only used if wicMode is kDecodeBounds_WICMode or 49 bool decodeStream(SkStream* stream, SkBitmap* bm, WICModes wicMode, Format* format) const; 52 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode) SK_OVERRIDE; 77 bool SkImageDecoder_WIC::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument 87 return this->decodeStream(stream, bm, wicMode, NULL); 90 bool SkImageDecoder_WIC::decodeStream(SkStream* stream, SkBitmap* bm, WICModes wicMode, argument 171 bm->setConfig(SkBitmap::kARGB_8888_Config, width, height); 175 if (!this->allocPixelRef(bm, NULL)) { 214 SkAutoLockPixels alp(*bm); 215 bm [all...] |