summaryrefslogtreecommitdiff
path: root/v4l2-mfc-example/drm.h
diff options
context:
space:
mode:
authorMateusz Krawczuk <m.krawczuk@samsung.com>2015-04-17 16:16:35 +0200
committerKamil Debski <k.debski@samsung.com>2015-04-30 15:37:07 +0200
commit40c68e49c5d1a987a4f2725a655244ca47cd34fb (patch)
tree949140de416e28bba617406c0319153b5bcf57e1 /v4l2-mfc-example/drm.h
parent8361c5567d6e51f6771fe9b7cd75e6b41afb2b2d (diff)
Add automatic detection of drm, fimc and mfc. Update dates
Signed-off-by: Mateusz Krawczuk <m.krawczuk@samsung.com> Signed-off-by: Kamil Debski <k.debski@samsung.com>
Diffstat (limited to 'v4l2-mfc-example/drm.h')
-rw-r--r--v4l2-mfc-example/drm.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/v4l2-mfc-example/drm.h b/v4l2-mfc-example/drm.h
index 1cd31e4..ab2e4f0 100644
--- a/v4l2-mfc-example/drm.h
+++ b/v4l2-mfc-example/drm.h
@@ -4,7 +4,7 @@
*
* DRM operations header file
*
- * Copyright 2014 Samsung Electronics Co., Ltd.
+ * Copyright 2014 - 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,10 +26,22 @@
#ifdef DRM
/* Open and mmap DRM buffer. Also read its properties */
-int drm_open(struct instance *i, char *name);
+int drm_open(struct instance *i);
/* Unmap and close the buffer */
void drm_close(struct instance *i);
+struct connector {
+ uint32_t id;
+ char mode_str[64];
+ drmModeModeInfo *mode;
+ drmModeEncoder *encoder;
+ int crtc;
+ unsigned int fb_id[2], current_fb_id;
+ struct timeval start;
+
+ int swap_count;
+};
+
#endif /* DRM */
#endif /* INCLUDE_DRM_H */