/third_party/ffmpeg/tests/fate/ |
H A D | bmp.mak | 1 FATE_BMP += fate-bmp-1bit 2 fate-bmp-1bit: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test1.bmp -pix_fmt rgb24 -vf scale 4 FATE_BMP += fate-bmp-4bit 5 fate-bmp-4bit: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test4.bmp -pix_fmt rgb24 -vf scale 7 FATE_BMP += fate-bmp-4bit-os2 8 fate-bmp [all...] |
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
H A D | libbitmask.c | 49 * routines that actually understand the layout of bmp->maskp[]. 58 /* Return the value (0 or 1) of bit n in bitmask bmp */ 59 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() 67 /* Set bit n in bitmask bmp to value v (0 or 1) */ 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 in _setbit() 86 struct bitmask *bmp; bitmask_alloc() local 101 bitmask_free(struct bitmask *bmp) bitmask_free() argument 126 bitmask_displayhex(char *buf, int buflen, const struct bitmask *bmp) bitmask_displayhex() argument 185 bitmask_displaylist(char *buf, int buflen, const struct bitmask *bmp) bitmask_displaylist() argument 220 bitmask_parsehex(const char *buf, struct bitmask *bmp) bitmask_parsehex() argument 299 bitmask_parselist(const char *buf, struct bitmask *bmp) bitmask_parselist() argument 361 bitmask_setall(struct bitmask *bmp) bitmask_setall() argument 370 bitmask_clearall(struct bitmask *bmp) bitmask_clearall() argument 383 bitmask_nbytes(struct bitmask *bmp) bitmask_nbytes() argument 389 bitmask_mask(struct bitmask *bmp) bitmask_mask() argument 399 bitmask_nbits(const struct bitmask *bmp) bitmask_nbits() argument 405 bitmask_weight(const struct bitmask *bmp) bitmask_weight() argument 420 bitmask_isbitset(const struct bitmask *bmp, unsigned int i) bitmask_isbitset() argument 426 bitmask_isbitclear(const struct bitmask *bmp, unsigned int i) bitmask_isbitclear() argument 432 bitmask_isallset(const struct bitmask *bmp) bitmask_isallset() argument 442 bitmask_isallclear(const struct bitmask *bmp) bitmask_isallclear() argument 456 bitmask_setbit(struct bitmask *bmp, unsigned int i) bitmask_setbit() argument 463 bitmask_clearbit(struct bitmask *bmp, unsigned int i) bitmask_clearbit() argument 518 bitmask_setrange(struct bitmask *bmp, unsigned int i, unsigned int j) bitmask_setrange() argument 528 bitmask_clearrange(struct bitmask *bmp, unsigned int i, unsigned int j) bitmask_clearrange() argument 538 bitmask_keeprange(struct bitmask *bmp, unsigned int i, unsigned int j) bitmask_keeprange() argument 629 bitmask_first(const struct bitmask *bmp) bitmask_first() argument 635 bitmask_next(const struct bitmask *bmp, unsigned int i) bitmask_next() argument 645 bitmask_rel_to_abs_pos(const struct bitmask *bmp, unsigned int n) bitmask_rel_to_abs_pos() argument 656 bitmask_abs_to_rel_pos(const struct bitmask *bmp, unsigned int n) bitmask_abs_to_rel_pos() argument 671 bitmask_last(const struct bitmask *bmp) bitmask_last() argument [all...] |
H A D | bitmask.h | 33 * bitmask_free(bmp): Free struct bitmask 37 * bitmask_displayhex(buf, len, bmp): Write hex word bmp to buf 38 * bitmask_displaylist(buf, len, bmp): Write decimal list bmp to buf 39 * bitmask_parsehex(buf, bmp): Parse hex words in buf to bmp 40 * bitmask_parselist(buf, bmp): Parse decimal list in buf to bmp 45 * bitmask_setall(bmp) [all...] |
H A D | meminfo.c | 92 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()
|
/third_party/skia/tests/ |
H A D | ShaderOpacityTest.cpp | 20 SkBitmap bmp; in test_bitmap() local 21 bmp.setInfo(info); in test_bitmap() 24 auto shader = bmp.makeShader(SkSamplingOptions()); in test_bitmap() 29 bmp.allocPixels(info); in test_bitmap() 32 shader = bmp.makeShader(SkSamplingOptions()); in test_bitmap() 37 bmp.setAlphaType(kOpaque_SkAlphaType); in test_bitmap() 38 shader = bmp.makeShader(SkSamplingOptions()); in test_bitmap() 43 bmp.setAlphaType(kPremul_SkAlphaType); in test_bitmap() 44 shader = bmp.makeShader(SkSamplingOptions()); in test_bitmap()
|
H A D | ReadPixelsTest.cpp | 98 static SkBitmap bmp; in make_src_image() local 99 if (bmp.isNull()) { in make_src_image() 100 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_image() 101 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); in make_src_image() 104 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel()); in make_src_image() 108 bmp.setImmutable(); in make_src_image() 110 return bmp.asImage(); in make_src_image() 333 SkBitmap bmp; in test_readpixels() local 334 init_bitmap(&bmp, srcRec in test_readpixels() [all...] |
H A D | GrAHardwareBufferTest.cpp | 60 static SkBitmap bmp; in make_src_bitmap() local 61 if (bmp.isNull()) { in make_src_bitmap() 62 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 63 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); in make_src_bitmap() 67 pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel()); in make_src_bitmap() 72 return bmp; in make_src_bitmap()
|
H A D | Skbug6653.cpp | 17 SkBitmap bmp; in read_pixels() local 18 bmp.allocN32Pixels(surface->width(), surface->height()); in read_pixels() 19 bmp.eraseColor(initColor); in read_pixels() 20 if (!surface->readPixels(bmp, 0, 0)) { in read_pixels() 23 return bmp; in read_pixels()
|
/third_party/libdrm/tests/etnaviv/ |
H A D | etnaviv_2d_test.c | 73 static void gen_cmd_stream(struct etna_cmd_stream *stream, struct etna_bo *bmp, const int width, const int height) in gen_cmd_stream() argument 87 etna_set_state_from_bo(stream, VIVS_DE_DEST_ADDRESS, bmp); in gen_cmd_stream() 180 struct etna_bo *bmp; in main() local 189 fprintf(stderr, "Usage: %s /dev/dri/<device> [<etna.bmp>]\n", argv[0]); in main() 246 bmp = etna_bo_new(dev, bmp_size, ETNA_BO_UNCACHED); in main() 247 if (!bmp) { in main() 252 memset(etna_bo_map(bmp), 0, bmp_size); in main() 262 gen_cmd_stream(stream, bmp, width, height); in main() 267 bmp_dump32(etna_bo_map(bmp), width, height, false, argv[2]); in main() 269 if (etna_check_image(etna_bo_map(bmp), widt in main() [all...] |
/third_party/skia/gm/ |
H A D | tallstretchedbitmaps.cpp | 89 SkBitmap bmp = fTallBmps[i].fBmp; variable 92 int itemHeight = bmp.height() / fTallBmps[i].fItemCnt; 94 bmp.width(), bmp.height()); 95 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight); 96 canvas->drawImageRect(bmp.asImage(), SkRect::Make(subRect), dstRect, 99 canvas->translate(SkIntToScalar(bmp.width() + 10), 0);
|
H A D | bitmaptiled.cpp | 42 SkBitmap bmp; in draw_tile_bitmap_with_fractional_offset() local 43 bmp.allocN32Pixels(vertical ? kBitmapShortEdge : kBitmapLongEdge, in draw_tile_bitmap_with_fractional_offset() 45 bmp.eraseColor(SK_ColorWHITE); in draw_tile_bitmap_with_fractional_offset() 51 canvas->drawImageRect(bmp.asImage(), in draw_tile_bitmap_with_fractional_offset() 57 canvas->drawImageRect(bmp.asImage(), in draw_tile_bitmap_with_fractional_offset()
|
H A D | rectangletexture.cpp | 65 SkBitmap bmp; in makeImagePixels() local 66 bmp.allocPixels(ii); in makeImagePixels() 68 SkCanvas canvas(bmp); in makeImagePixels() 79 return bmp; in makeImagePixels() 82 SkBitmap bmp; in makeImagePixels() local 83 bmp.allocPixels(ii); in makeImagePixels() 84 *bmp.getAddr32(0, 0) = 0xFF0000FF; in makeImagePixels() 85 *bmp.getAddr32(1, 0) = 0xFF00FF00; in makeImagePixels() 86 *bmp.getAddr32(0, 1) = 0xFFFF0000; in makeImagePixels() 87 *bmp in makeImagePixels() [all...] |
H A D | yuv420_odd_dim.cpp | 28 SkBitmap bmp; in make_image() local 29 bmp.allocPixels(SkImageInfo::Make(kImageDim, kRGBA_8888_SkColorType, kPremul_SkAlphaType)); in make_image() 33 for (int y = 0; y < bmp.height(); ++y) { in make_image() 34 for (int x = 0; x < bmp.width(); ++x) { in make_image() 35 *bmp.getAddr32(x, y) = random.nextU() | 0xFF000000; in make_image() 38 bmp.notifyPixelsChanged(); in make_image() 43 if (!SkJpegEncoder::Encode(&stream, bmp.pixmap(), options)) { in make_image()
|
H A D | swizzle.cpp | 27 SkBitmap bmp; in DEF_SIMPLE_GPU_GM() local 28 GetResourceAsBitmap("images/mandrill_512_q075.jpg", &bmp); in DEF_SIMPLE_GPU_GM() 29 auto view = std::get<0>(GrMakeCachedBitmapProxyView(rContext, bmp, GrMipmapped::kNo)); in DEF_SIMPLE_GPU_GM() 34 GrTextureEffect::Make(std::move(view), bmp.alphaType(), SkMatrix()); in DEF_SIMPLE_GPU_GM()
|
H A D | clippedbitmapshaders.cpp | 37 SkBitmap bmp; in create_bitmap() local 38 bmp.allocN32Pixels(2, 2); in create_bitmap() 39 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); in create_bitmap() 45 return bmp; in create_bitmap() 87 SkBitmap bmp = create_bitmap(); variable 93 paint.setShader(bmp.makeShader(fMode, fMode,
|
H A D | jpg_color_cube.cpp | 40 SkBitmap bmp; variable 41 bmp.allocN32Pixels(512, 512, true); 46 *bmp.getAddr32(bX + r, bY + g) = SkPackARGB32(255, 58 auto jpegData = SkEncodeBitmap(bmp, SkEncodedImageFormat::kJPEG, 100);
|
H A D | imagefromyuvtextures.cpp | 49 SkBitmap bmp; in CreatePlanes() local 50 if (!GetResourceAsBitmap(name, &bmp)) { in CreatePlanes() 53 if (bmp.colorType() != kRGBA_8888_SkColorType) { in CreatePlanes() 54 auto info = bmp.info().makeColorType(kRGBA_8888_SkColorType); in CreatePlanes() 57 SkAssertResult(bmp.readPixels(copy.pixmap())); in CreatePlanes() 58 bmp = copy; in CreatePlanes() 60 SkYUVAPixmapInfo pixmapInfo({bmp.dimensions(), in CreatePlanes() 81 auto rgba = *bmp.getAddr32(i, j); in CreatePlanes() 101 auto src = *bmp.getAddr32(x, y); in CreatePlanes()
|
H A D | fpcoordinateoverride.cpp | 83 SkBitmap bmp; in DEF_SIMPLE_GPU_GM_BG() local 84 GetResourceAsBitmap("images/mandrill_512_q075.jpg", &bmp); in DEF_SIMPLE_GPU_GM_BG() 85 auto view = std::get<0>(GrMakeCachedBitmapProxyView(rContext, bmp, GrMipmapped::kNo)); in DEF_SIMPLE_GPU_GM_BG() 90 GrTextureEffect::Make(std::move(view), bmp.alphaType(), SkMatrix()); in DEF_SIMPLE_GPU_GM_BG()
|
H A D | bigmatrix.cpp | 51 SkBitmap bmp; in DEF_SIMPLE_GM_BG() local 52 bmp.allocN32Pixels(2, 2); in DEF_SIMPLE_GM_BG() 53 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); in DEF_SIMPLE_GM_BG() 63 paint.setShader(bmp.makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in DEF_SIMPLE_GM_BG()
|
H A D | imageblurrepeatmode.cpp | 146 SkBitmap bmp; in DEF_SIMPLE_GM() local 147 bmp.allocN32Pixels(100, 20); in DEF_SIMPLE_GM() 148 bmp.eraseArea(SkIRect::MakeWH(100, 10), SK_ColorRED); in DEF_SIMPLE_GM() 149 bmp.eraseArea(SkIRect::MakeXYWH(0, 10, 100, 10), SK_ColorBLUE); in DEF_SIMPLE_GM() 151 auto img = bmp.asImage(); in DEF_SIMPLE_GM()
|
/third_party/skia/bench/ |
H A D | WritePixelsBench.cpp | 39 SkBitmap bmp; variable 40 bmp.allocPixels(info); 41 bmp.eraseColor(SK_ColorBLACK); 44 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0);
|
/third_party/skia/tools/fiddle/ |
H A D | examples.cpp | 30 SkBitmap bmp; in main() local 31 bmp.allocN32Pixels(example.fWidth, example.fHeight); in main() 32 bmp.eraseColor(SK_ColorWHITE); in main() 33 SkCanvas canvas(bmp); in main()
|
/third_party/skia/src/image/ |
H A D | SkRescaleAndReadPixels.cpp | 17 void SkRescaleAndReadPixels(SkBitmap bmp, in SkRescaleAndReadPixels() argument 72 if (rescaleGamma == SkSurface::RescaleGamma::kLinear && bmp.info().colorSpace() && in SkRescaleAndReadPixels() 73 !bmp.info().colorSpace()->gammaIsLinear()) { in SkRescaleAndReadPixels() 74 auto cs = bmp.info().colorSpace()->makeLinearGamma(); in SkRescaleAndReadPixels() 76 auto ii = SkImageInfo::Make(srcW, srcH, kRGBA_F16_SkColorType, bmp.info().alphaType(), in SkRescaleAndReadPixels() 83 linearSurf->getCanvas()->drawImage(bmp.asImage().get(), -srcX, -srcY, sampling, &paint); in SkRescaleAndReadPixels() 90 // MakeFromBitmap would trigger a copy if bmp is mutable. in SkRescaleAndReadPixels() 91 srcImage = SkImage::MakeFromRaster(bmp.pixmap(), nullptr, nullptr); in SkRescaleAndReadPixels()
|
/third_party/skia/docs/examples/ |
H A D | UnpremulBugs.cpp | 15 SkBitmap bmp; in REG_FIDDLE() local 16 bmp.allocPixels(info); in REG_FIDDLE() 17 fill(bmp, c, n); in REG_FIDDLE() 18 sk_sp<SkImage> img = bmp.asImage(); in REG_FIDDLE()
|
/third_party/skia/tools/skiaserve/ |
H A D | Request.cpp | 44 SkBitmap bmp; in writeCanvasToPng() local 45 bmp.allocPixels(canvas->imageInfo()); in writeCanvasToPng() 46 SkAssertResult(canvas->readPixels(bmp, 0, 0)); in writeCanvasToPng() 50 DrawCommand::WritePNG(bmp, buffer); in writeCanvasToPng() 279 SkBitmap bmp; in getPixel() local 280 bmp.allocPixels(this->getCanvas()->imageInfo().makeWH(1, 1)); in getPixel() 281 SkAssertResult(this->getCanvas()->readPixels(bmp, x, y)); in getPixel() 282 return bmp.getColor(0, 0); in getPixel()
|