Lines Matching refs:geo
113 xcb_get_geometry_reply_t *geo) in xcbgrab_reposition() argument
120 if (!p || !geo) in xcbgrab_reposition()
146 c->x = FFMIN(FFMAX(0, x), geo->width - w); in xcbgrab_reposition()
147 c->y = FFMIN(FFMAX(0, y), geo->height - h); in xcbgrab_reposition()
334 xcb_get_geometry_reply_t *geo, in xcbgrab_draw_mouse() argument
421 xcb_get_geometry_reply_t *geo = NULL; in xcbgrab_read_packet() local
438 geo = xcb_get_geometry_reply(c->conn, gc, NULL); in xcbgrab_read_packet()
439 if (!geo) { in xcbgrab_read_packet()
450 free(geo); in xcbgrab_read_packet()
460 xcbgrab_reposition(s, p, geo); in xcbgrab_read_packet()
478 xcbgrab_draw_mouse(s, pkt, p, geo, win_x, win_y); in xcbgrab_read_packet()
482 free(geo); in xcbgrab_read_packet()
577 xcb_get_geometry_reply_t *geo; in create_stream() local
591 geo = xcb_get_geometry_reply(c->conn, gc, NULL); in create_stream()
592 if (!geo) { in create_stream()
598 c->width = geo->width; in create_stream()
599 c->height = geo->height; in create_stream()
602 if (c->x + c->width > geo->width || in create_stream()
603 c->y + c->height > geo->height) { in create_stream()
609 geo->width, geo->height); in create_stream()
610 free(geo); in create_stream()
619 ret = pixfmt_from_pixmap_format(s, geo->depth, &st->codecpar->format, &c->bpp); in create_stream()
620 free(geo); in create_stream()