Home
last modified time | relevance | path

Searched refs:bmp (Results 1 – 25 of 154) sorted by relevance

1234567

/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibbitmask.c59 static unsigned int _getbit(const struct bitmask *bmp, unsigned int n) in _getbit() argument
61 if (n < bmp->size) in _getbit()
62 return (bmp->maskp[n / bitsperlong] >> (n % bitsperlong)) & 1; in _getbit()
68 static void _setbit(struct bitmask *bmp, unsigned int n, unsigned int v) in _setbit() argument
70 if (n < bmp->size) { in _setbit()
72 bmp->maskp[n / bitsperlong] |= 1UL << (n % bitsperlong); in _setbit()
74 bmp->maskp[n / bitsperlong] &= in _setbit()
86 struct bitmask *bmp; in bitmask_alloc() local
88 bmp = malloc(sizeof(*bmp)); in bitmask_alloc()
89 if (bmp == 0) in bitmask_alloc()
[all …]
Dbitmask.h149 void bitmask_free(struct bitmask *bmp);
151 int bitmask_displayhex(char *buf, int len, const struct bitmask *bmp);
152 int bitmask_displaylist(char *buf, int len, const struct bitmask *bmp);
153 int bitmask_parsehex(const char *buf, struct bitmask *bmp);
154 int bitmask_parselist(const char *buf, struct bitmask *bmp);
157 struct bitmask *bitmask_setall(struct bitmask *bmp);
158 struct bitmask *bitmask_clearall(struct bitmask *bmp);
160 unsigned int bitmask_nbytes(struct bitmask *bmp);
161 unsigned long *bitmask_mask(struct bitmask *bmp);
163 unsigned int bitmask_nbits(const struct bitmask *bmp);
[all …]
Dmeminfo.c92 struct bitmask *bmp = NULL; in get_nmems() local
103 bmp = bitmask_alloc(mems_nbits); in get_nmems()
104 if (bmp == NULL) in get_nmems()
107 if (present_memmask(bmp)) { in get_nmems()
108 bitmask_free(bmp); in get_nmems()
113 if (bitmask_weight(bmp) <= 0) { in get_nmems()
114 bitmask_free(bmp); in get_nmems()
118 n = bitmask_last(bmp) + 1; in get_nmems()
119 bitmask_free(bmp); in get_nmems()
/external/libjpeg-turbo/
Dtjexampletest.in38 basename=`basename $image .bmp`
39 …ty 95 -dct fast -grayscale -outfile $OUTDIR/${basename}_GRAY_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
40 …ty 95 -dct fast -sample 2x2 -outfile $OUTDIR/${basename}_420_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
41 …ty 95 -dct fast -sample 2x1 -outfile $OUTDIR/${basename}_422_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
42 …ty 95 -dct fast -sample 1x1 -outfile $OUTDIR/${basename}_444_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
43 …95 -dct int -grayscale -outfile $OUTDIR/${basename}_GRAY_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp
44 …95 -dct int -sample 2x2 -outfile $OUTDIR/${basename}_420_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp
45 …95 -dct int -sample 2x1 -outfile $OUTDIR/${basename}_422_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp
46 …95 -dct int -sample 1x1 -outfile $OUTDIR/${basename}_444_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp
48 …runme $EXEDIR/djpeg -rgb -bmp -outfile $OUTDIR/${basename}_${samp}_default_djpeg.bmp $OUTDIR/${bas…
[all …]
Dtjbenchtest.java.in67 basename=`basename $image .bmp`
68 …ty 95 -dct fast -grayscale -outfile $OUTDIR/${basename}_GRAY_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
69 …ty 95 -dct fast -sample 2x2 -outfile $OUTDIR/${basename}_420_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
70 …ty 95 -dct fast -sample 2x1 -outfile $OUTDIR/${basename}_422_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
71 …ty 95 -dct fast -sample 1x1 -outfile $OUTDIR/${basename}_444_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
72 …95 -dct int -grayscale -outfile $OUTDIR/${basename}_GRAY_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp
73 …95 -dct int -sample 2x2 -outfile $OUTDIR/${basename}_420_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp
74 …95 -dct int -sample 2x1 -outfile $OUTDIR/${basename}_422_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp
75 …95 -dct int -sample 1x1 -outfile $OUTDIR/${basename}_444_accurate_cjpeg.jpg $IMGDIR/${basename}.bmp
77 …runme $EXEDIR/djpeg -rgb -bmp -outfile $OUTDIR/${basename}_${samp}_default_djpeg.bmp $OUTDIR/${bas…
[all …]
DMakefile.am102 tjbench_SOURCES = tjbench.c bmp.h bmp.c tjutil.h tjutil.c rdbmp.c rdppm.c \
398 ./djpeg -dct int -rgb565 -dither none -bmp -outfile testout_rgb_islow_565.bmp testout_rgb_islow.jpg
399 md5/md5cmp $(MD5_BMP_RGB_ISLOW_565) testout_rgb_islow_565.bmp
400 rm -f testout_rgb_islow_565.bmp
402 ./djpeg -dct int -rgb565 -bmp -outfile testout_rgb_islow_565D.bmp testout_rgb_islow.jpg
403 md5/md5cmp $(MD5_BMP_RGB_ISLOW_565D) testout_rgb_islow_565D.bmp
404 rm -f testout_rgb_islow_565D.bmp testout_rgb_islow.jpg
422 …./djpeg -dct int -nosmooth -rgb565 -dither none -bmp -outfile testout_422m_ifast_565.bmp testout_4…
423 md5/md5cmp $(MD5_BMP_422M_IFAST_565) testout_422m_ifast_565.bmp
424 rm -f testout_422m_ifast_565.bmp
[all …]
/external/skia/bench/
DWritePixelsBench.cpp54 SkBitmap bmp; in onDraw() local
55 bmp.allocN32Pixels(size.width(), size.height()); in onDraw()
56 canvas->readPixels(bmp, 0, 0); in onDraw()
58 SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), fColorType, fAlphaType); in onDraw()
61 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0); in onDraw()
/external/skia/gm/
Dtosrgb_colorfilter.cpp15 SkBitmap bmp; variable
16 bmp.allocN32Pixels(3, 2);
17 SkPMColor* pixels = reinterpret_cast<SkPMColor*>(bmp.getPixels());
26 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 10, 50, 50), nullptr);
48 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 10, 50, 50), &paint);
52 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 70, 50, 50), &paint);
56 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 70, 50, 50), &paint);
Dtallstretchedbitmaps.cpp82 SkBitmap bmp = fTallBmps[i].fBmp; in onDraw() local
85 int itemHeight = bmp.height() / fTallBmps[i].fItemCnt; in onDraw()
87 bmp.width(), bmp.height()); in onDraw()
88 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight); in onDraw()
91 canvas->drawBitmapRect(bmp, subRect, dstRect, &paint); in onDraw()
92 canvas->translate(SkIntToScalar(bmp.width() + 10), 0); in onDraw()
Dclippedbitmapshaders.cpp29 SkBitmap bmp; in create_bitmap() local
30 bmp.allocN32Pixels(2, 2); in create_bitmap()
31 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); in create_bitmap()
37 return bmp; in create_bitmap()
80 SkBitmap bmp = create_bitmap(); in onDraw() local
86 paint.setShader(SkShader::MakeBitmapShader(bmp, fMode, fMode, &s)); in onDraw()
Dbitmaptiled.cpp44 SkBitmap bmp; in draw_tile_bitmap_with_fractional_offset() local
45 bmp.allocN32Pixels(vertical ? kBitmapShortEdge : kBitmapLongEdge, in draw_tile_bitmap_with_fractional_offset()
47 bmp.eraseColor(SK_ColorWHITE); in draw_tile_bitmap_with_fractional_offset()
53 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(0.0f, (kTileSize - 50) + offset, in draw_tile_bitmap_with_fractional_offset()
57 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH((kTileSize - 50) + offset, 0.0f, in draw_tile_bitmap_with_fractional_offset()
/external/skqp/bench/
DWritePixelsBench.cpp54 SkBitmap bmp; in onDraw() local
55 bmp.allocN32Pixels(size.width(), size.height()); in onDraw()
56 canvas->readPixels(bmp, 0, 0); in onDraw()
58 SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), fColorType, fAlphaType); in onDraw()
61 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0); in onDraw()
/external/skqp/gm/
Dtosrgb_colorfilter.cpp15 SkBitmap bmp; variable
16 bmp.allocN32Pixels(3, 2);
17 SkPMColor* pixels = reinterpret_cast<SkPMColor*>(bmp.getPixels());
26 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 10, 50, 50), nullptr);
48 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 10, 50, 50), &paint);
52 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 70, 50, 50), &paint);
56 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 70, 50, 50), &paint);
Dtallstretchedbitmaps.cpp82 SkBitmap bmp = fTallBmps[i].fBmp; in onDraw() local
85 int itemHeight = bmp.height() / fTallBmps[i].fItemCnt; in onDraw()
87 bmp.width(), bmp.height()); in onDraw()
88 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight); in onDraw()
91 canvas->drawBitmapRect(bmp, subRect, dstRect, &paint); in onDraw()
92 canvas->translate(SkIntToScalar(bmp.width() + 10), 0); in onDraw()
Dclippedbitmapshaders.cpp29 SkBitmap bmp; in create_bitmap() local
30 bmp.allocN32Pixels(2, 2); in create_bitmap()
31 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); in create_bitmap()
37 return bmp; in create_bitmap()
80 SkBitmap bmp = create_bitmap(); in onDraw() local
86 paint.setShader(SkShader::MakeBitmapShader(bmp, fMode, fMode, &s)); in onDraw()
Dbitmaptiled.cpp44 SkBitmap bmp; in draw_tile_bitmap_with_fractional_offset() local
45 bmp.allocN32Pixels(vertical ? kBitmapShortEdge : kBitmapLongEdge, in draw_tile_bitmap_with_fractional_offset()
47 bmp.eraseColor(SK_ColorWHITE); in draw_tile_bitmap_with_fractional_offset()
53 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(0.0f, (kTileSize - 50) + offset, in draw_tile_bitmap_with_fractional_offset()
57 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH((kTileSize - 50) + offset, 0.0f, in draw_tile_bitmap_with_fractional_offset()
/external/skia/tests/
DShaderOpacityTest.cpp17 SkBitmap bmp; in test_bitmap() local
18 bmp.setInfo(info); in test_bitmap()
21 auto shader = SkShader::MakeBitmapShader(bmp, in test_bitmap()
27 bmp.allocPixels(info); in test_bitmap()
30 shader = SkShader::MakeBitmapShader(bmp, in test_bitmap()
36 bmp.setAlphaType(kOpaque_SkAlphaType); in test_bitmap()
37 shader = SkShader::MakeBitmapShader(bmp, in test_bitmap()
43 bmp.setAlphaType(kPremul_SkAlphaType); in test_bitmap()
44 shader = SkShader::MakeBitmapShader(bmp, in test_bitmap()
DReadPixelsTest.cpp102 static SkBitmap bmp; in make_src_bitmap() local
103 if (bmp.isNull()) { in make_src_bitmap()
104 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
105 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); in make_src_bitmap()
108 …SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixe… in make_src_bitmap()
113 return bmp; in make_src_bitmap()
351 SkBitmap bmp; in test_readpixels() local
352 init_bitmap(&bmp, srcRect, bmi, in test_readpixels()
357 bool startsWithPixels = !bmp.isNull(); in test_readpixels()
359 fill_dst_bmp_with_init_data(&bmp); in test_readpixels()
[all …]
DPremulAlphaRoundTripTest.cpp49 SkBitmap bmp; in fill_surface() local
50 bmp.allocN32Pixels(256, 256); in fill_surface()
53 uint32_t* pixels = bmp.getAddr32(0, a); in fill_surface()
59 const SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), in fill_surface()
61 surf->writePixels({info, bmp.getPixels(), bmp.rowBytes()}, 0, 0); in fill_surface()
/external/skqp/tests/
DShaderOpacityTest.cpp17 SkBitmap bmp; in test_bitmap() local
18 bmp.setInfo(info); in test_bitmap()
21 auto shader = SkShader::MakeBitmapShader(bmp, in test_bitmap()
27 bmp.allocPixels(info); in test_bitmap()
30 shader = SkShader::MakeBitmapShader(bmp, in test_bitmap()
36 bmp.setAlphaType(kOpaque_SkAlphaType); in test_bitmap()
37 shader = SkShader::MakeBitmapShader(bmp, in test_bitmap()
43 bmp.setAlphaType(kPremul_SkAlphaType); in test_bitmap()
44 shader = SkShader::MakeBitmapShader(bmp, in test_bitmap()
DReadPixelsTest.cpp102 static SkBitmap bmp; in make_src_bitmap() local
103 if (bmp.isNull()) { in make_src_bitmap()
104 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
105 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); in make_src_bitmap()
108 …SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixe… in make_src_bitmap()
113 return bmp; in make_src_bitmap()
351 SkBitmap bmp; in test_readpixels() local
352 init_bitmap(&bmp, srcRect, bmi, in test_readpixels()
357 bool startsWithPixels = !bmp.isNull(); in test_readpixels()
359 fill_dst_bmp_with_init_data(&bmp); in test_readpixels()
[all …]
DPremulAlphaRoundTripTest.cpp49 SkBitmap bmp; in fill_canvas() local
50 bmp.allocN32Pixels(256, 256); in fill_canvas()
53 uint32_t* pixels = bmp.getAddr32(0, a); in fill_canvas()
59 const SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), in fill_canvas()
61 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0); in fill_canvas()
/external/libjpeg-turbo/cmakescripts/
Dtestclean.cmake3 *_GRAY_*.bmp
8 *_420_*.bmp
13 *_422_*.bmp
18 *_444_*.bmp
23 *_440_*.bmp
28 *_411_*.bmp
/external/libdrm/tests/etnaviv/
Detnaviv_2d_test.c77 static void gen_cmd_stream(struct etna_cmd_stream *stream, struct etna_bo *bmp, const int width, co… in gen_cmd_stream() argument
91 etna_set_state_from_bo(stream, VIVS_DE_DEST_ADDRESS, bmp); in gen_cmd_stream()
163 struct etna_bo *bmp; in main() local
202 bmp = etna_bo_new(dev, bmp_size, ETNA_BO_UNCACHED); in main()
203 if (!bmp) { in main()
207 memset(etna_bo_map(bmp), 0, bmp_size); in main()
216 gen_cmd_stream(stream, bmp, width, height); in main()
220 bmp_dump32(etna_bo_map(bmp), width, height, false, "/tmp/etna.bmp"); in main()
225 etna_bo_del(bmp); in main()
/external/skia/tools/skiaserve/
DRequest.cpp47 SkBitmap* bmp = new SkBitmap(); in getBitmapFromCanvas() local
48 if (!bmp->tryAllocPixels(canvas->imageInfo()) || !canvas->readPixels(*bmp, 0, 0)) { in getBitmapFromCanvas()
50 delete bmp; in getBitmapFromCanvas()
53 return bmp; in getBitmapFromCanvas()
58 std::unique_ptr<SkBitmap> bmp(this->getBitmapFromCanvas(canvas)); in writeCanvasToPng() local
59 SkASSERT(bmp); in writeCanvasToPng()
62 sk_sp<SkData> encodedBitmap = sk_tools::encode_bitmap_for_png(*bmp); in writeCanvasToPng()
67 SkDrawCommand::WritePNG(encodedBitmap->bytes(), bmp->width(), bmp->height(), in writeCanvasToPng()

1234567