From 40c68e49c5d1a987a4f2725a655244ca47cd34fb Mon Sep 17 00:00:00 2001 From: Mateusz Krawczuk Date: Fri, 17 Apr 2015 16:16:35 +0200 Subject: Add automatic detection of drm, fimc and mfc. Update dates Signed-off-by: Mateusz Krawczuk Signed-off-by: Kamil Debski --- v4l2-mfc-example/drm.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'v4l2-mfc-example/drm.h') 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 */ -- cgit v1.2.3