4 * Copyright (C) 2010 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
25 // Normally, these are sourced from the compiler command line
26 // as: c++ -Dvar=value defines
28 #define CIN_CONFIG "~/.bcast5"
31 #define LOCALE_DIR "$CIN_LIB/locale"
34 #define CINDAT_DIR "$CIN_PATH"
37 #define CINLIB_DIR "$CIN_PATH"
40 #define PLUGIN_DIR "$CIN_LIB/plugins"
43 #define LADSPA_DIR "$CIN_LIB/ladspa"
46 #define CIN_BROWSER "firefox"
51 // Return values for open_file
53 #define FILE_NOT_FOUND 1
54 #define FILE_UNRECOGNIZED_CODEC 2
57 // Numeric codes for each file format
58 // They're stored in XML files, so they have to be fixed.
59 #define FILE_PLUGIN 0x8000
60 #define FILE_UNKNOWN 0
61 // Libzmpeg3 decoding and transport stream capture only
68 #define FILE_JPEG_LIST 8
72 #define FILE_TGA_LIST 13
75 #define FILE_AMPEG 16 // For encoding only
76 #define FILE_VMPEG 17 // For encoding only
78 #define FILE_TIFF_LIST 22
79 #define FILE_PNG_LIST 23
80 #define FILE_AC3 25 // AC3 encoding
82 #define FILE_EXR_LIST 27
85 #define FILE_FFMPEG 33
87 #define FILE_CR2_LIST 35
88 #define FILE_GIF_LIST 36
91 #define FILE_PPM_LIST 39
93 // For formats supported by plugins, the format number is the plugin number in the
94 // plugin list ORed with 0x8000.
110 N_("MPEG Audio") // For encoding only
111 N_("MPEG") // For decoding only
112 N_("MPEG Video") // For encoding only
127 #define AC3_NAME "AC3"
128 #define AIFF_NAME "Apple/SGI AIFF"
129 #define AMPEG_NAME "MPEG Audio" // For encoding only
130 #define AU_NAME "Sun/NeXT AU"
131 #define AVI_ARNE1_NAME "AVI Arne Type 1"
132 #define AVI_ARNE2_NAME "AVI DV Type 2"
133 #define AVI_AVIFILE_NAME "AVI Avifile"
134 #define AVI_LAVTOOLS_NAME "AVI Lavtools"
135 #define CR2_LIST_NAME "CR2 Sequence"
136 #define CR2_NAME "Raw Camera"
137 #define DBASE_NAME "DB"
138 #define EXR_LIST_NAME "EXR Sequence"
139 #define EXR_NAME "EXR"
140 #define FFMPEG_NAME "FFMPEG"
141 #define FLAC_NAME "FLAC"
142 #define JPEG_LIST_NAME "JPEG Sequence"
143 #define JPEG_NAME "JPEG"
144 #define MPEG_NAME "MPEG Stream" // For capture only
145 #define PCM_NAME "Raw PCM"
146 #define PNG_LIST_NAME "PNG Sequence"
147 #define PNG_NAME "PNG"
148 #define PPM_LIST_NAME "PPM Sequence"
149 #define PPM_NAME "PPM"
150 #define RAWDV_NAME "Raw DV"
151 #define SCENE_NAME "Text To Movie"
152 #define SND_NAME "Unknown sound"
153 #define TGA_LIST_NAME "TGA Sequence"
154 #define TGA_NAME "TGA"
155 #define TIFF_LIST_NAME "TIFF Sequence"
156 #define TIFF_NAME "TIFF"
157 #define VMPEG_NAME "MPEG Video" // For encoding only
158 #define WAV_NAME "Microsoft WAV"
160 #define BITSLINEAR8 8
161 #define BITSLINEAR16 16
162 #define BITSLINEAR24 24
163 #define BITSLINEAR32 32
164 #define BITS_ADPCM 252
165 #define BITSFLOAT 253
182 #define NAME_8BIT "8 Bit Linear"
183 #define NAME_16BIT "16 Bit Linear"
184 #define NAME_24BIT "24 Bit Linear"
185 #define NAME_32BIT "32 Bit Linear"
186 #define NAME_ULAW "u Law"
187 #define NAME_ADPCM "ADPCM"
188 #define NAME_FLOAT "Float"
192 //result<0: continue skimming, result>=0: exit return code
193 typedef int (*skim_fn)(void *vp, int track);