prevent popup deactivation while button_down
[goodguy/history.git] / cinelerra-5.0 / cinelerra / file.inc
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2010 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 FILE_INC
23 #define FILE_INC
24
25 #include "language.h"
26
27 // Return values for open_file
28 #define FILE_OK 0
29 #define FILE_NOT_FOUND 1
30 #define FILE_UNRECOGNIZED_CODEC 2
31 #define FILE_IS_XML 3
32
33 // Numeric codes for each file format
34 // They're stored in XML files, so they have to be fixed.
35 #define FILE_PLUGIN             0x8000
36 #define FILE_UNKNOWN            0
37 // Libzmpeg3 decoding and transport stream capture only
38 #define FILE_PCM                1
39 #define FILE_WAV                2
40 #define FILE_PNG                4
41 #define FILE_JPEG               5
42 #define FILE_TIFF               6
43 #define FILE_GIF                7
44 #define FILE_JPEG_LIST          8
45 #define FILE_AU                 9
46 #define FILE_AIFF               10
47 #define FILE_SND                11
48 #define FILE_TGA_LIST           13
49 #define FILE_TGA                14
50 #define FILE_MPEG               15    
51 #define FILE_AMPEG              16    // For encoding only
52 #define FILE_VMPEG              17    // For encoding only
53 #define FILE_RAWDV              18
54 #define FILE_TIFF_LIST          22
55 #define FILE_PNG_LIST           23
56 #define FILE_AC3                25    // AC3 encoding
57 #define FILE_EXR                26
58 #define FILE_EXR_LIST           27
59 #define FILE_CR2                28
60 #define FILE_OGG                30
61 #define FILE_VORBIS             31
62 #define FILE_FLAC               32
63 #define FILE_FFMPEG             33
64 #define FILE_SCENE              34
65 #define FILE_CR2_LIST           35
66 #define FILE_GIF_LIST           36
67 #define FILE_DB                 37
68
69 // For formats supported by plugins, the format number is the plugin number in the 
70 // plugin list ORed with 0x8000.
71
72 #if 0
73 N_("AC3")
74 N_("Apple/SGI AIFF")
75 N_("AVI Arne Type 1")
76 N_("AVI Avifile")
77 N_("AVI DV Type 2")
78 N_("AVI Lavtools")
79 N_("EXR")
80 N_("EXR Sequence")
81 N_("FFMPEG")
82 N_("FLAC")
83 N_("JPEG")
84 N_("JPEG Sequence")
85 N_("Microsoft WAV")
86 N_("MPEG Audio")    // For encoding only
87 N_("MPEG")          // For decoding only
88 N_("MPEG Video")    // For encoding only
89 N_("OGG Theora/Vorbis")
90 N_("OGG Vorbis")    // For decoding only
91 N_("PNG")
92 N_("PNG Sequence")
93 N_("Raw DV")
94 N_("Raw PCM")
95 N_("Sun/NeXT AU")
96 N_("TGA")
97 N_("TGA Sequence")
98 N_("TIFF")
99 N_("TIFF Sequence")
100 N_("Unknown sound")
101 #endif
102
103 #define AC3_NAME                "AC3"
104 #define AIFF_NAME               "Apple/SGI AIFF"
105 #define AMPEG_NAME              "MPEG Audio"    // For encoding only
106 #define AU_NAME                 "Sun/NeXT AU"
107 #define AVI_ARNE1_NAME          "AVI Arne Type 1"
108 #define AVI_ARNE2_NAME          "AVI DV Type 2"
109 #define AVI_AVIFILE_NAME        "AVI Avifile"
110 #define AVI_LAVTOOLS_NAME       "AVI Lavtools"
111 #define CR2_LIST_NAME           "CR2 Sequence"
112 #define CR2_NAME                "Raw Camera"
113 #define DBASE_NAME              "DB"
114 #define EXR_LIST_NAME           "EXR Sequence"
115 #define EXR_NAME                "EXR"
116 #define FFMPEG_NAME             "FFMPEG"
117 #define FLAC_NAME               "FLAC"
118 #define JPEG_LIST_NAME          "JPEG Sequence"
119 #define JPEG_NAME               "JPEG"
120 #define MPEG_NAME               "MPEG"           // For decoding only
121 #define OGG_NAME                "OGG Theora/Vorbis"
122 #define PCM_NAME                "Raw PCM"
123 #define PNG_LIST_NAME           "PNG Sequence"
124 #define PNG_NAME                "PNG"
125 #define RAWDV_NAME              "Raw DV"
126 #define SCENE_NAME              "Text To Movie"
127 #define SND_NAME                "Unknown sound"
128 #define TGA_LIST_NAME           "TGA Sequence"
129 #define TGA_NAME                "TGA"
130 #define TIFF_LIST_NAME          "TIFF Sequence"
131 #define TIFF_NAME               "TIFF"
132 #define VMPEG_NAME              "MPEG Video"    // For encoding only
133 #define VORBIS_NAME             "OGG Vorbis"
134 #define WAV_NAME                "Microsoft WAV"
135
136 #define BITSLINEAR8    8
137 #define BITSLINEAR16   16
138 #define BITSLINEAR24   24
139 #define BITSLINEAR32   32
140 #define BITS_ADPCM     252
141 #define BITSFLOAT      253
142 #define BITSULAW       254
143
144 #if 0
145 N_("8 Bit Linear")
146 N_("16 Bit Linear")
147 N_("24 Bit Linear")
148 N_("32 Bit Linear")
149 N_("u Law")
150 N_("IMA 4")
151 N_("ADPCM")
152 N_("Float")
153
154 N_("RGB ALPHA")
155 N_("PNG ALPHA")
156 #endif
157
158 #define NAME_8BIT "8 Bit Linear"
159 #define NAME_16BIT "16 Bit Linear"
160 #define NAME_24BIT "24 Bit Linear"
161 #define NAME_32BIT "32 Bit Linear"
162 #define NAME_ULAW "u Law"
163 #define NAME_ADPCM "ADPCM"
164 #define NAME_FLOAT "Float"
165
166
167 class File;
168 //result<0: continue skimming, result>=0: exit return code
169 typedef int (*skim_fn)(void *vp, int track);
170
171 void get_exe_path(char *result);
172
173 #endif