Home
last modified time | relevance | path

Searched refs:bitmap (Results 1 – 25 of 651) sorted by relevance

12345678910>>...27

/third_party/ffmpeg/libavcodec/
Dxfaceenc.c35 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 + XFACE_WIDTH * h + w, w, h)); in all_black()
67 return *bitmap || *(bitmap + 1) || in all_black()
[all …]
Dxfacedec.c52 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, int w, int h, int level) in decode_block() argument
[all …]
/third_party/skia/gm/
Doverdrawcolorfilter.cpp22 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; in onDraw() local
51 bitmap.allocPixels(info); in onDraw()
52 set_bitmap(&bitmap, 0); in onDraw()
53 canvas->drawImage(bitmap.asImage(), 0, 0, sampling, &paint); in onDraw()
54 set_bitmap(&bitmap, 1); in onDraw()
[all …]
Dbitmappremul.cpp32 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
52 init_bitmap(kARGB_4444_SkColorType, &bitmap); in make_argb4444_gradient()
56 SkCanvas{ bitmap }.drawImage(make_argb8888_gradient(), 0, 0, SkSamplingOptions(), &paint); in make_argb4444_gradient()
[all …]
/third_party/skia/third_party/externals/freetype/src/smooth/
Dftsmooth.c130 FT_Bitmap* bitmap ) in ft_smooth_raster_lcd() argument
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() argument
200 int pitch = bitmap->pitch; in ft_smooth_raster_lcdv()
[all …]
/third_party/mesa3d/src/gallium/frontends/hgl/
Dbitmap_wrapper.cpp54 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()
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
102 BBitmap *bb = (BBitmap*)bitmap; in delete_bitmap()
[all …]
/third_party/skia/src/ports/
DSkImageEncoder_WIC.cpp53 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.rowBytes() + x * bitmap.bytesPerPixel(); in SkEncodeImageWithWIC()
74 void* pixels = bitmap.getPixels(); in SkEncodeImageWithWIC()
75 size_t rowBytes = bitmap.rowBytes(); in SkEncodeImageWithWIC()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_bitmap.c106 const GLubyte *bitmap, in unpack_bitmap() argument
111 _mesa_expand_bitmap(width, height, unpack, bitmap, in unpack_bitmap()
122 const GLubyte *bitmap) in make_bitmap_texture() argument
131 bitmap = _mesa_map_pbo_source(ctx, unpack, bitmap); in make_bitmap_texture()
132 if (!bitmap) { in make_bitmap_texture()
139 pt = st_texture_create(st, st->internal_target, st->bitmap.tex_format, in make_bitmap_texture()
153 unpack_bitmap(st, 0, 0, width, height, unpack, bitmap, in make_bitmap_texture()
181 key.bitmap = GL_TRUE; in setup_render_state()
212 st->bitmap.rasterizer.scissor = ctx->Scissor.EnableFlags & 1; in setup_render_state()
213 cso_set_rasterizer(cso, &st->bitmap.rasterizer); in setup_render_state()
[all …]
/third_party/openssl/ssl/record/
Ddtls1_bitmap.c38 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->map = 1UL; in dtls1_record_bitmap_update()
72 memcpy(bitmap->max_seq_num, seq, SEQ_NUM_SIZE); in dtls1_record_bitmap_update()
[all …]
/third_party/node/deps/openssl/openssl/ssl/record/
Ddtls1_bitmap.c38 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->map = 1UL; in dtls1_record_bitmap_update()
72 memcpy(bitmap->max_seq_num, seq, SEQ_NUM_SIZE); in dtls1_record_bitmap_update()
[all …]
/third_party/skia/third_party/externals/freetype/src/base/
Dftbitmap.c33 #define FT_COMPONENT bitmap
160 FT_Bitmap* bitmap, in ft_bitmap_assure_buffer() argument
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->buffer + pitch; in ft_bitmap_assure_buffer()
236 if ( FT_QALLOC_MULT( buffer, bitmap->rows + ypixels, new_pitch ) ) in ft_bitmap_assure_buffer()
241 if ( bitmap->pitch > 0 ) in ft_bitmap_assure_buffer()
[all …]
/third_party/ltp/tools/sparse/sparse-src/
Dbitmap.h10 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[offset] = old | mask; in test_and_set_bit()
41 static inline int test_and_clear_bit(unsigned int nr, unsigned long *bitmap) in test_and_clear_bit() argument
[all …]
/third_party/skia/docs/examples/
DBitmap_reset.cpp7 SkBitmap bitmap; in draw() local
8 bitmap.setInfo(SkImageInfo::Make(1, 1, kRGBA_8888_SkColorType, kOpaque_SkAlphaType)); in draw()
9 bitmap.allocPixels(); in draw()
10 SkDebugf("width:%d height:%d isNull:%s\n", bitmap.width(), bitmap.height(), in draw()
11 bitmap.isNull() ? "true" : "false"); in draw()
12 bitmap.reset(); in draw()
13 SkDebugf("width:%d height:%d isNull:%s\n", bitmap.width(), bitmap.height(), in draw()
14 bitmap.isNull() ? "true" : "false"); in draw()
DBitmap_notifyPixelsChanged.cpp7 SkBitmap bitmap; in draw() local
8 bitmap.setInfo(SkImageInfo::Make(1, 1, kRGBA_8888_SkColorType, kOpaque_SkAlphaType)); in draw()
9 bitmap.allocPixels(); in draw()
10 bitmap.eraseColor(SK_ColorRED); in draw()
12 canvas->drawImage(bitmap.asImage(), 0, 0); in draw()
13 *(SkPMColor*) bitmap.getPixels() = SkPreMultiplyColor(SK_ColorBLUE); in draw()
14 canvas->drawImage(bitmap.asImage(), 2, 0); in draw()
15 bitmap.notifyPixelsChanged(); in draw()
16 *(SkPMColor*) bitmap.getPixels() = SkPreMultiplyColor(SK_ColorGREEN); in draw()
17 canvas->drawImage(bitmap.asImage(), 4, 0); in draw()
DBitmap_ComputeIsOpaque.cpp7 SkBitmap bitmap; in draw() local
8 bitmap.setInfo(SkImageInfo::Make(2, 2, kN32_SkColorType, kPremul_SkAlphaType)); in draw()
10 bitmap.allocPixels(); in draw()
11 bitmap.eraseColor(0x00000000); in draw()
12 SkDebugf("computeIsOpaque: %s\n", SkBitmap::ComputeIsOpaque(bitmap) ? "true" : "false"); in draw()
13 bitmap.eraseColor(0xFFFFFFFF); in draw()
14 SkDebugf("computeIsOpaque: %s\n", SkBitmap::ComputeIsOpaque(bitmap) ? "true" : "false"); in draw()
15 bitmap.setInfo(bitmap.info().makeAlphaType(kOpaque_SkAlphaType)); in draw()
DBitmap_isOpaque.cpp9 SkBitmap bitmap; in draw() local
10 bitmap.setInfo(SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType)); in draw()
12 bitmap.allocPixels(); in draw()
13 bitmap.eraseColor(0x00000000); in draw()
14 SkDebugf("isOpaque: %s\n", bitmap.isOpaque() ? "true" : "false"); in draw()
15 bitmap.eraseColor(0xFFFFFFFF); in draw()
16 SkDebugf("isOpaque: %s\n", bitmap.isOpaque() ? "true" : "false"); in draw()
17 bitmap.setInfo(bitmap.info().makeAlphaType(kOpaque_SkAlphaType)); in draw()
Dgpu8888diff.cpp7 SkBitmap bitmap; in draw() local
10 bitmap.allocPixels(imageInfo); in draw()
11 SkCanvas offscreen(bitmap); in draw()
13 canvas->drawImage(bitmap.asImage(), 0, 0); in draw()
15 canvas->drawImage(bitmap.asImage(), 2, 2); in draw()
24 if (bitmap.writePixels(redPixmap, 0, 0)) { in draw()
25 canvas->drawImage(bitmap.asImage(), 4, 4); in draw()
28 if (bitmap.writePixels(bluePixmap, 0, 0)) { in draw()
29 canvas->drawImage(bitmap.asImage(), 6, 6); in draw()
DBitmap_tryAllocN32Pixels.cpp7 SkBitmap bitmap; in draw() local
8 if (bitmap.tryAllocN32Pixels(80, 80)) { in draw()
9 bitmap.eraseColor(SK_ColorTRANSPARENT); in draw()
10 bitmap.erase(0x7f3f7fff, SkIRect::MakeWH(50, 30)); in draw()
11 bitmap.erase(0x3f7fff3f, SkIRect::MakeXYWH(20, 10, 50, 30)); in draw()
12 bitmap.erase(0x5fff3f7f, SkIRect::MakeXYWH(40, 20, 50, 30)); in draw()
13 canvas->drawImage(bitmap.asImage(), 0, 0); in draw()
15 canvas->drawImage(bitmap.asImage(), x, 70); in draw()
DBitmap_tryAllocPixels_3.cpp8 SkBitmap bitmap; in draw() local
9bitmap.installPixels(SkImageInfo::Make(5, 1, kGray_8_SkColorType, kOpaque_SkAlphaType), set1, 5); in draw()
11 canvas->drawImage(bitmap.asImage(), 0, 0); in draw()
12 if (bitmap.tryAllocPixels()) { in draw()
13 bitmap.eraseColor(SK_ColorBLACK); in draw()
14 canvas->drawImage(bitmap.asImage(), 8, 0); in draw()
15 bitmap.setPixels(set1); in draw()
16 canvas->drawImage(bitmap.asImage(), 16, 0); in draw()
/third_party/skia/third_party/externals/freetype/src/sdf/
Dftsdfrend.c254 FT_Bitmap* bitmap = &slot->bitmap; in ft_sdf_render() local
288 FT_FREE( bitmap->buffer ); in ft_sdf_render()
303 if ( !bitmap->rows || !bitmap->pitch ) in ft_sdf_render()
316 bitmap->rows += y_pad * 2; in ft_sdf_render()
317 bitmap->width += x_pad * 2; in ft_sdf_render()
320 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; in ft_sdf_render()
321 bitmap->pitch = (int)( bitmap->width ); in ft_sdf_render()
322 bitmap->num_grays = 255; in ft_sdf_render()
325 if ( FT_ALLOC_MULT( bitmap->buffer, bitmap->rows, bitmap->pitch ) ) in ft_sdf_render()
335 y_shift += 64 * (FT_Int)bitmap->rows; in ft_sdf_render()
[all …]
/third_party/skia/third_party/sfntly/
DBUILD.gn39 "$_src/sfntly/table/bitmap/big_glyph_metrics.cc",
40 "$_src/sfntly/table/bitmap/bitmap_glyph.cc",
41 "$_src/sfntly/table/bitmap/bitmap_glyph_info.cc",
42 "$_src/sfntly/table/bitmap/bitmap_size_table.cc",
43 "$_src/sfntly/table/bitmap/composite_bitmap_glyph.cc",
44 "$_src/sfntly/table/bitmap/ebdt_table.cc",
45 "$_src/sfntly/table/bitmap/eblc_table.cc",
46 "$_src/sfntly/table/bitmap/ebsc_table.cc",
47 "$_src/sfntly/table/bitmap/glyph_metrics.cc",
48 "$_src/sfntly/table/bitmap/index_sub_table.cc",
[all …]
/third_party/skia/src/pdf/
DSkPDFShader.cpp32 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() argument
60 SkColor4f color = SkColor4f::FromColor(bitmap.getColor(x, y)); in fill_color_from_bitmap()
139 SkBitmap bitmap; in make_image_shader() local
143 bitmap = to_bitmap(image); in make_image_shader()
149 SkASSERT(!bitmap.drawsNothing()); in make_image_shader()
[all …]
/third_party/skia/tests/
DColorMatrixTest.cpp38 SkBitmap bitmap; in test_colorMatrixCTS() local
39 bitmap.allocN32Pixels(1,1); in test_colorMatrixCTS()
41 SkCanvas canvas(bitmap); in test_colorMatrixCTS()
53 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
57 assert_color(reporter, SK_ColorGREEN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
61 assert_color(reporter, SK_ColorRED, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
66 assert_color(reporter, SK_ColorWHITE, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
75 bitmap.eraseColor(SK_ColorTRANSPARENT); in test_colorMatrixCTS()
79 assert_color(reporter, SkColorSetARGB(128, 255, 0, 64), bitmap.getColor(0, 0), 2); in test_colorMatrixCTS()
84 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); in test_colorMatrixCTS()
[all …]
/third_party/skia/src/core/
DSkBitmapDevice.cpp215 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap) in SkBitmapDevice() argument
216 : INHERITED(bitmap.info(), SkSurfaceProps()) in SkBitmapDevice()
217 , fBitmap(bitmap) in SkBitmapDevice()
218 , fRCStack(bitmap.width(), bitmap.height()) in SkBitmapDevice()
220 bitmap.colorType(), in SkBitmapDevice()
221 bitmap.colorSpace(), in SkBitmapDevice()
223 SkASSERT(valid_for_bitmap_device(bitmap.info(), nullptr)); in SkBitmapDevice()
230 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps, in SkBitmapDevice() argument
232 : INHERITED(bitmap.info(), surfaceProps) in SkBitmapDevice()
233 , fBitmap(bitmap) in SkBitmapDevice()
[all …]
/third_party/skia/samplecode/
DSampleWritePixels.cpp17 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; in onDrawContent() local
39 create_bitmap(&bitmap); in onDrawContent()
40 int x = bitmap.width() / 2; in onDrawContent()
41 int y = bitmap.height() / 2; in onDrawContent()
44 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); in onDrawContent()
48 canvas->writePixels(bitmap, 0, 0); in onDrawContent()

12345678910>>...27