/**
 * @file v4l2dev.h
 *
 */

#ifndef V4L2DEV_H
#define V4L2DEV_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/
#ifndef LV_DRV_NO_CONF
#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lv_drv_conf.h"
#else
#include "../../lv_drv_conf.h"
#endif
#endif

#if USE_V4L2DEV

#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif

#include "vmf/video_display_mechanism.h"

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/

/**********************
 * GLOBAL VARIABLES
 **********************/

/**********************
 * GLOBAL PROTOTYPES
 **********************/
void v4l2dev_init(void);
void v4l2dev_release(void);
void v4l2dev_flush(lv_disp_drv_t *, const lv_area_t *, lv_color_t *);

/**********************
 *      MACROS
 **********************/

#endif  /*USE_V4L2DEV*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*V4L2DEV_H*/
