/third_party/ffmpeg/libavcodec/ |
H A D | xfaceenc.c | 35 uint8_t bitmap[XFACE_PIXELS]; ///< image used internally for decoding member 40 static int all_same(char *bitmap, int w, int h) in all_same() argument 45 val = *bitmap; in all_same() 47 row = bitmap; in all_same() 52 bitmap += XFACE_WIDTH; in all_same() 57 static int all_black(char *bitmap, int w, int h) in all_black() argument 62 return (all_black(bitmap, w, h) && all_black(bitmap + w, w, h) && in all_black() 63 all_black(bitmap + XFACE_WIDTH * h, w, h) && in all_black() 64 all_black(bitmap in all_black() 72 all_white(char *bitmap, int w, int h) all_white() argument 90 push_greys(ProbRangesQueue *pq, char *bitmap, int w, int h) push_greys() argument 109 encode_block(char *bitmap, int w, int h, int level, ProbRangesQueue *pq) encode_block() argument [all...] |
H A D | xfacedec.c | 52 static void pop_greys(BigInt *b, char *bitmap, int w, int h) in pop_greys() argument 57 pop_greys(b, bitmap, w, h); in pop_greys() 58 pop_greys(b, bitmap + w, w, h); in pop_greys() 59 pop_greys(b, bitmap + XFACE_WIDTH * h, w, h); in pop_greys() 60 pop_greys(b, bitmap + XFACE_WIDTH * h + w, w, h); in pop_greys() 63 if (w & 1) bitmap[0] = 1; in pop_greys() 64 if (w & 2) bitmap[1] = 1; in pop_greys() 65 if (w & 4) bitmap[XFACE_WIDTH] = 1; in pop_greys() 66 if (w & 8) bitmap[XFACE_WIDTH + 1] = 1; in pop_greys() 70 static void decode_block(BigInt *b, char *bitmap, in argument 91 uint8_t bitmap[XFACE_PIXELS]; ///< image used internally for decoding global() member [all...] |
/third_party/skia/gm/ |
H A D | overdrawcolorfilter.cpp | 22 static inline void set_bitmap(SkBitmap* bitmap, uint8_t alpha) { in set_bitmap() argument 23 for (int y = 0; y < bitmap->height(); y++) { in set_bitmap() 24 for (int x = 0; x < bitmap->width(); x++) { in set_bitmap() 25 uint8_t* addr = bitmap->getAddr8(x, y); in set_bitmap() 30 bitmap->notifyPixelsChanged(); in set_bitmap() 50 SkBitmap bitmap; variable 51 bitmap.allocPixels(info); 52 set_bitmap(&bitmap, 0); 53 canvas->drawImage(bitmap.asImage(), 0, 0, sampling, &paint); 54 set_bitmap(&bitmap, [all...] |
H A D | bitmappremul.cpp | 23 * This GM checks that bitmap pixels are unpremultiplied before being exported 27 * This tests both the ARGB4444 and ARGB8888 bitmap configurations. 32 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { in init_bitmap() argument 33 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct, in init_bitmap() 35 bitmap->eraseColor(SK_ColorWHITE); in init_bitmap() 39 SkBitmap bitmap; in make_argb8888_gradient() local 40 init_bitmap(kN32_SkColorType, &bitmap); in make_argb8888_gradient() 42 uint32_t* dst = bitmap.getAddr32(0, y); in make_argb8888_gradient() 47 return bitmap.asImage(); in make_argb8888_gradient() 51 SkBitmap bitmap; in make_argb4444_gradient() local 61 SkBitmap bitmap; make_argb8888_stripes() local 80 SkBitmap bitmap; make_argb4444_stripes() local [all...] |
/third_party/skia/third_party/externals/freetype/src/smooth/ |
H A D | ftsmooth.c | 130 FT_Bitmap* bitmap ) in ft_smooth_raster_lcd() 149 params.clip_box.xMax = bitmap->width; in ft_smooth_raster_lcd() 150 params.clip_box.yMax = bitmap->rows; in ft_smooth_raster_lcd() 152 if ( bitmap->pitch < 0 ) in ft_smooth_raster_lcd() 153 target.origin = bitmap->buffer; in ft_smooth_raster_lcd() 155 target.origin = bitmap->buffer in ft_smooth_raster_lcd() 156 + ( bitmap->rows - 1 ) * (unsigned int)bitmap->pitch; in ft_smooth_raster_lcd() 158 target.pitch = bitmap->pitch; in ft_smooth_raster_lcd() 197 FT_Bitmap* bitmap ) in ft_smooth_raster_lcdv() 435 FT_Bitmap* bitmap = &slot->bitmap; ft_smooth_render() local [all...] |
/third_party/skia/src/ports/ |
H A D | SkImageEncoder_WIC.cpp | 53 SkBitmap bitmap; in SkEncodeImageWithWIC() local 54 if (!bitmap.tryAllocPixels(bitmapOrig.info().makeColorType(kBGRA_8888_SkColorType)) || in SkEncodeImageWithWIC() 55 !bitmapOrig.readPixels(bitmap.info(), bitmap.getPixels(), bitmap.rowBytes(), 0, 0)) in SkEncodeImageWithWIC() 61 if (kPremul_SkAlphaType == bitmap.alphaType()) { in SkEncodeImageWithWIC() 62 uint8_t* pixels = reinterpret_cast<uint8_t*>(bitmap.getPixels()); in SkEncodeImageWithWIC() 63 for (int y = 0; y < bitmap.height(); ++y) { in SkEncodeImageWithWIC() 64 for (int x = 0; x < bitmap.width(); ++x) { in SkEncodeImageWithWIC() 65 uint8_t* bytes = pixels + y * bitmap in SkEncodeImageWithWIC() [all...] |
/third_party/node/deps/openssl/openssl/ssl/record/ |
H A D | dtls1_bitmap.c | 38 int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap) in dtls1_record_replay_check() argument 44 cmp = satsub64be(seq, bitmap->max_seq_num); in dtls1_record_replay_check() 50 if (shift >= sizeof(bitmap->map) * 8) in dtls1_record_replay_check() 52 else if (bitmap->map & (1UL << shift)) in dtls1_record_replay_check() 59 void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap) in dtls1_record_bitmap_update() argument 65 cmp = satsub64be(seq, bitmap->max_seq_num); in dtls1_record_bitmap_update() 68 if (shift < sizeof(bitmap->map) * 8) in dtls1_record_bitmap_update() 69 bitmap->map <<= shift, bitmap->map |= 1UL; in dtls1_record_bitmap_update() 71 bitmap in dtls1_record_bitmap_update() [all...] |
/third_party/openssl/ssl/record/ |
H A D | dtls1_bitmap.c | 38 int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap) in dtls1_record_replay_check() argument 44 cmp = satsub64be(seq, bitmap->max_seq_num); in dtls1_record_replay_check() 50 if (shift >= sizeof(bitmap->map) * 8) in dtls1_record_replay_check() 52 else if (bitmap->map & (1UL << shift)) in dtls1_record_replay_check() 59 void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap) in dtls1_record_bitmap_update() argument 65 cmp = satsub64be(seq, bitmap->max_seq_num); in dtls1_record_bitmap_update() 68 if (shift < sizeof(bitmap->map) * 8) in dtls1_record_bitmap_update() 69 bitmap->map <<= shift, bitmap->map |= 1UL; in dtls1_record_bitmap_update() 71 bitmap in dtls1_record_bitmap_update() [all...] |
/third_party/skia/docs/examples/ |
H A D | Bitmap_reset.cpp | 7 SkBitmap bitmap; in REG_FIDDLE() local 8 bitmap.setInfo(SkImageInfo::Make(1, 1, kRGBA_8888_SkColorType, kOpaque_SkAlphaType)); in REG_FIDDLE() 9 bitmap.allocPixels(); in REG_FIDDLE() 10 SkDebugf("width:%d height:%d isNull:%s\n", bitmap.width(), bitmap.height(), in REG_FIDDLE() 11 bitmap.isNull() ? "true" : "false"); in REG_FIDDLE() 12 bitmap.reset(); in REG_FIDDLE() 13 SkDebugf("width:%d height:%d isNull:%s\n", bitmap.width(), bitmap.height(), in REG_FIDDLE() 14 bitmap in REG_FIDDLE() [all...] |
H A D | Bitmap_notifyPixelsChanged.cpp | 7 SkBitmap bitmap; in REG_FIDDLE() local 8 bitmap.setInfo(SkImageInfo::Make(1, 1, kRGBA_8888_SkColorType, kOpaque_SkAlphaType)); in REG_FIDDLE() 9 bitmap.allocPixels(); in REG_FIDDLE() 10 bitmap.eraseColor(SK_ColorRED); in REG_FIDDLE() 12 canvas->drawImage(bitmap.asImage(), 0, 0); in REG_FIDDLE() 13 *(SkPMColor*) bitmap.getPixels() = SkPreMultiplyColor(SK_ColorBLUE); in REG_FIDDLE() 14 canvas->drawImage(bitmap.asImage(), 2, 0); in REG_FIDDLE() 15 bitmap.notifyPixelsChanged(); in REG_FIDDLE() 16 *(SkPMColor*) bitmap.getPixels() = SkPreMultiplyColor(SK_ColorGREEN); in REG_FIDDLE() 17 canvas->drawImage(bitmap in REG_FIDDLE() [all...] |
H A D | Bitmap_isOpaque.cpp | 9 SkBitmap bitmap; in REG_FIDDLE() local 10 bitmap.setInfo(SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType)); in REG_FIDDLE() 12 bitmap.allocPixels(); in REG_FIDDLE() 13 bitmap.eraseColor(0x00000000); in REG_FIDDLE() 14 SkDebugf("isOpaque: %s\n", bitmap.isOpaque() ? "true" : "false"); in REG_FIDDLE() 15 bitmap.eraseColor(0xFFFFFFFF); in REG_FIDDLE() 16 SkDebugf("isOpaque: %s\n", bitmap.isOpaque() ? "true" : "false"); in REG_FIDDLE() 17 bitmap.setInfo(bitmap.info().makeAlphaType(kOpaque_SkAlphaType)); in REG_FIDDLE()
|
H A D | Bitmap_ComputeIsOpaque.cpp | 7 SkBitmap bitmap; in REG_FIDDLE() local 8 bitmap.setInfo(SkImageInfo::Make(2, 2, kN32_SkColorType, kPremul_SkAlphaType)); in REG_FIDDLE() 10 bitmap.allocPixels(); in REG_FIDDLE() 11 bitmap.eraseColor(0x00000000); in REG_FIDDLE() 12 SkDebugf("computeIsOpaque: %s\n", SkBitmap::ComputeIsOpaque(bitmap) ? "true" : "false"); in REG_FIDDLE() 13 bitmap.eraseColor(0xFFFFFFFF); in REG_FIDDLE() 14 SkDebugf("computeIsOpaque: %s\n", SkBitmap::ComputeIsOpaque(bitmap) ? "true" : "false"); in REG_FIDDLE() 15 bitmap.setInfo(bitmap.info().makeAlphaType(kOpaque_SkAlphaType)); in REG_FIDDLE()
|
H A D | Bitmap_tryAllocN32Pixels.cpp | 7 SkBitmap bitmap; in REG_FIDDLE() local 8 if (bitmap.tryAllocN32Pixels(80, 80)) { in REG_FIDDLE() 9 bitmap.eraseColor(SK_ColorTRANSPARENT); in REG_FIDDLE() 10 bitmap.erase(0x7f3f7fff, SkIRect::MakeWH(50, 30)); in REG_FIDDLE() 11 bitmap.erase(0x3f7fff3f, SkIRect::MakeXYWH(20, 10, 50, 30)); in REG_FIDDLE() 12 bitmap.erase(0x5fff3f7f, SkIRect::MakeXYWH(40, 20, 50, 30)); in REG_FIDDLE() 13 canvas->drawImage(bitmap.asImage(), 0, 0); in REG_FIDDLE() 15 canvas->drawImage(bitmap.asImage(), x, 70); in REG_FIDDLE()
|
H A D | Bitmap_erase.cpp | 7 SkBitmap bitmap; in REG_FIDDLE() local 8 bitmap.allocPixels(SkImageInfo::MakeN32(2, 2, kPremul_SkAlphaType)); in REG_FIDDLE() 9 bitmap.erase(0x7fff7f3f, SkIRect::MakeWH(1, 1)); in REG_FIDDLE() 10 bitmap.erase(0x7f7f3fff, SkIRect::MakeXYWH(0, 1, 1, 1)); in REG_FIDDLE() 11 bitmap.erase(0x7f3fff7f, SkIRect::MakeXYWH(1, 0, 1, 1)); in REG_FIDDLE() 12 bitmap.erase(0x7f1fbf5f, SkIRect::MakeXYWH(1, 1, 1, 1)); in REG_FIDDLE() 14 canvas->drawImage(bitmap.asImage(), 0, 0); in REG_FIDDLE() 15 canvas->drawImage(bitmap.asImage(), .5f, .5f); in REG_FIDDLE()
|
H A D | Bitmap_tryAllocPixels_3.cpp | 8 SkBitmap bitmap; in REG_FIDDLE() local 9 bitmap.installPixels(SkImageInfo::Make(5, 1, kGray_8_SkColorType, kOpaque_SkAlphaType), set1, 5); in REG_FIDDLE() 11 canvas->drawImage(bitmap.asImage(), 0, 0); in REG_FIDDLE() 12 if (bitmap.tryAllocPixels()) { in REG_FIDDLE() 13 bitmap.eraseColor(SK_ColorBLACK); in REG_FIDDLE() 14 canvas->drawImage(bitmap.asImage(), 8, 0); in REG_FIDDLE() 15 bitmap.setPixels(set1); in REG_FIDDLE() 16 canvas->drawImage(bitmap.asImage(), 16, 0); in REG_FIDDLE()
|
H A D | gpu8888diff.cpp | 7 SkBitmap bitmap; in REG_FIDDLE() local 10 bitmap.allocPixels(imageInfo); in REG_FIDDLE() 11 SkCanvas offscreen(bitmap); in REG_FIDDLE() 13 canvas->drawImage(bitmap.asImage(), 0, 0); in REG_FIDDLE() 15 canvas->drawImage(bitmap.asImage(), 2, 2); in REG_FIDDLE() 24 if (bitmap.writePixels(redPixmap, 0, 0)) { in REG_FIDDLE() 25 canvas->drawImage(bitmap.asImage(), 4, 4); in REG_FIDDLE() 28 if (bitmap.writePixels(bluePixmap, 0, 0)) { in REG_FIDDLE() 29 canvas->drawImage(bitmap.asImage(), 6, 6); in REG_FIDDLE()
|
H A D | Bitmap_getPixels.cpp | 7 SkBitmap bitmap; in REG_FIDDLE() local 8 bitmap.setInfo(SkImageInfo::MakeN32(4, 4, kPremul_SkAlphaType)); in REG_FIDDLE() 9 bitmap.allocPixels(); in REG_FIDDLE() 10 bitmap.eraseColor(0x00000000); in REG_FIDDLE() 11 void* baseAddr = bitmap.getPixels(); in REG_FIDDLE() 13 SkDebugf("bitmap.getColor(0, 1) %c= 0x00000000\n", in REG_FIDDLE() 14 bitmap.getColor(0, 1) == 0x00000000 ? '=' : '!'); in REG_FIDDLE() 15 SkDebugf("bitmap.getColor(0, 0) %c= 0xFFFFFFFF\n", in REG_FIDDLE() 16 bitmap.getColor(0, 0) == 0xFFFFFFFF ? '=' : '!'); in REG_FIDDLE()
|
/third_party/mesa3d/src/gallium/frontends/hgl/ |
H A D | bitmap_wrapper.cpp | 54 get_bitmap_size(const Bitmap* bitmap, int32* width, int32* height) in get_bitmap_size() argument 56 BBitmap *bb = (BBitmap*)bitmap; in get_bitmap_size() 67 get_bitmap_color_space(const Bitmap* bitmap) in get_bitmap_color_space() argument 69 BBitmap *bb = (BBitmap*)bitmap; in get_bitmap_color_space() 77 copy_bitmap_bits(const Bitmap* bitmap, void* data, int32 length) in copy_bitmap_bits() argument 79 BBitmap *bb = (BBitmap*)bitmap; in copy_bitmap_bits() 81 // We assume the data is 1:1 the format of the bitmap in copy_bitmap_bits() 88 import_bitmap_bits(const Bitmap* bitmap, void* data, int32 length, in import_bitmap_bits() argument 91 BBitmap *bb = (BBitmap*)bitmap; in import_bitmap_bits() 100 delete_bitmap(Bitmap* bitmap) in delete_bitmap() argument 108 get_bitmap_bytes_per_row(const Bitmap* bitmap) get_bitmap_bytes_per_row() argument 118 get_bitmap_bits_length(const Bitmap* bitmap) get_bitmap_bits_length() argument 128 dump_bitmap(const Bitmap* bitmap) dump_bitmap() argument [all...] |
H A D | bitmap_wrapper.h | 43 void delete_bitmap(Bitmap* bitmap); 45 void copy_bitmap_bits(const Bitmap* bitmap, void* data, int32 length); 46 void import_bitmap_bits(const Bitmap* bitmap, void* data, int32 length, 49 void get_bitmap_size(const Bitmap* bitmap, int32* width, int32* height); 50 color_space get_bitmap_color_space(const Bitmap* bitmap); 51 int32 get_bitmap_bytes_per_row(const Bitmap* bitmap); 52 int32 get_bitmap_bits_length(const Bitmap* bitmap); 54 void dump_bitmap(const Bitmap* bitmap);
|
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | bitmap.h | 7 /* Every bitmap gets its own type */ 10 static inline int test_bit(unsigned int nr, unsigned long *bitmap) in test_bit() argument 14 return (bitmap[offset] >> bit) & 1; in test_bit() 17 static inline void set_bit(unsigned int nr, unsigned long *bitmap) in set_bit() argument 21 bitmap[offset] |= 1UL << bit; in set_bit() 24 static inline void clear_bit(unsigned int nr, unsigned long *bitmap) in clear_bit() argument 28 bitmap[offset] &= ~(1UL << bit); in clear_bit() 31 static inline int test_and_set_bit(unsigned int nr, unsigned long *bitmap) in test_and_set_bit() argument 35 unsigned long old = bitmap[offset]; in test_and_set_bit() 37 bitmap[offse in test_and_set_bit() 41 test_and_clear_bit(unsigned int nr, unsigned long *bitmap) test_and_clear_bit() argument [all...] |
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftbitmap.c | 33 #define FT_COMPONENT bitmap 133 /* take care of bitmap flow */ in FT_EXPORT_DEF() 155 /* Enlarge `bitmap' horizontally and vertically by `xpixels' */ 160 FT_Bitmap* bitmap, in ft_bitmap_assure_buffer() 172 width = bitmap->width; in ft_bitmap_assure_buffer() 173 height = bitmap->rows; in ft_bitmap_assure_buffer() 174 pitch = (unsigned int)FT_ABS( bitmap->pitch ); in ft_bitmap_assure_buffer() 176 switch ( bitmap->pixel_mode ) in ft_bitmap_assure_buffer() 210 FT_Byte* line = bitmap->buffer + ( bit_last >> 3 ); in ft_bitmap_assure_buffer() 211 FT_Byte* end = bitmap in ft_bitmap_assure_buffer() 159 ft_bitmap_assure_buffer( FT_Memory memory, FT_Bitmap* bitmap, FT_UInt xpixels, FT_UInt ypixels ) ft_bitmap_assure_buffer() argument 1135 FT_Bitmap bitmap; FT_EXPORT_DEF() local [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_cb_bitmap.c | 65 * glBitmaps are drawn as textured quads. The user's bitmap pattern 70 * Note that we actually store the inverse image of the bitmap to 78 * The bitmap cache attempts to accumulate multiple glBitmap calls in a 95 * Copy user-provide bitmap bits into texture buffer, expanding 106 const GLubyte *bitmap, in unpack_bitmap() 111 _mesa_expand_bitmap(width, height, unpack, bitmap, in unpack_bitmap() 117 * Create a texture which represents a bitmap image. 122 const GLubyte *bitmap) in make_bitmap_texture() 131 bitmap = _mesa_map_pbo_source(ctx, unpack, bitmap); in make_bitmap_texture() 103 unpack_bitmap(struct st_context *st, GLint px, GLint py, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap, ubyte *destBuffer, uint destStride) unpack_bitmap() argument 120 make_bitmap_texture(struct gl_context *ctx, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap) make_bitmap_texture() argument 600 st_Bitmap(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte *bitmap) st_Bitmap() argument [all...] |
/third_party/skia/samplecode/ |
H A D | SampleWritePixels.cpp | 17 static void create_bitmap(SkBitmap* bitmap) { in create_bitmap() argument 20 bitmap->allocN32Pixels(W, H); in create_bitmap() 22 SkCanvas canvas(*bitmap); in create_bitmap() 38 SkBitmap bitmap; variable 39 create_bitmap(&bitmap); variable 40 int x = bitmap.width() / 2; 41 int y = bitmap.height() / 2; 44 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); 48 canvas->writePixels(bitmap, 0, 0);
|
/third_party/skia/src/pdf/ |
H A D | SkPDFShader.cpp | 32 SkBitmap bitmap; in to_bitmap() local 33 if (!SkPDFUtils::ToBitmap(image, &bitmap)) { in to_bitmap() 34 bitmap.allocN32Pixels(image->width(), image->height()); in to_bitmap() 35 bitmap.eraseColor(0x00000000); in to_bitmap() 37 return bitmap; in to_bitmap() 57 const SkBitmap& bitmap, int x, int y, float alpha) { in fill_color_from_bitmap() 60 SkColor4f color = SkColor4f::FromColor(bitmap.getColor(x, y)); in fill_color_from_bitmap() 82 // in pattern cell space (no scaling on the bitmap, though there may be in make_image_shader() 95 // For tiling modes, the bounds should be extended to include the bitmap, in make_image_shader() 96 // otherwise the bitmap get in make_image_shader() 55 fill_color_from_bitmap(SkCanvas* canvas, float left, float top, float right, float bottom, const SkBitmap& bitmap, int x, int y, float alpha) fill_color_from_bitmap() argument 139 SkBitmap bitmap; make_image_shader() local [all...] |
/third_party/skia/third_party/externals/freetype/src/sdf/ |
H A D | ftsdfrend.c | 254 FT_Bitmap* bitmap = &slot->bitmap; in ft_sdf_render() local 285 /* deallocate the previously allocated bitmap */ in ft_sdf_render() 288 FT_FREE( bitmap->buffer ); in ft_sdf_render() 292 /* preset the bitmap using the glyph's outline; */ in ft_sdf_render() 293 /* the sdf bitmap is similar to an anti-aliased bitmap */ in ft_sdf_render() 302 /* bitmap using outline */ in ft_sdf_render() 303 if ( !bitmap->rows || !bitmap in ft_sdf_render() 478 FT_Bitmap* bitmap = &slot->bitmap; ft_bsdf_render() local [all...] |