4 * Copyright (C) 2011-2013 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef VIDEODEVICE_INC
23 #define VIDEODEVICE_INC
27 // Flags for mainwindow->preferences->vconfig_in->driver
29 #define VIDEO4LINUX2 1
30 #define VIDEO4LINUX2JPEG 2
31 #define VIDEO4LINUX2MPEG 3
32 #define SCREENCAPTURE 4
33 #define CAPTURE_FIREWIRE 6
34 #define CAPTURE_IEC61883 8
36 #define CAPTURE_JPEG_WEBCAM 20
37 #define CAPTURE_YUYV_WEBCAM 21
39 #define DEV_UNKNOWN_TITLE "Device Unknown"
40 #define VIDEO4LINUX2_TITLE "Video4Linux2"
41 #define VIDEO4LINUX2JPEG_TITLE "Video4Linux2 JPEG"
42 #define VIDEO4LINUX2MPEG_TITLE "Video4Linux2 MPEG"
43 #define SCREENCAPTURE_TITLE "Screencapture"
44 #define CAPTURE_FIREWIRE_TITLE "DV 1394"
45 #define CAPTURE_IEC61883_TITLE "IEC 61883"
46 #define CAPTURE_DVB_TITLE "DVB"
47 #define CAPTURE_JPEG_WEBCAM_TITLE "JPEG Webcam"
48 #define CAPTURE_YUYV_WEBCAM_TITLE "YUYV Webcam"
51 #define PLAYBACK_X11 10
52 #define PLAYBACK_X11_XV 14
53 #define PLAYBACK_X11_GL 17
54 #define PLAYBACK_FIREWIRE 13
55 #define PLAYBACK_DV1394 15
56 #define PLAYBACK_IEC61883 16
57 // This is passed to File::get_best_colormodel by FileThread so FileThread can
58 // do the colorspace conversion using the shortest path.
59 #define PLAYBACK_ASYNCHRONOUS 18
61 #define PLAYBACK_X11_TITLE "X11"
62 #define PLAYBACK_X11_XV_TITLE "X11-XV"
63 #define PLAYBACK_X11_GL_TITLE "X11-OpenGL"
64 #define PLAYBACK_FIREWIRE_TITLE "RAW 1394"
65 #define PLAYBACK_DV1394_TITLE "DV 1394"
66 #define PLAYBACK_IEC61883_TITLE "IEC 61883"
68 // Output formats required for direct frame copy
69 // RGB is for either RGB or RGBA as defined in the VFrame