initial commit
[goodguy/history.git] / cinelerra-5.0 / cinelerra / videodevice.inc
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2011-2013 Adam Williams <broadcast at earthling dot net>
5  * 
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.
10  * 
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.
15  * 
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
19  * 
20  */
21
22 #ifndef VIDEODEVICE_INC
23 #define VIDEODEVICE_INC
24
25 class VideoDevice;
26
27 // Flags for mainwindow->preferences->vconfig_in->driver
28 #define VIDEO4LINUX          0
29 #define VIDEO4LINUX2         1
30 #define VIDEO4LINUX2JPEG     2
31 #define VIDEO4LINUX2MPEG     3
32 #define SCREENCAPTURE        4
33 #define CAPTURE_LML          5
34 #define CAPTURE_FIREWIRE     6
35 #define CAPTURE_BUZ          7
36 #define CAPTURE_IEC61883     8
37 #define CAPTURE_DVB          9
38 #define CAPTURE_JPEG_WEBCAM  20
39 #define CAPTURE_YUYV_WEBCAM  21
40
41 #define VIDEO4LINUX_TITLE         "Video4Linux"
42 #define VIDEO4LINUX2_TITLE        "Video4Linux2"
43 #define VIDEO4LINUX2JPEG_TITLE    "Video4Linux2 JPEG"
44 #define VIDEO4LINUX2MPEG_TITLE    "Video4Linux2 MPEG"
45 #define SCREENCAPTURE_TITLE       "Screencapture"
46 #define CAPTURE_LML_TITLE         "LML 33"
47 #define CAPTURE_BUZ_TITLE         "Buz"
48 #define CAPTURE_FIREWIRE_TITLE    "DV 1394"
49 #define CAPTURE_IEC61883_TITLE    "IEC 61883"
50 #define CAPTURE_DVB_TITLE         "DVB"
51 #define CAPTURE_JPEG_WEBCAM_TITLE "JPEG Webcam"
52 #define CAPTURE_YUYV_WEBCAM_TITLE "YUYV Webcam"
53
54
55 #define PLAYBACK_X11      10
56 #define PLAYBACK_X11_XV   14
57 #define PLAYBACK_X11_GL   17
58 #define PLAYBACK_BUZ      11
59 #define PLAYBACK_LML      12
60 #define PLAYBACK_FIREWIRE 13
61 #define PLAYBACK_DV1394   15
62 #define PLAYBACK_IEC61883   16
63 // This is passed to File::get_best_colormodel by FileThread so FileThread can
64 // do the colorspace conversion using the shortest path.
65 #define PLAYBACK_ASYNCHRONOUS 18
66
67 #define PLAYBACK_X11_TITLE      "X11"
68 #define PLAYBACK_X11_XV_TITLE   "X11-XV"
69 #define PLAYBACK_X11_GL_TITLE   "X11-OpenGL"
70 #define PLAYBACK_BUZ_TITLE      "Buz"
71 #define PLAYBACK_LML_TITLE      "LML 33"
72 #define PLAYBACK_FIREWIRE_TITLE "RAW 1394"
73 #define PLAYBACK_DV1394_TITLE   "DV 1394"
74 #define PLAYBACK_IEC61883_TITLE "IEC 61883"
75
76 // Output formats required for direct frame copy
77 // RGB is for either RGB or RGBA as defined in the VFrame
78 #define OUTPUT_RGB  0
79 #define OUTPUT_MJPA 1
80 #define OUTPUT_DV   2
81
82 #endif