Lines Matching refs:bitmap
52 static void pop_greys(BigInt *b, char *bitmap, int w, int h)
57 pop_greys(b, bitmap, w, h);
58 pop_greys(b, bitmap + w, w, h);
59 pop_greys(b, bitmap + XFACE_WIDTH * h, w, h);
60 pop_greys(b, bitmap + XFACE_WIDTH * h + w, w, h);
63 if (w & 1) bitmap[0] = 1;
64 if (w & 2) bitmap[1] = 1;
65 if (w & 4) bitmap[XFACE_WIDTH] = 1;
66 if (w & 8) bitmap[XFACE_WIDTH + 1] = 1;
70 static void decode_block(BigInt *b, char *bitmap, int w, int h, int level)
76 pop_greys(b, bitmap, w, h);
82 decode_block(b, bitmap, w, h, level);
83 decode_block(b, bitmap + w, w, h, level);
84 decode_block(b, bitmap + h * XFACE_WIDTH, w, h, level);
85 decode_block(b, bitmap + w + h * XFACE_WIDTH, w, h, level);
91 uint8_t bitmap[XFACE_PIXELS]; ///< image used internally for decoding
141 /* decode image and put it in bitmap */
142 memset(xface->bitmap, 0, XFACE_PIXELS);
143 buf = xface->bitmap;
154 ff_xface_generate_face(xface->bitmap, xface->bitmap);
156 /* convert image from 1=black 0=white bitmap to MONOWHITE */
159 byte += xface->bitmap[i];