Home
last modified time | relevance | path

Searched refs:bm (Results 1 – 25 of 223) sorted by relevance

123456789

/external/valgrind/main/drd/
Ddrd_bitmap.h342 struct bitmap2* bm2_insert(struct bitmap* const bm, const UWord a1);
378 Bool bm_cache_lookup(struct bitmap* const bm, const UWord a1, in bm_cache_lookup() argument
382 tl_assert(bm); in bm_cache_lookup()
390 if (a1 == bm->cache[0].a1) in bm_cache_lookup()
392 *bm2 = bm->cache[0].bm2; in bm_cache_lookup()
397 if (a1 == bm->cache[1].a1) in bm_cache_lookup()
399 *bm2 = bm->cache[1].bm2; in bm_cache_lookup()
404 if (a1 == bm->cache[2].a1) in bm_cache_lookup()
406 *bm2 = bm->cache[2].bm2; in bm_cache_lookup()
407 bm_cache_rotate(bm->cache, 3); in bm_cache_lookup()
[all …]
Dpub_drd_bitmap.h80 void DRD_(bm_delete)(struct bitmap* const bm);
81 void DRD_(bm_init)(struct bitmap* const bm);
82 void DRD_(bm_cleanup)(struct bitmap* const bm);
83 void DRD_(bm_access_range)(struct bitmap* const bm,
86 void DRD_(bm_access_range_load)(struct bitmap* const bm,
88 void DRD_(bm_access_load_1)(struct bitmap* const bm, const Addr a1);
89 void DRD_(bm_access_load_2)(struct bitmap* const bm, const Addr a1);
90 void DRD_(bm_access_load_4)(struct bitmap* const bm, const Addr a1);
91 void DRD_(bm_access_load_8)(struct bitmap* const bm, const Addr a1);
92 void DRD_(bm_access_range_store)(struct bitmap* const bm,
[all …]
Ddrd_bitmap.c58 struct bitmap* bm; in DRD_() local
64 bm = VG_(malloc)("drd.bitmap.bn.1", sizeof(*bm)); in DRD_()
65 DRD_(bm_init)(bm); in DRD_()
67 return bm; in DRD_()
70 void DRD_(bm_delete)(struct bitmap* const bm) in DRD_()
72 tl_assert(bm); in DRD_()
74 DRD_(bm_cleanup)(bm); in DRD_()
75 VG_(free)(bm); in DRD_()
79 void DRD_(bm_init)(struct bitmap* const bm) in DRD_()
83 tl_assert(bm); in DRD_()
[all …]
/external/skia/src/core/
DSkBitmapSampler.cpp27 SkBitmapSampler::SkBitmapSampler(const SkBitmap& bm, bool filter, in SkBitmapSampler() argument
29 : fBitmap(bm), fFilterBitmap(filter), fTileModeX(tmx), fTileModeY(tmy) in SkBitmapSampler()
31 SkASSERT(bm.width() > 0 && bm.height() > 0); in SkBitmapSampler()
33 fMaxX = SkToU16(bm.width() - 1); in SkBitmapSampler()
34 fMaxY = SkToU16(bm.height() - 1); in SkBitmapSampler()
46 SkNullBitmapSampler(const SkBitmap& bm, bool filter, in SkNullBitmapSampler() argument
48 : SkBitmapSampler(bm, filter, tmx, tmy) {} in SkNullBitmapSampler()
78 ARGB32_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy) in ARGB32_Bilinear_Sampler() argument
79 : SkBitmapSampler(bm, true, tmx, tmy) in ARGB32_Bilinear_Sampler()
126 RGB16_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy) in RGB16_Bilinear_Sampler() argument
[all …]
DSkBitmapSamplerTemplate.h18 …BITMAP_CLASSNAME_PREFIX(_Point_Sampler)(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::Tile… in BITMAP_CLASSNAME_PREFIX()
19 : SkBitmapSampler(bm, false, tmx, tmy) in BITMAP_CLASSNAME_PREFIX()
34 BITMAP_CLASSNAME_PREFIX(_Point_Clamp_Sampler)(const SkBitmap& bm) in BITMAP_CLASSNAME_PREFIX()
35 : SkBitmapSampler(bm, false, SkShader::kClamp_TileMode, SkShader::kClamp_TileMode) in BITMAP_CLASSNAME_PREFIX()
49 BITMAP_CLASSNAME_PREFIX(_Point_Repeat_Pow2_Sampler)(const SkBitmap& bm) in BITMAP_CLASSNAME_PREFIX()
50 : SkBitmapSampler(bm, false, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) in BITMAP_CLASSNAME_PREFIX()
64 BITMAP_CLASSNAME_PREFIX(_Point_Repeat_Mod_Sampler)(const SkBitmap& bm) in BITMAP_CLASSNAME_PREFIX()
65 : SkBitmapSampler(bm, false, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) in BITMAP_CLASSNAME_PREFIX()
79 BITMAP_CLASSNAME_PREFIX(_Point_Mirror_Pow2_Sampler)(const SkBitmap& bm) in BITMAP_CLASSNAME_PREFIX()
80 : SkBitmapSampler(bm, false, SkShader::kMirror_TileMode, SkShader::kMirror_TileMode) in BITMAP_CLASSNAME_PREFIX()
[all …]
/external/openssl/crypto/bio/
Dbss_mem.c148 BUF_MEM *bm; in mem_read() local
150 bm=(BUF_MEM *)b->ptr; in mem_read()
152 ret=(outl >=0 && (size_t)outl > bm->length)?(int)bm->length:outl; in mem_read()
154 memcpy(out,bm->data,ret); in mem_read()
155 bm->length-=ret; in mem_read()
156 if(b->flags & BIO_FLAGS_MEM_RDONLY) bm->data += ret; in mem_read()
158 memmove(&(bm->data[0]),&(bm->data[ret]),bm->length); in mem_read()
160 } else if (bm->length == 0) in mem_read()
173 BUF_MEM *bm; in mem_write() local
175 bm=(BUF_MEM *)b->ptr; in mem_write()
[all …]
/external/skia/samplecode/
DSampleFilter.cpp24 static void make_bm(SkBitmap* bm) { in make_bm() argument
30 bm->setConfig(SkBitmap::kIndex8_Config, 2, 2); in make_bm()
31 bm->allocPixels(ctable); in make_bm()
34 *bm->getAddr8(0, 0) = 0; in make_bm()
35 *bm->getAddr8(1, 0) = 1; in make_bm()
36 *bm->getAddr8(0, 1) = 2; in make_bm()
37 *bm->getAddr8(1, 1) = 3; in make_bm()
40 static SkScalar draw_bm(SkCanvas* canvas, const SkBitmap& bm, in draw_bm() argument
43 canvas->drawBitmap(bm, x, y, paint); in draw_bm()
44 return SkIntToScalar(bm.width()) * 5/4; in draw_bm()
[all …]
DSampleHairline.cpp36 SkBitmap bm; in test_chromium_9005() local
37 bm.setConfig(SkBitmap::kARGB_8888_Config, 800, 600); in test_chromium_9005()
38 bm.allocPixels(); in test_chromium_9005()
40 SkCanvas canvas(bm); in test_chromium_9005()
67 static bool check_bitmap_margin(const SkBitmap& bm, int margin) { in check_bitmap_margin() argument
68 size_t rb = bm.rowBytes(); in check_bitmap_margin()
70 if (!check_zeros(bm.getAddr32(0, i), bm.width(), 1)) { in check_bitmap_margin()
73 int bottom = bm.height() - i - 1; in check_bitmap_margin()
74 if (!check_zeros(bm.getAddr32(0, bottom), bm.width(), 1)) { in check_bitmap_margin()
78 if (!check_zeros(bm.getAddr32(i, 0), bm.height(), rb >> 2)) { in check_bitmap_margin()
[all …]
DSampleTinyBitmap.cpp16 SkBitmap bm; in make_bitmap() local
25 bm.setConfig(SkBitmap::kIndex8_Config, 1, 1); in make_bitmap()
26 bm.allocPixels(ctable); in make_bitmap()
29 bm.lockPixels(); in make_bitmap()
30 for (int y = 0; y < bm.height(); y++) { in make_bitmap()
31 uint8_t* p = bm.getAddr8(0, y); in make_bitmap()
32 for (int x = 0; x < bm.width(); x++) { in make_bitmap()
36 bm.unlockPixels(); in make_bitmap()
37 return bm; in make_bitmap()
58 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { in setBitmapOpaque() argument
[all …]
DSampleDitherBitmap.cpp57 SkBitmap bm; in make_bitmap() local
65 bm.setConfig(SkBitmap::kIndex8_Config, 256, 32); in make_bitmap()
66 bm.allocPixels(ctable); in make_bitmap()
69 bm.lockPixels(); in make_bitmap()
70 for (int y = 0; y < bm.height(); y++) { in make_bitmap()
71 uint8_t* p = bm.getAddr8(0, y); in make_bitmap()
76 bm.unlockPixels(); in make_bitmap()
77 return bm; in make_bitmap()
102 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { in setBitmapOpaque() argument
103 SkAutoLockPixels alp(*bm); // needed for ctable in setBitmapOpaque()
[all …]
DSampleAARectModes.cpp16 SkBitmap bm; in create_canvas() local
17 bm.setConfig(SkBitmap::kARGB_8888_Config, w, h); in create_canvas()
18 bm.allocPixels(); in create_canvas()
19 bm.eraseColor(0); in create_canvas()
20 return new SkCanvas(bm); in create_canvas()
77 SkBitmap bm; in make_bg_shader() local
78 bm.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); in make_bg_shader()
79 bm.allocPixels(); in make_bg_shader()
80 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; in make_bg_shader()
81 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, in make_bg_shader()
[all …]
DSampleHairModes.cpp16 SkBitmap bm; in create_canvas() local
17 bm.setConfig(SkBitmap::kARGB_8888_Config, w, h); in create_canvas()
18 bm.allocPixels(); in create_canvas()
19 bm.eraseColor(0); in create_canvas()
20 return new SkCanvas(bm); in create_canvas()
76 SkBitmap bm; in make_bg_shader() local
77 bm.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); in make_bg_shader()
78 bm.allocPixels(); in make_bg_shader()
79 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; in make_bg_shader()
80 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, 0xCC, 0xCC); in make_bg_shader()
[all …]
/external/skia/gm/
Dtablecolorfilter.cpp13 static void make_bm0(SkBitmap* bm) { in make_bm0() argument
16 bm->setConfig(SkBitmap::kARGB_8888_Config, W, H); in make_bm0()
17 bm->allocPixels(); in make_bm0()
18 bm->eraseColor(0); in make_bm0()
20 SkCanvas canvas(*bm); in make_bm0()
32 static void make_bm1(SkBitmap* bm) { in make_bm1() argument
35 bm->setConfig(SkBitmap::kARGB_8888_Config, W, H); in make_bm1()
36 bm->allocPixels(); in make_bm1()
37 bm->eraseColor(0); in make_bm1()
39 SkCanvas canvas(*bm); in make_bm1()
[all …]
Dbitmapfilters.cpp12 static void make_bm(SkBitmap* bm) { in make_bm() argument
23 bm->setConfig(SkBitmap::kIndex8_Config, 2, 2); in make_bm()
24 bm->allocPixels(ctable); in make_bm()
27 *bm->getAddr8(0, 0) = 0; in make_bm()
28 *bm->getAddr8(1, 0) = 1; in make_bm()
29 *bm->getAddr8(0, 1) = 2; in make_bm()
30 *bm->getAddr8(1, 1) = 3; in make_bm()
33 static SkScalar draw_bm(SkCanvas* canvas, const SkBitmap& bm, in draw_bm() argument
35 canvas->drawBitmap(bm, x, y, paint); in draw_bm()
36 return SkIntToScalar(bm.width()) * 5/4; in draw_bm()
[all …]
Darithmode.cpp19 SkBitmap bm; in make_bm() local
20 bm.setConfig(SkBitmap::kARGB_8888_Config, WW, HH); in make_bm()
21 bm.allocPixels(); in make_bm()
22 bm.eraseColor(0); in make_bm()
23 return bm; in make_bm()
27 SkBitmap bm = make_bm(); in make_src() local
28 SkCanvas canvas(bm); in make_src()
39 return bm; in make_src()
43 SkBitmap bm = make_bm(); in make_dst() local
44 SkCanvas canvas(bm); in make_dst()
[all …]
Dhairmodes.cpp14 SkBitmap bm; in create_canvas() local
15 bm.setConfig(SkBitmap::kARGB_8888_Config, w, h); in create_canvas()
16 bm.allocPixels(); in create_canvas()
17 bm.eraseColor(0); in create_canvas()
18 return new SkCanvas(bm); in create_canvas()
74 SkBitmap bm; in make_bg_shader() local
75 bm.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); in make_bg_shader()
76 bm.allocPixels(); in make_bg_shader()
77 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; in make_bg_shader()
78 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, 0xCC, 0xCC); in make_bg_shader()
[all …]
/external/skia/src/images/
DSkImageDecoder_libgif.cpp26 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode);
144 static bool error_return(GifFileType* gif, const SkBitmap& bm, in error_return() argument
148 msg, bm.width(), bm.height(), bm.getPixels(), bm.getColorTable()); in error_return()
153 bool SkGIFImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* bm, Mode mode) { in onDecode() argument
156 return error_return(gif, *bm, "DGifOpen"); in onDecode()
173 return error_return(gif, *bm, "DGifGetRecordType"); in onDecode()
179 return error_return(gif, *bm, "IMAGE_DESC_RECORD_TYPE"); in onDecode()
183 return error_return(gif, *bm, "ImageCount < 1"); in onDecode()
191 return error_return(gif, *bm, "chooseFromOneChoice"); in onDecode()
195 bm->setConfig(SkBitmap::kIndex8_Config, width, height); in onDecode()
[all …]
DSkImageDecoder_libjpeg.cpp77 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode);
183 const SkBitmap& bm, const char msg[]) { in return_false() argument
187 bm.width(), bm.height()); in return_false()
192 bool SkJPEGImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() argument
210 return return_false(cinfo, *bm, "setjmp"); in onDecode()
225 return return_false(cinfo, *bm, "read_header"); in onDecode()
275 bm->setConfig(config, cinfo.image_width, cinfo.image_height); in onDecode()
276 bm->setIsOpaque(true); in onDecode()
298 bm->setConfig(config, smpl.scaledWidth(), smpl.scaledHeight()); in onDecode()
299 bm->setIsOpaque(true); in onDecode()
[all …]
DSkMovie_gif.cpp123 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src, in copyInterlaceGroup() argument
131 uint32_t* dst = bm->getAddr32(imageDesc.Left, imageDesc.Top + row); in copyInterlaceGroup()
140 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument
143 int width = bm->width(); in blitInterlace()
144 int height = bm->height(); in blitInterlace()
159 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace()
162 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace()
165 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace()
167 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace()
170 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument
[all …]
DSkImageDecoder_libico.cpp24 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode);
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);
62 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors);
78 bool SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) in onDecode() argument
165 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = NULL; in onDecode()
238 bm->setConfig(SkBitmap::kARGB_8888_Config, w, h, calculateRowBytesFor8888(w, bitCount)); in onDecode()
244 if (!bm->isNull()) { in onDecode()
[all …]
DSkImageEncoder.cpp17 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm, in encodeStream() argument
20 return this->onEncode(stream, bm, quality); in encodeStream()
23 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, in encodeFile() argument
27 return this->onEncode(&stream, bm, quality); in encodeFile()
30 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap& bm, Type t, in EncodeFile() argument
33 return enc.get() && enc.get()->encodeFile(file, bm, quality); in EncodeFile()
36 bool SkImageEncoder::EncodeStream(SkWStream* stream, const SkBitmap& bm, Type t, in EncodeStream() argument
39 return enc.get() && enc.get()->encodeStream(stream, bm, quality); in EncodeStream()
DSkImageDecoder.cpp148 bool SkImageDecoder::decode(SkStream* stream, SkBitmap* bm, in decode() argument
160 SkAutoLockPixels alp(*bm); in decode()
161 if (bm->getPixels() != NULL) { in decode()
162 return this->onDecode(stream, bm, mode); in decode()
168 bm->swap(tmp); in decode()
172 bool SkImageDecoder::decodeRegion(SkBitmap* bm, SkIRect rect, in decodeRegion() argument
179 if (!this->onDecodeRegion(bm, rect)) { in decodeRegion()
226 bool SkImageDecoder::DecodeFile(const char file[], SkBitmap* bm, in DecodeFile() argument
229 SkASSERT(bm); in DecodeFile()
233 if (SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format)) { in DecodeFile()
[all …]
/external/skia/tests/
DDrawBitmapRectTest.cpp12 static bool check_for_all_zeros(const SkBitmap& bm) { in check_for_all_zeros() argument
13 SkAutoLockPixels alp(bm); in check_for_all_zeros()
15 size_t count = bm.width() * bm.bytesPerPixel(); in check_for_all_zeros()
16 for (int y = 0; y < bm.height(); y++) { in check_for_all_zeros()
17 const uint8_t* ptr = reinterpret_cast<const uint8_t*>(bm.getAddr(0, y)); in check_for_all_zeros()
30 static void create(SkBitmap* bm, SkBitmap::Config config, SkColor color) { in create() argument
31 bm->setConfig(config, gWidth, gHeight); in create()
32 bm->allocPixels(); in create()
33 bm->eraseColor(color); in create()
/external/skia/bench/
DRepeatTileBench.cpp20 static void drawIntoBitmap(const SkBitmap& bm) { in drawIntoBitmap() argument
21 const int w = bm.width(); in drawIntoBitmap()
22 const int h = bm.height(); in drawIntoBitmap()
24 SkCanvas canvas(bm); in drawIntoBitmap()
94 SkBitmap bm; in RepeatTileBench() local
97 bm.setConfig(SkBitmap::kARGB_8888_Config, w, h); in RepeatTileBench()
99 bm.setConfig(c, w, h); in RepeatTileBench()
101 bm.allocPixels(); in RepeatTileBench()
102 bm.eraseColor(0); in RepeatTileBench()
104 drawIntoBitmap(bm); in RepeatTileBench()
[all …]
/external/skia/src/ports/
DSkImageDecoder_CG.cpp47 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode);
52 bool SkImageDecoder_CG::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() argument
68 bm->setConfig(SkBitmap::kARGB_8888_Config, width, height); in onDecode()
73 if (!this->allocPixelRef(bm, NULL)) { in onDecode()
77 bm->lockPixels(); in onDecode()
78 bm->eraseColor(0); in onDecode()
82 CGContextRef cg = CGBitmapContextCreate(bm->getPixels(), width, height, in onDecode()
83 8, bm->rowBytes(), cs, BITMAP_INFO); in onDecode()
87 bm->unlockPixels(); in onDecode()
139 virtual bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality);
[all …]

123456789