Searched refs:bm (Results 101 - 125 of 405) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/tests/
H A DAnnotationTest.cpp28 SkBitmap bm; local
29 bm.allocN32Pixels(10, 10);
30 bm.eraseColor(SK_ColorTRANSPARENT);
32 SkCanvas canvas(bm);
37 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0));
39 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0));
H A DPictureTest.cpp41 static void make_bm(SkBitmap* bm, int w, int h, SkColor color, bool immutable) { argument
42 bm->allocN32Pixels(w, h);
43 bm->eraseColor(color);
45 bm->setImmutable();
49 static void make_checkerboard(SkBitmap* bm, int w, int h, bool immutable) { argument
52 bm->allocPixels(SkImageInfo::Make(w, h, kAlpha_8_SkColorType,
54 SkAutoLockPixels lock(*bm);
56 uint8_t* s = bm->getAddr8(0, y);
61 s = bm->getAddr8(0, y + 1);
68 bm
72 init_paint(SkPaint* paint, const SkBitmap &bm) argument
83 drawpaint_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
93 drawpoints_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
112 drawrect_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
125 drawoval_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
138 drawrrect_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
153 drawpath_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
169 drawbitmap_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
176 drawbitmap_withshader_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
188 drawsprite_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
220 drawbitmaprect_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
230 drawbitmaprect_withshader_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
247 drawtext_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
258 drawpostext_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
270 drawtextonpath_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
286 drawverts_proc(SkCanvas* canvas, const SkBitmap& bm, const SkBitmap& altBM, const SkPoint& pos, SkTDArray<SkPixelRef*>* usedPixRefs) argument
310 record_bitmaps(const SkBitmap bm[], const SkPoint pos[], SkTDArray<SkPixelRef*> analytic[], int count, DrawBitmapProc proc) argument
370 gather_from_image(const SkBitmap& bm, SkPixelRef* const refs[], int count, SkTDArray<SkPixelRef*>* array, const SkRect& subset) argument
456 create_textures(SkBitmap* bm, SkPixelRef** refs, int num, int w, int h) argument
484 SkBitmap bm[2*N]; local
626 SkBitmap bm[2*N]; local
1236 SkBitmap bm; local
1300 SkBitmap bm; local
1435 SkBitmap bm; local
1447 encode_bitmap_to_data(size_t*, const SkBitmap& bm) argument
1489 SkBitmap bm; local
1708 SkBitmap bm; local
[all...]
/external/skia/src/images/
H A DSkImageDecoder_libbmp.cpp27 virtual Result onDecode(SkStream* stream, SkBitmap* bm, Mode mode) SK_OVERRIDE;
95 SkImageDecoder::Result SkBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument
135 bm->setInfo(SkImageInfo::Make(sampler.scaledWidth(), sampler.scaledHeight(),
142 if (!this->allocPixelRef(bm, NULL)) {
146 SkAutoLockPixels alp(*bm);
148 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, *this)) {
H A DSkImageDecoder_pkm.cpp26 virtual Result onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE;
34 SkImageDecoder::Result SkPKMImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument
60 bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(),
66 if (!this->allocPixelRef(bm, NULL)) {
71 SkAutoLockPixels alp(*bm);
73 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, *this)) {
H A DSkImageDecoder.cpp183 SkImageDecoder::Result SkImageDecoder::decode(SkStream* stream, SkBitmap* bm, SkColorType pref, argument
195 bm->swap(tmp);
200 bool SkImageDecoder::decodeSubset(SkBitmap* bm, const SkIRect& rect, SkColorType pref) { argument
206 return this->onDecodeSubset(bm, rect);
265 bool SkImageDecoder::DecodeFile(const char file[], SkBitmap* bm, SkColorType pref, Mode mode, argument
268 SkASSERT(bm);
272 if (SkImageDecoder::DecodeStream(stream, bm, pref, mode, format)) {
273 bm->pixelRef()->setURI(file);
280 bool SkImageDecoder::DecodeMemory(const void* buffer, size_t size, SkBitmap* bm, SkColorType pref, argument
288 return SkImageDecoder::DecodeStream(&stream, bm, pre
291 DecodeStream(SkStreamRewindable* stream, SkBitmap* bm, SkColorType pref, Mode mode, Format* format) argument
[all...]
H A DSkImageDecoder_libico.cpp23 virtual Result 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 SkImageDecoder::Result SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) argument
178 const Result result = otherDecoder->decode(&subStream, bm, this->getDefaultPref(),
196 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = NULL;
268 bm
312 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
341 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
361 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
371 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
385 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 DSkImageDecoder_libjpeg.cpp241 virtual Result onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE;
340 const SkBitmap& bm, const char caller[]) {
341 print_jpeg_decoder_errors(cinfo, bm.width(), bm.height(), caller);
346 const SkBitmap& bm, const char caller[]) {
347 print_jpeg_decoder_errors(cinfo, bm.width(), bm.height(), caller);
546 SkImageDecoder::Result SkJPEGImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument
562 return return_failure(cinfo, *bm, "setjmp");
570 return return_failure(cinfo, *bm, "read_heade
339 return_false(const jpeg_decompress_struct& cinfo, const SkBitmap& bm, const char caller[]) argument
345 return_failure(const jpeg_decompress_struct& cinfo, const SkBitmap& bm, const char caller[]) argument
809 onDecodeSubset(SkBitmap* bm, const SkIRect& region) argument
1129 ChooseWriter(const SkBitmap& bm) argument
1146 onEncode(SkWStream* stream, const SkBitmap& bm, int quality) argument
[all...]
/external/skia/tests/
H A DAnnotationTest.cpp28 SkBitmap bm; local
29 bm.allocN32Pixels(10, 10);
30 bm.eraseColor(SK_ColorTRANSPARENT);
32 SkCanvas canvas(bm);
37 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0));
39 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0));
H A DImageDecodingTest.cpp174 SkBitmap bm; local
185 bool success = decoder->decode(&stream, &bm, kN32_SkColorType,
196 const SkAlphaType boundsAlphaType = bm.alphaType();
205 success = decoder->decode(&stream, &bm, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode);
229 REPORTER_ASSERT(reporter, bm.alphaType() == boundsAlphaType
230 || bm.alphaType() == kOpaque_SkAlphaType);
269 SkBitmap bm; local
287 bool success = decoder->decode(&stream, &bm, kN32_SkColorType,
294 REPORTER_ASSERT(reporter, bm.width() == 1 && bm
328 SkBitmap bm; local
382 SkBitmap bm; local
455 SkBitmap bm; local
512 SkBitmap bm; local
581 SkBitmap bm; local
[all...]
/external/chromium_org/third_party/skia/src/images/
H A DSkImageDecoder.cpp159 bool SkImageDecoder::decode(SkStream* stream, SkBitmap* bm, SkColorType pref, Mode mode) { argument
171 bm->swap(tmp);
175 bool SkImageDecoder::decodeSubset(SkBitmap* bm, const SkIRect& rect, SkColorType pref) { argument
181 return this->onDecodeSubset(bm, rect);
240 bool SkImageDecoder::DecodeFile(const char file[], SkBitmap* bm, SkColorType pref, Mode mode, argument
243 SkASSERT(bm);
247 if (SkImageDecoder::DecodeStream(stream, bm, pref, mode, format)) {
248 bm->pixelRef()->setURI(file);
255 bool SkImageDecoder::DecodeMemory(const void* buffer, size_t size, SkBitmap* bm, SkColorType pref, argument
263 return SkImageDecoder::DecodeStream(&stream, bm, pre
266 DecodeStream(SkStreamRewindable* stream, SkBitmap* bm, SkColorType pref, Mode mode, Format* format) argument
[all...]
H A DSkImageDecoder_libico.cpp23 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
173 if(otherDecoder->decode(&subStream, bm, this->getDefaultPref(), mode)) {
187 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = NULL;
259 bm
303 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
332 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
352 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
362 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
376 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 DSkImageDecoder_ktx.cpp44 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE;
50 bool SkKTXImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument
116 bm->setInfo(SkImageInfo::MakeA8(w, h));
120 bm->setInfo(SkImageInfo::MakeN32(w, h, alphaType));
128 if (!this->allocPixelRef(bm, NULL)) {
133 SkAutoLockPixels alp(*bm);
136 if (!sampler.begin(bm, SkScaledBitmapSampler::kGray, *this)) {
165 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, *this)) {
196 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, *this)) {
220 SkASSERT(bm
[all...]
H A DSkImageDecoder_libjpeg.cpp241 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE;
328 const SkBitmap& bm, const char caller[]) {
333 cinfo.err->msg_code, buffer, caller, bm.width(), bm.height());
532 bool SkJPEGImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument
548 return return_false(cinfo, *bm, "setjmp");
556 return return_false(cinfo, *bm, "read_header");
583 return bm->setInfo(SkImageInfo::Make(cinfo.image_width, cinfo.image_height,
608 return bm->setInfo(SkImageInfo::Make(smpl.scaledWidth(), smpl.scaledHeight(),
611 return return_false(cinfo, *bm, "start_decompres
327 return_false(const jpeg_decompress_struct& cinfo, const SkBitmap& bm, const char caller[]) argument
791 onDecodeSubset(SkBitmap* bm, const SkIRect& region) argument
1111 ChooseWriter(const SkBitmap& bm) argument
1128 onEncode(SkWStream* stream, const SkBitmap& bm, int quality) argument
[all...]
/external/chromium_org/third_party/skia/bench/
H A DDecodeBench.cpp38 SkBitmap bm; local
39 SkImageDecoder::DecodeFile(FLAGS_decodeBenchFilename[0], &bm, fPrefColorType,
/external/chromium_org/third_party/skia/gm/
H A Dcolormatrix.cpp65 SkBitmap bm; local
66 bm.allocN32Pixels(width, height);
67 SkCanvas canvas(bm);
77 return bm;
82 SkBitmap bm; local
83 bm.allocN32Pixels(width, height);
84 SkCanvas canvas(bm);
93 return bm;
H A Daaclip.cpp116 static SkCanvas* make_canvas(const SkBitmap& bm) { argument
117 const SkImageInfo& info = bm.info();
120 (SkPMColor*)bm.getPixels(),
121 bm.rowBytes());
123 return SkNEW_ARGS(SkCanvas, (bm));
129 SkBitmap bm; local
130 bm.allocPixels(info);
132 SkAutoTUnref<SkCanvas> newc(make_canvas(bm));
134 bm.eraseColor(SK_ColorGREEN);
136 bm
[all...]
H A Dastcbitmap.cpp78 SkBitmap bm; variable
81 fileData, SkDecodingImageGenerator::Options()), &bm)) {
88 canvas->drawBitmap(bm, bmX, bmY);
/external/skia/bench/
H A DDecodeBench.cpp38 SkBitmap bm; local
39 SkImageDecoder::DecodeFile(FLAGS_decodeBenchFilename[0], &bm, fPrefColorType,
H A DBitmapBench.cpp107 SkBitmap bm; local
110 bm.setInfo(SkImageInfo::MakeN32(W, H, fAlphaType));
112 bm.setInfo(SkImageInfo::Make(W, H, fColorType, fAlphaType));
115 bm.allocPixels();
116 bm.eraseColor(kOpaque_SkAlphaType == fAlphaType ? SK_ColorBLACK : 0);
118 onDrawIntoBitmap(bm);
121 convertToIndex666(bm, &fBitmap, fAlphaType);
123 fBitmap = bm;
151 virtual void onDrawIntoBitmap(const SkBitmap& bm) { argument
152 const int w = bm
[all...]
/external/skia/gm/
H A Dcolormatrix.cpp65 SkBitmap bm; local
66 bm.allocN32Pixels(width, height);
67 SkCanvas canvas(bm);
77 return bm;
82 SkBitmap bm; local
83 bm.allocN32Pixels(width, height);
84 SkCanvas canvas(bm);
93 return bm;
H A Dfilterindiabox.cpp19 static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) { argument
20 SkRect bounds = SkRect::MakeWH(SkIntToScalar(bm.width()),
21 SkIntToScalar(bm.height()));
26 static void draw_row(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat, SkScalar dx) { argument
31 canvas->drawBitmapMatrix(bm, mat, &paint);
35 canvas->drawBitmapMatrix(bm, mat, &paint);
39 canvas->drawBitmapMatrix(bm, mat, &paint);
43 canvas->drawBitmapMatrix(bm, mat, &paint);
H A Daaclip.cpp116 static SkCanvas* make_canvas(const SkBitmap& bm) { argument
117 const SkImageInfo& info = bm.info();
120 (SkPMColor*)bm.getPixels(),
121 bm.rowBytes());
123 return SkNEW_ARGS(SkCanvas, (bm));
129 SkBitmap bm; local
130 bm.allocPixels(info);
132 SkAutoTUnref<SkCanvas> newc(make_canvas(bm));
134 bm.eraseColor(SK_ColorGREEN);
136 bm
[all...]
/external/chromium_org/third_party/skia/include/core/
H A DSkImageEncoder.h41 * Encode bitmap 'bm', returning the results in an SkData, at quality level
49 * Encode bitmap 'bm' in the desired format, writing results to
53 bool encodeFile(const char file[], const SkBitmap& bm, int quality);
56 * Encode bitmap 'bm' in the desired format, writing results to
60 bool encodeStream(SkWStream* stream, const SkBitmap& bm, int quality);
70 * Encode bitmap 'bm' in the desired format, writing results to
76 virtual bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality) = 0;
/external/skia/include/core/
H A DSkImageEncoder.h41 * Encode bitmap 'bm', returning the results in an SkData, at quality level
49 * Encode bitmap 'bm' in the desired format, writing results to
53 bool encodeFile(const char file[], const SkBitmap& bm, int quality);
56 * Encode bitmap 'bm' in the desired format, writing results to
60 bool encodeStream(SkWStream* stream, const SkBitmap& bm, int quality);
70 * Encode bitmap 'bm' in the desired format, writing results to
76 virtual bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality) = 0;
/external/skia/src/core/
H A DSkBitmapProcShader.cpp20 bool SkBitmapProcShader::CanDo(const SkBitmap& bm, TileMode tx, TileMode ty) { argument
21 switch (bm.colorType()) {
83 static bool valid_for_drawing(const SkBitmap& bm) { argument
84 if (0 == bm.width() || 0 == bm.height()) {
87 if (NULL == bm.pixelRef()) {
90 if (kIndex_8_SkColorType == bm.colorType()) {
92 SkAutoLockPixels alp(bm);
93 if (!bm.getColorTable()) {
291 static bool canUseColorShader(const SkBitmap& bm, SkColo argument
317 bitmapIsTooBig(const SkBitmap& bm) argument
[all...]

Completed in 541 milliseconds

1234567891011>>