r602: Fix baver's code... don't insert timecode when show_tc is not set
[cinelerra_cv/mob.git] / cinelerra / file.inc
blob1ab8937dea68acf1d9e7e9f982926f515605adef
1 #ifndef FILE_INC
2 #define FILE_INC
4 #include "language.h"
6 // Return values for open_file
7 #define FILE_OK 0
8 #define FILE_NOT_FOUND 1
9 #define FILE_UNRECOGNIZED_CODEC 2
10 #define FILE_IS_XML 3
12 #define FILE_UNKNOWN                    0
13 #define FILE_AIFF                       10
14 #define FILE_AMPEG                      16    // For encoding only
15 #define FILE_AC3                25    // AC3 encoding
16 #define FILE_AU                         9
17 #define FILE_AVI_ARNE1          20    // DV type 1
18 #define FILE_AVI                24    // Heroine Virtual
19 #define FILE_AVI_ARNE2          19    // DV type 2
20 #define FILE_AVI_AVIFILE        21
21 #define FILE_AVI_LAVTOOLS       12    // MJPEG type 1
22 #define FILE_GIF                        7
23 #define FILE_JPEG                       5
24 #define FILE_JPEG_LIST                  8
25 #define FILE_MOV                        3
26 #define FILE_MPEG                       15    // Libmpeg3 decoding only
27 #define FILE_PCM                        1
28 #define FILE_PLUGIN                     0x8000
29 #define FILE_PNG                        4
30 #define FILE_PNG_LIST                   23
31 #define FILE_SND                        11
32 #define FILE_TGA                        14
33 #define FILE_TGA_LIST                   13
34 #define FILE_TIFF                       6
35 #define FILE_TIFF_LIST                  22
36 #define FILE_VMPEG                      17    // For encoding only
37 #define FILE_VORBIS                     18
38 #define FILE_WAV                        2
39 #define FILE_EXR                26
40 #define FILE_EXR_LIST           27
41 #define FILE_RAWDV              28
42 #define FILE_YUV                29      // mjpegtools YUV4MPEG (aka YUV4MPEG2)
43 #define FILE_OGG                30
45 // For formats supported by plugins, the format number is the plugin number in the 
46 // plugin list ORed with 0x8000.
48 #define FILE_FORMAT_PREFIX(format) ( \
49         format == FILE_AIFF    ? "AIFF" :               \
50         format == FILE_AMPEG   ? "MPEG" :               \
51         format == FILE_AC3     ? "AC3" :                \
52         format == FILE_AU      ? "AU" :                 \
53         format == FILE_AVI_ARNE1 ? "AVI_ARNE1" :        \
54         format == FILE_AVI     ? "AVI" :                \
55         format == FILE_AVI_ARNE2 ? "AVI_ARNE2" :        \
56         format == FILE_AVI_AVIFILE ? "AVIFILE" :        \
57         format == FILE_AVI_LAVTOOLS ? "AVI_LAVTOOLS" :  \
58         format == FILE_GIF     ? "GIF" :                \
59         format == FILE_JPEG    ? "JPEG" :               \
60         format == FILE_JPEG_LIST ? "JPEG_LIST" :        \
61         format == FILE_MOV     ? "MOV" :                \
62         format == FILE_MPEG    ? "MPEG" :               \
63         format == FILE_PCM     ? "PCM" :                \
64         format == FILE_PLUGIN  ? "PLUGIN" :             \
65         format == FILE_PNG     ? "PNG" :                \
66         format == FILE_PNG_LIST ? "PNG_LIST" :          \
67         format == FILE_SND     ? "SND" :                \
68         format == FILE_TGA     ? "TGA" :                \
69         format == FILE_TGA_LIST ? "TGA_LIST" :          \
70         format == FILE_TIFF    ? "TIFF" :               \
71         format == FILE_TIFF_LIST ? "TIFF_LIST" :        \
72         format == FILE_VMPEG   ? "VMPEG" :              \
73         format == FILE_VORBIS  ? "VORBIS" :             \
74         format == FILE_WAV     ? "WAV" :                \
75         format == FILE_EXR     ? "EXR" :                \
76         format == FILE_EXR_LIST ? "EXR_LIST" :          \
77         format == FILE_RAWDV   ? "RAWDV" :              \
78         format == FILE_OGG     ? "OGG" :                \
79         format == FILE_YUV     ? "YUV" :                \
80         "UNKNOWN")
82 #if 0
83 N_("AC3")
84 N_("Apple/SGI AIFF")
85 N_("MPEG Audio")    // For encoding only
86 N_("Sun/NeXT AU")
87 N_("Microsoft AVI")
88 N_("Microsoft WAV")
89 N_("AVI Arne Type 1")
90 N_("AVI DV Type 2")
91 N_("AVI Avifile")
92 N_("AVI Lavtools")
93 N_("Raw DV")
94 N_("JPEG Sequence")
95 N_("JPEG")
96 N_("Quicktime for Linux")
97 N_("MPEG")          // For decoding only
98 N_("Raw PCM")
99 N_("PNG Sequence")
100 N_("PNG")
101 N_("Unknown sound")
102 N_("TGA Sequence")
103 N_("TGA")
104 N_("TIFF")
105 N_("TIFF Sequence")
106 N_("MPEG Video")    // For encoding only
107 N_("OGG Vorbis")
108 N_("EXR")
109 N_("EXR Sequence")
110 N_("OGG Theora/Vorbis")
111 #endif
113 #define AC3_NAME "AC3"
114 #define AIFF_NAME "Apple/SGI AIFF"
115 #define AMPEG_NAME "MPEG Audio"    // For encoding only
116 #define AU_NAME "Sun/NeXT AU"
117 #define AVI_NAME "Microsoft AVI"
118 #define WAV_NAME "Microsoft WAV"
119 #define AVI_ARNE1_NAME "AVI Arne Type 1"
120 #define AVI_ARNE2_NAME "AVI DV Type 2"
121 #define AVI_AVIFILE_NAME "AVI Avifile"
122 #define AVI_LAVTOOLS_NAME "AVI Lavtools"
123 #define RAWDV_NAME "Raw DV"
124 #define OGG_NAME "OGG Theora/Vorbis"
125 #define JPEG_LIST_NAME "JPEG Sequence"
126 #define JPEG_NAME "JPEG"
127 #define MOV_NAME "Quicktime for Linux"
128 #define MPEG_NAME "MPEG"           // For decoding only
129 #define PCM_NAME "Raw PCM"
130 #define PNG_LIST_NAME "PNG Sequence"
131 #define PNG_NAME "PNG"
132 #define SND_NAME "Unknown sound"
133 #define TGA_LIST_NAME "TGA Sequence"
134 #define TGA_NAME "TGA"
135 #define TIFF_NAME "TIFF"
136 #define TIFF_LIST_NAME "TIFF Sequence"
137 #define VMPEG_NAME "MPEG Video"    // For encoding only
138 #define VORBIS_NAME "OGG Vorbis"
139 #define EXR_NAME "EXR"
140 #define EXR_LIST_NAME "EXR Sequence"
141 #define YUV_NAME "YUV4MPEG Stream"
144 #define BITSLINEAR8    8
145 #define BITSLINEAR16   16
146 #define BITSLINEAR24   24
147 #define BITSLINEAR32   32
148 #define BITS_ADPCM     252
149 #define BITSFLOAT      253
150 #define BITSULAW       254
151 #define BITSIMA4       255
153 #if 0
154 N_("8 Bit Linear")
155 N_("16 Bit Linear")
156 N_("24 Bit Linear")
157 N_("32 Bit Linear")
158 N_("u Law")
159 N_("IMA 4")
160 N_("ADPCM")
161 N_("Float")
163 // Video formats not part of Quicktime
164 N_("RGB ALPHA")
165 N_("PNG ALPHA")
166 #endif
168 #define NAME_8BIT "8 Bit Linear"
169 #define NAME_16BIT "16 Bit Linear"
170 #define NAME_24BIT "24 Bit Linear"
171 #define NAME_32BIT "32 Bit Linear"
172 #define NAME_ULAW "u Law"
173 #define NAME_IMA4 "IMA 4"
174 #define NAME_ADPCM "ADPCM"
175 #define NAME_FLOAT "Float"
177 // Video formats not part of Quicktime
178 #define MOV_RGBA "RGB ALPHA"
179 #define MOV_PNGA "PNG ALPHA"
182 class File;
184 #endif