// LiVES - videodev input
// (c) G. Finch 2010 <salsaman@gmail.com>
// released under the GNU GPL 3 or later
// see file COPYING or www.gnu.org for details

#ifdef HAVE_UNICAP

#include <unicap/unicap.h>

typedef struct {
  unicap_handle_t handle;
  int fileno; ///< lives clip number
  int buffer_type; ///< system or user
  volatile int buffer_ready;
  unicap_data_buffer_t buffer1;
  unicap_data_buffer_t buffer2;
  int current_palette;
  int YUV_sampling;
  int YUV_subspace;
  int YUV_clamping;
  gboolean is_really_grey; ///< for greyscale we lie and say it is YUV444P (i.e we add U and V planes)
} lives_vdev_t;


#define MAX_DEVICES 1024
#define MAX_FORMATS 1024

void on_open_vdev_activate (GtkMenuItem *, gpointer);
gboolean weed_layer_set_from_lvdev (weed_plant_t *layer, file *sfile, gdouble timeoutsecs);
void lives_vdev_free(lives_vdev_t *);


#endif

