r802: Remove renderframfsclient and renderfarmfsserver .h and .C from Makefile.am...
[cinelerra_cv/mob.git] / cinelerra / file.inc
blobeac54789749f3d025b3718bf40d95c38483de7c3
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_OGG                        30
38 #define FILE_WAV                        2
39 #define FILE_EXR                26
40 #define FILE_EXR_LIST           27
41 #define FILE_CR2                28
42 #define FILE_YUV                29      // mjpegtools YUV4MPEG (aka YUV4MPEG2)
43 #define FILE_VORBIS             31
44 #define FILE_RAWDV              32
46 // For formats supported by plugins, the format number is the plugin number in the 
47 // plugin list ORed with 0x8000.
49 #define FILE_FORMAT_PREFIX(format) ( \
50         format == FILE_AIFF    ? "AIFF" :               \
51         format == FILE_AMPEG   ? "MPEG" :               \
52         format == FILE_AC3     ? "AC3" :                \
53         format == FILE_AU      ? "AU" :                 \
54         format == FILE_AVI_ARNE1 ? "AVI_ARNE1" :        \
55         format == FILE_AVI     ? "AVI" :                \
56         format == FILE_AVI_ARNE2 ? "AVI_ARNE2" :        \
57         format == FILE_AVI_AVIFILE ? "AVIFILE" :        \
58         format == FILE_AVI_LAVTOOLS ? "AVI_LAVTOOLS" :  \
59         format == FILE_GIF     ? "GIF" :                \
60         format == FILE_JPEG    ? "JPEG" :               \
61         format == FILE_JPEG_LIST ? "JPEG_LIST" :        \
62         format == FILE_MOV     ? "MOV" :                \
63         format == FILE_MPEG    ? "MPEG" :               \
64         format == FILE_PCM     ? "PCM" :                \
65         format == FILE_PLUGIN  ? "PLUGIN" :             \
66         format == FILE_PNG     ? "PNG" :                \
67         format == FILE_PNG_LIST ? "PNG_LIST" :          \
68         format == FILE_SND     ? "SND" :                \
69         format == FILE_TGA     ? "TGA" :                \
70         format == FILE_TGA_LIST ? "TGA_LIST" :          \
71         format == FILE_TIFF    ? "TIFF" :               \
72         format == FILE_TIFF_LIST ? "TIFF_LIST" :        \
73         format == FILE_VMPEG   ? "VMPEG" :              \
74         format == FILE_VORBIS  ? "VORBIS" :             \
75         format == FILE_WAV     ? "WAV" :                \
76         format == FILE_EXR     ? "EXR" :                \
77         format == FILE_EXR_LIST ? "EXR_LIST" :          \
78         format == FILE_RAWDV   ? "RAWDV" :              \
79         format == FILE_OGG     ? "OGG" :                \
80         format == FILE_YUV     ? "YUV" :                \
81         "UNKNOWN")
83 #if 0
84 N_("AC3")
85 N_("Apple/SGI AIFF")
86 N_("MPEG Audio")    // For encoding only
87 N_("Sun/NeXT AU")
88 N_("Microsoft AVI")
89 N_("Microsoft WAV")
90 N_("AVI Arne Type 1")
91 N_("AVI DV Type 2")
92 N_("AVI Avifile")
93 N_("AVI Lavtools")
94 N_("Raw DV")
95 N_("JPEG Sequence")
96 N_("JPEG")
97 N_("Quicktime for Linux")
98 N_("MPEG")          // For decoding only
99 N_("Raw PCM")
100 N_("PNG Sequence")
101 N_("PNG")
102 N_("Unknown sound")
103 N_("TGA Sequence")
104 N_("TGA")
105 N_("TIFF")
106 N_("TIFF Sequence")
107 N_("MPEG Video")    // For encoding only
108 N_("OGG Theora/Vorbis")
109 N_("OGG Vorbis")    // For decoding only
110 N_("EXR")
111 N_("EXR Sequence")
112 N_("OGG Theora/Vorbis")
113 #endif
115 #define AC3_NAME "AC3"
116 #define AIFF_NAME "Apple/SGI AIFF"
117 #define AMPEG_NAME "MPEG Audio"    // For encoding only
118 #define AU_NAME "Sun/NeXT AU"
119 #define AVI_NAME "Microsoft AVI"
120 #define WAV_NAME "Microsoft WAV"
121 #define AVI_ARNE1_NAME "AVI Arne Type 1"
122 #define AVI_ARNE2_NAME "AVI DV Type 2"
123 #define AVI_AVIFILE_NAME "AVI Avifile"
124 #define AVI_LAVTOOLS_NAME "AVI Lavtools"
125 #define RAWDV_NAME "Raw DV"
126 #define OGG_NAME "OGG Theora/Vorbis"
127 #define JPEG_LIST_NAME "JPEG Sequence"
128 #define JPEG_NAME "JPEG"
129 #define MOV_NAME "Quicktime for Linux"
130 #define MPEG_NAME "MPEG"           // For decoding only
131 #define OGG_NAME "OGG Theora/Vorbis"
132 #define VORBIS_NAME "OGG Vorbis"
133 #define PCM_NAME "Raw PCM"
134 #define PNG_LIST_NAME "PNG Sequence"
135 #define PNG_NAME "PNG"
136 #define SND_NAME "Unknown sound"
137 #define TGA_LIST_NAME "TGA Sequence"
138 #define TGA_NAME "TGA"
139 #define TIFF_NAME "TIFF"
140 #define TIFF_LIST_NAME "TIFF Sequence"
141 #define VMPEG_NAME "MPEG Video"    // For encoding only
142 #define EXR_NAME "EXR"
143 #define CR2_NAME "Raw Camera"
144 #define EXR_LIST_NAME "EXR Sequence"
145 #define YUV_NAME "YUV4MPEG Stream"
148 #define BITSLINEAR8    8
149 #define BITSLINEAR16   16
150 #define BITSLINEAR24   24
151 #define BITSLINEAR32   32
152 #define BITS_ADPCM     252
153 #define BITSFLOAT      253
154 #define BITSULAW       254
155 #define BITSIMA4       255
157 #if 0
158 N_("8 Bit Linear")
159 N_("16 Bit Linear")
160 N_("24 Bit Linear")
161 N_("32 Bit Linear")
162 N_("u Law")
163 N_("IMA 4")
164 N_("ADPCM")
165 N_("Float")
167 // Video formats not part of Quicktime
168 N_("RGB ALPHA")
169 N_("PNG ALPHA")
170 #endif
172 #define NAME_8BIT "8 Bit Linear"
173 #define NAME_16BIT "16 Bit Linear"
174 #define NAME_24BIT "24 Bit Linear"
175 #define NAME_32BIT "32 Bit Linear"
176 #define NAME_ULAW "u Law"
177 #define NAME_IMA4 "IMA 4"
178 #define NAME_ADPCM "ADPCM"
179 #define NAME_FLOAT "Float"
181 // Video formats not part of Quicktime
182 #define MOV_RGBA "RGB ALPHA"
183 #define MOV_PNGA "PNG ALPHA"
186 class File;
188 #endif