X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fvdevicev4l2.h;fp=cinelerra-5.1%2Fcinelerra%2Fvdevicev4l2.h;h=7cd4e2cdbadd711bfd527baca4f152f6120277eb;hb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;hp=0000000000000000000000000000000000000000;hpb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/vdevicev4l2.h b/cinelerra-5.1/cinelerra/vdevicev4l2.h new file mode 100644 index 00000000..7cd4e2cd --- /dev/null +++ b/cinelerra-5.1/cinelerra/vdevicev4l2.h @@ -0,0 +1,51 @@ + +/* + * CINELERRA + * Copyright (C) 2008 Adam Williams + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#ifndef VDEVICEV4L2_H +#define VDEVICEV4L2_H + + +#ifdef HAVE_VIDEO4LINUX2 + +#include "devicev4l2base.h" +#include "vdevicebase.h" +#include +#include +#include "videodevice.inc" +#include "vdevicev4l2.inc" + + +class VDeviceV4L2 : public VDeviceBase, public DeviceV4L2Base +{ +public: + VDeviceV4L2(VideoDevice *device); + ~VDeviceV4L2(); + VideoDevice *v4l2_device() { return device; } + + int close_all(); + int open_input(); + int get_best_colormodel(Asset *asset); + int read_buffer(VFrame *frame); + int has_signal(); +}; + +#endif +#endif