Lines Matching refs:depth
41 color (uint32_t depth, uint32_t x, uint32_t y)
45 if (depth == 1) {
51 depth /= 3;
52 p = ((1 << depth) - 1) * x * y / WIDTH / HEIGHT;
53 return (p << depth) | (p << (2 * depth));
56 static xcb_image_t *create_image(xcb_connection_t *c, int depth, int format)
60 printf("Image depth %d, format %d\n", depth, format);
62 format, depth, 0, 0, 0);
65 xcb_image_put_pixel(im, x, y, color(depth, x, y));
76 printf("CreateWindow sequence %d, depth %d\n", seq, root->root_depth);
82 static xcb_pixmap_t create_pixmap(xcb_connection_t *c, xcb_drawable_t d, uint8_t depth)
86 seq = xcb_create_pixmap(c, depth, p, d, WIDTH, HEIGHT).sequence;
87 printf("CreatePixmap sequence %d, depth %d\n", seq, depth);
108 uint8_t depth;
133 int screen, depth;
159 depth = format->depth;
161 im = create_image(c, depth, format->format);
163 if(format->format == XCB_IMAGE_FORMAT_XY_PIXMAP && depth == 1)
166 d = create_pixmap(c, w, depth);