ipptest: add fimc and rotator test applications
[platform/upstream/libdrm.git] / tests / ipptest / fimctest.h
1 #ifndef __FIMCTEST_H__
2 #define __FIMCTEST_H__
3
4 #include "xf86drm.h"
5 #include "xf86drmMode.h"
6
7 #define MAX_LOOP 20
8 #define HALF_LOOP 10
9 #define MAX_BUF 3
10
11 struct connector {
12         uint32_t id;
13         char mode_str[64];
14         drmModeModeInfo *mode;
15         drmModeEncoder *encoder;
16         int crtc;
17         unsigned int fb_id[2], current_fb_id;
18         struct timeval start;
19
20         int swap_count;
21 };
22
23 extern int fd;
24
25 extern void connector_find_mode(struct connector *c);
26
27 #endif