summaryrefslogtreecommitdiff
path: root/lib/igt_fb.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-26 16:37:15 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-26 18:50:28 +0100
commit3d9e63f2ad0c676b3efba4c854ef645ae60ee7e1 (patch)
tree37cc3dc895057482900604d6d627af8d62eb5b54 /lib/igt_fb.h
parent7568edf4b1dd0f8c1b061a2bb53d593ff9d4d33d (diff)
lib/igt_fb: api documentation
Also realign function parameters and replace abort() with igt_fail() while at it. v2: Forgotten to add a nice intro. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r--lib/igt_fb.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/igt_fb.h b/lib/igt_fb.h
index d5e728cc..5f0ff51c 100644
--- a/lib/igt_fb.h
+++ b/lib/igt_fb.h
@@ -56,17 +56,13 @@ enum igt_text_align {
align_hcenter = 0x08,
};
-int igt_cairo_printf_line(cairo_t *cr, enum igt_text_align align,
- double yspacing, const char *fmt, ...)
- __attribute__((format (printf, 4, 5)));
-
unsigned int igt_create_fb(int fd, int width, int height, uint32_t format,
bool tiled, struct igt_fb *fb);
unsigned int igt_create_color_fb(int fd, int width, int height,
uint32_t format, bool tiled,
double r, double g, double b,
struct igt_fb *fb /* out */);
-void igt_remove_fb(int fd, struct igt_fb *fb_info);
+void igt_remove_fb(int fd, struct igt_fb *fb);
/* cairo-based painting */
cairo_t *igt_get_cairo_ctx(int fd, struct igt_fb *fb);
@@ -80,6 +76,9 @@ void igt_paint_test_pattern(cairo_t *cr, int width, int height);
void igt_paint_image(cairo_t *cr, const char *filename,
int dst_x, int dst_y, int dst_width, int dst_height);
void igt_write_fb_to_png(int fd, struct igt_fb *fb, const char *filename);
+int igt_cairo_printf_line(cairo_t *cr, enum igt_text_align align,
+ double yspacing, const char *fmt, ...)
+ __attribute__((format (printf, 4, 5)));
/* helpers to handle drm fourcc codes */
uint32_t igt_bpp_depth_to_drm_format(int bpp, int depth);