/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_bitmask.c | 66 struct util_bitmask *bm; in util_bitmask_create() local 68 bm = MALLOC_STRUCT(util_bitmask); in util_bitmask_create() 69 if(!bm) in util_bitmask_create() 72 bm->words = (util_bitmask_word *)CALLOC(UTIL_BITMASK_INITIAL_WORDS, sizeof(util_bitmask_word)); in util_bitmask_create() 73 if(!bm->words) { in util_bitmask_create() 74 FREE(bm); in util_bitmask_create() 78 bm->size = UTIL_BITMASK_INITIAL_WORDS * UTIL_BITMASK_BITS_PER_WORD; in util_bitmask_create() 79 bm->filled = 0; in util_bitmask_create() 81 return bm; in util_bitmask_create() 89 util_bitmask_resize(struct util_bitmask *bm, in util_bitmask_resize() argument [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_bitmask.c | 66 struct util_bitmask *bm; in util_bitmask_create() local 68 bm = MALLOC_STRUCT(util_bitmask); in util_bitmask_create() 69 if(!bm) in util_bitmask_create() 72 bm->words = (util_bitmask_word *)CALLOC(UTIL_BITMASK_INITIAL_WORDS, sizeof(util_bitmask_word)); in util_bitmask_create() 73 if(!bm->words) { in util_bitmask_create() 74 FREE(bm); in util_bitmask_create() 78 bm->size = UTIL_BITMASK_INITIAL_WORDS * UTIL_BITMASK_BITS_PER_WORD; in util_bitmask_create() 79 bm->filled = 0; in util_bitmask_create() 81 return bm; in util_bitmask_create() 89 util_bitmask_resize(struct util_bitmask *bm, in util_bitmask_resize() argument [all …]
|
/external/libvorbis/lib/ |
D | bitrate.c | 29 void vorbis_bitrate_init(vorbis_info *vi,bitrate_manager_state *bm){ in vorbis_bitrate_init() argument 33 memset(bm,0,sizeof(*bm)); in vorbis_bitrate_init() 39 bm->short_per_long=ci->blocksizes[1]/ci->blocksizes[0]; in vorbis_bitrate_init() 40 bm->managed=1; in vorbis_bitrate_init() 42 bm->avg_bitsper= rint(1.*bi->avg_rate*halfsamples/ratesamples); in vorbis_bitrate_init() 43 bm->min_bitsper= rint(1.*bi->min_rate*halfsamples/ratesamples); in vorbis_bitrate_init() 44 bm->max_bitsper= rint(1.*bi->max_rate*halfsamples/ratesamples); in vorbis_bitrate_init() 46 bm->avgfloat=PACKETBLOBS/2; in vorbis_bitrate_init() 52 bm->minmax_reservoir=desired_fill; in vorbis_bitrate_init() 53 bm->avg_reservoir=desired_fill; in vorbis_bitrate_init() [all …]
|
/external/skia/tests/ |
D | GifTest.cpp | 62 SkBitmap bm; in test_gif_data_no_colormap() local 64 data, size, &bm); in test_gif_data_no_colormap() 66 REPORTER_ASSERT(r, bm.width() == 1); in test_gif_data_no_colormap() 67 REPORTER_ASSERT(r, bm.height() == 1); in test_gif_data_no_colormap() 68 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data_no_colormap() 69 if (!(bm.empty())) { in test_gif_data_no_colormap() 70 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000); in test_gif_data_no_colormap() 74 SkBitmap bm; in test_gif_data() local 76 data, size, &bm); in test_gif_data() 78 REPORTER_ASSERT(r, bm.width() == 3); in test_gif_data() [all …]
|
D | DrawBitmapRectTest.cpp | 51 SkBitmap bm; in test_faulty_pixelref() local 52 bool installSuccess = SkInstallDiscardablePixelRef(SkNEW(FailureImageGenerator), &bm, pool); in test_faulty_pixelref() 70 canvas->drawBitmap(bm, 0, 0, &paint); in test_faulty_pixelref() 162 const SkBitmap& bm, bool shouldBeDrawn) { in assert_ifDrawnTo() argument 163 for (int y = 0; y < bm.height(); ++y) { in assert_ifDrawnTo() 164 for (int x = 0; x < bm.width(); ++x) { in assert_ifDrawnTo() 166 if (SK_ColorTRANSPARENT == *bm.getAddr32(x, y)) { in assert_ifDrawnTo() 172 if (SK_ColorTRANSPARENT != *bm.getAddr32(x, y)) { in assert_ifDrawnTo() 200 SkBitmap bm; in test_wacky_bitmapshader() local 201 bm.setConfig(SkBitmap::kARGB_8888_Config, width, height); in test_wacky_bitmapshader() [all …]
|
/external/valgrind/main/drd/ |
D | drd_bitmap.h | 342 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 …]
|
D | pub_drd_bitmap.h | 81 void DRD_(bm_delete)(struct bitmap* const bm); 82 void DRD_(bm_init)(struct bitmap* const bm); 83 void DRD_(bm_cleanup)(struct bitmap* const bm); 84 void DRD_(bm_access_range)(struct bitmap* const bm, 87 void DRD_(bm_access_range_load)(struct bitmap* const bm, 89 void DRD_(bm_access_load_1)(struct bitmap* const bm, const Addr a1); 90 void DRD_(bm_access_load_2)(struct bitmap* const bm, const Addr a1); 91 void DRD_(bm_access_load_4)(struct bitmap* const bm, const Addr a1); 92 void DRD_(bm_access_load_8)(struct bitmap* const bm, const Addr a1); 93 void DRD_(bm_access_range_store)(struct bitmap* const bm, [all …]
|
D | drd_bitmap.c | 73 struct bitmap* bm; in DRD_() local 79 bm = VG_(malloc)("drd.bitmap.bn.1", sizeof(*bm)); in DRD_() 80 DRD_(bm_init)(bm); in DRD_() 82 return bm; in DRD_() 85 void DRD_(bm_delete)(struct bitmap* const bm) in DRD_() 87 tl_assert(bm); in DRD_() 89 DRD_(bm_cleanup)(bm); in DRD_() 90 VG_(free)(bm); in DRD_() 94 void DRD_(bm_init)(struct bitmap* const bm) in DRD_() 98 tl_assert(bm); in DRD_() [all …]
|
/external/chromium_org/third_party/openssl/openssl/crypto/bio/ |
D | bss_mem.c | 148 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/openssl/crypto/bio/ |
D | bss_mem.c | 148 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/gm/ |
D | spritebitmap.cpp | 12 static void make_bm(SkBitmap* bm) { in make_bm() argument 13 bm->setConfig(SkBitmap::kARGB_8888_Config, 100, 100); in make_bm() 14 bm->allocPixels(); in make_bm() 15 bm->eraseColor(SK_ColorBLUE); in make_bm() 17 SkCanvas canvas(*bm); in make_bm() 24 static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip, in draw_2_bitmaps() argument 31 SkIntToScalar(bm.width()), in draw_2_bitmaps() 32 SkIntToScalar(bm.height())); in draw_2_bitmaps() 41 canvas->drawSprite(bm, dx, dy, &paint); in draw_2_bitmaps() 46 canvas->translate(SkIntToScalar(bm.width() + 20), 0); in draw_2_bitmaps() [all …]
|
D | bitmapmatrix.cpp | 34 SkBitmap bm; in onDraw() local 35 this->setupBitmap(&bm); in onDraw() 43 canvas->drawBitmapMatrix(bm, matrix, &paint); in onDraw() 46 canvas->translate(SkIntToScalar(bm.width() + 5), 0); in onDraw() 48 canvas->drawBitmapMatrix(bm, matrix, &paint); in onDraw() 51 canvas->translate(SkIntToScalar(bm.width()*2 + 5), 0); in onDraw() 53 matrix.setRotate(SkIntToScalar(45), SkIntToScalar(bm.width() / 2), in onDraw() 54 SkIntToScalar(bm.height() / 2)); in onDraw() 57 canvas->drawBitmapMatrix(bm, matrix, &paint); in onDraw() 61 canvas->translate(SkIntToScalar(bm.width() + 15), 0); in onDraw() [all …]
|
D | tablecolorfilter.cpp | 13 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(SK_ColorTRANSPARENT); 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(SK_ColorTRANSPARENT); in make_bm1() 39 SkCanvas canvas(*bm); in make_bm1() [all …]
|
D | bitmapfilters.cpp | 12 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 …]
|
D | bitmaprecttest.cpp | 11 static void make_bm(SkBitmap* bm) { in make_bm() argument 12 bm->setConfig(SkBitmap::kARGB_8888_Config, 60, 60); in make_bm() 13 bm->allocPixels(); in make_bm() 14 bm->eraseColor(0); in make_bm() 16 SkCanvas canvas(*bm); in make_bm() 38 SkBitmap bm; in test_bitmaprect() local 39 make_bm(&bm); in test_bitmaprect() 41 canvas->drawBitmap(bm, 150, 45, NULL); in test_bitmaprect() 46 canvas->drawBitmapRectToRect(bm, NULL, SkRect::MakeXYWH(100, 100, 128, 128), NULL); in test_bitmaprect() 50 canvas->drawBitmap(bm, -310, 45, NULL); in test_bitmaprect()
|
D | tinybitmap.cpp | 20 SkBitmap bm; in make_bitmap() local 21 bm.setConfig(SkBitmap::kIndex8_Config, 1, 1); in make_bitmap() 22 bm.allocPixels(ctable); in make_bitmap() 25 bm.lockPixels(); in make_bitmap() 26 *bm.getAddr8(0, 0) = 0; in make_bitmap() 27 bm.unlockPixels(); in make_bitmap() 28 return bm; in make_bitmap() 45 SkBitmap bm = make_bitmap(); in onDraw() local 47 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, in onDraw()
|
D | bitmapshader.cpp | 16 static void draw_bm(SkBitmap* bm) { in draw_bm() argument 20 bm->setConfig(SkBitmap::kARGB_8888_Config, 20, 20); in draw_bm() 21 bm->allocPixels(); in draw_bm() 22 bm->eraseColor(SK_ColorRED); in draw_bm() 24 SkCanvas canvas(*bm); in draw_bm() 28 static void draw_mask(SkBitmap* bm) { in draw_mask() argument 32 bm->setConfig(SkBitmap::kA8_Config, 20, 20); in draw_mask() 33 bm->allocPixels(); in draw_mask() 34 bm->eraseColor(SK_ColorTRANSPARENT); in draw_mask() 36 SkCanvas canvas(*bm); in draw_mask()
|
/external/skia/src/images/ |
D | SkImageDecoder_libgif.cpp | 27 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode) SK_OVERRIDE; 155 static bool error_return(const SkBitmap& bm, const char msg[]) { in error_return() argument 158 msg, bm.width(), bm.height(), bm.getPixels(), in error_return() 159 bm.getColorTable()); in error_return() 163 static void gif_warning(const SkBitmap& bm, const char msg[]) { in gif_warning() argument 166 msg, bm.width(), bm.height(), bm.getPixels(), in gif_warning() 167 bm.getColorTable()); in gif_warning() 188 bool SkGIFImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* bm, Mode mode) { argument 195 return error_return(*bm, "DGifOpen"); 216 return error_return(*bm, "DGifGetRecordType"); [all …]
|
D | SkImageEncoder.cpp | 15 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm, in encodeStream() argument 18 return this->onEncode(stream, bm, quality); in encodeStream() 21 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, in encodeFile() argument 25 return this->onEncode(&stream, bm, quality); in encodeFile() 28 SkData* SkImageEncoder::encodeData(const SkBitmap& bm, int quality) { in encodeData() argument 31 if (this->onEncode(&stream, bm, quality)) { in encodeData() 37 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap& bm, Type t, in EncodeFile() argument 40 return enc.get() && enc.get()->encodeFile(file, bm, quality); in EncodeFile() 43 bool SkImageEncoder::EncodeStream(SkWStream* stream, const SkBitmap& bm, Type t, in EncodeStream() argument 46 return enc.get() && enc.get()->encodeStream(stream, bm, quality); in EncodeStream() [all …]
|
D | SkMovie_gif.cpp | 127 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src, in copyInterlaceGroup() argument 135 uint32_t* dst = bm->getAddr32(imageDesc.Left, imageDesc.Top + row); in copyInterlaceGroup() 144 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument 147 int width = bm->width(); in blitInterlace() 148 int height = bm->height(); in blitInterlace() 163 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace() 166 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace() 169 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace() 171 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace() 175 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument [all …]
|
/external/chromium_org/third_party/skia/src/images/ |
D | SkImageDecoder_libgif.cpp | 27 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode) SK_OVERRIDE; 155 static bool error_return(const SkBitmap& bm, const char msg[]) { in error_return() argument 158 msg, bm.width(), bm.height(), bm.getPixels(), in error_return() 159 bm.getColorTable()); in error_return() 163 static void gif_warning(const SkBitmap& bm, const char msg[]) { in gif_warning() argument 166 msg, bm.width(), bm.height(), bm.getPixels(), in gif_warning() 167 bm.getColorTable()); in gif_warning() 188 bool SkGIFImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* bm, Mode mode) { argument 195 return error_return(*bm, "DGifOpen"); 216 return error_return(*bm, "DGifGetRecordType"); [all …]
|
D | SkImageEncoder.cpp | 15 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm, in encodeStream() argument 18 return this->onEncode(stream, bm, quality); in encodeStream() 21 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, in encodeFile() argument 25 return this->onEncode(&stream, bm, quality); in encodeFile() 28 SkData* SkImageEncoder::encodeData(const SkBitmap& bm, int quality) { in encodeData() argument 31 if (this->onEncode(&stream, bm, quality)) { in encodeData() 37 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap& bm, Type t, in EncodeFile() argument 40 return enc.get() && enc.get()->encodeFile(file, bm, quality); in EncodeFile() 43 bool SkImageEncoder::EncodeStream(SkWStream* stream, const SkBitmap& bm, Type t, in EncodeStream() argument 46 return enc.get() && enc.get()->encodeStream(stream, bm, quality); in EncodeStream() [all …]
|
D | SkMovie_gif.cpp | 127 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src, in copyInterlaceGroup() argument 135 uint32_t* dst = bm->getAddr32(imageDesc.Left, imageDesc.Top + row); in copyInterlaceGroup() 144 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument 147 int width = bm->width(); in blitInterlace() 148 int height = bm->height(); in blitInterlace() 163 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace() 166 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace() 169 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace() 171 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace() 175 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument [all …]
|
/external/skia/src/ports/ |
D | SkImageDecoder_CG.cpp | 50 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode); 66 bool SkImageDecoder_CG::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() argument 82 bm->setConfig(SkBitmap::kARGB_8888_Config, width, height); in onDecode() 87 if (!this->allocPixelRef(bm, NULL)) { in onDecode() 91 bm->lockPixels(); in onDecode() 92 bm->eraseColor(SK_ColorTRANSPARENT); in onDecode() 95 …CGContextRef cg = CGBitmapContextCreate(bm->getPixels(), width, height, 8, bm->rowBytes(), cs, BIT… in onDecode() 106 SkASSERT(SkBitmap::ComputeIsOpaque(*bm)); in onDecode() 107 bm->setAlphaType(kOpaque_SkAlphaType); in onDecode() 111 if (SkBitmap::ComputeIsOpaque(*bm)) { in onDecode() [all …]
|
/external/chromium_org/third_party/skia/src/ports/ |
D | SkImageDecoder_CG.cpp | 50 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode); 66 bool SkImageDecoder_CG::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() argument 82 bm->setConfig(SkBitmap::kARGB_8888_Config, width, height); in onDecode() 87 if (!this->allocPixelRef(bm, NULL)) { in onDecode() 91 bm->lockPixels(); in onDecode() 92 bm->eraseColor(SK_ColorTRANSPARENT); in onDecode() 95 …CGContextRef cg = CGBitmapContextCreate(bm->getPixels(), width, height, 8, bm->rowBytes(), cs, BIT… in onDecode() 106 SkASSERT(SkBitmap::ComputeIsOpaque(*bm)); in onDecode() 107 bm->setAlphaType(kOpaque_SkAlphaType); in onDecode() 111 if (SkBitmap::ComputeIsOpaque(*bm)) { in onDecode() [all …]
|