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
29 // Return values for open_file
31 #define FILE_NOT_FOUND 1
32 #define FILE_UNRECOGNIZED_CODEC 2
35 // Numeric codes for each file format
36 // They're stored in XML files, so they have to be fixed.
37 #define FILE_PLUGIN 0x8000
38 #define FILE_UNKNOWN 0
39 // Libzmpeg3 decoding and transport stream capture only
46 #define FILE_JPEG_LIST 8
50 #define FILE_TGA_LIST 13
53 #define FILE_AMPEG 16 // For encoding only
54 #define FILE_VMPEG 17 // For encoding only
56 #define FILE_TIFF_LIST 22
57 #define FILE_PNG_LIST 23
58 #define FILE_AC3 25 // AC3 encoding
60 #define FILE_EXR_LIST 27
63 #define FILE_VORBIS 31
65 #define FILE_FFMPEG 33
67 #define FILE_CR2_LIST 35
68 #define FILE_GIF_LIST 36
71 // For formats supported by plugins, the format number is the plugin number in the
72 // plugin list ORed with 0x8000.
88 N_("MPEG Audio") // For encoding only
89 N_("MPEG") // For decoding only
90 N_("MPEG Video") // For encoding only
91 N_("OGG Theora/Vorbis")
92 N_("OGG Vorbis") // For decoding only
105 #define AC3_NAME "AC3"
106 #define AIFF_NAME "Apple/SGI AIFF"
107 #define AMPEG_NAME "MPEG Audio" // For encoding only
108 #define AU_NAME "Sun/NeXT AU"
109 #define AVI_ARNE1_NAME "AVI Arne Type 1"
110 #define AVI_ARNE2_NAME "AVI DV Type 2"
111 #define AVI_AVIFILE_NAME "AVI Avifile"
112 #define AVI_LAVTOOLS_NAME "AVI Lavtools"
113 #define CR2_LIST_NAME "CR2 Sequence"
114 #define CR2_NAME "Raw Camera"
115 #define DBASE_NAME "DB"
116 #define EXR_LIST_NAME "EXR Sequence"
117 #define EXR_NAME "EXR"
118 #define FFMPEG_NAME "FFMPEG"
119 #define FLAC_NAME "FLAC"
120 #define JPEG_LIST_NAME "JPEG Sequence"
121 #define JPEG_NAME "JPEG"
122 #define MPEG_NAME "MPEG" // For decoding only
123 #define OGG_NAME "OGG Theora/Vorbis"
124 #define PCM_NAME "Raw PCM"
125 #define PNG_LIST_NAME "PNG Sequence"
126 #define PNG_NAME "PNG"
127 #define RAWDV_NAME "Raw DV"
128 #define SCENE_NAME "Text To Movie"
129 #define SND_NAME "Unknown sound"
130 #define TGA_LIST_NAME "TGA Sequence"
131 #define TGA_NAME "TGA"
132 #define TIFF_LIST_NAME "TIFF Sequence"
133 #define TIFF_NAME "TIFF"
134 #define VMPEG_NAME "MPEG Video" // For encoding only
135 #define VORBIS_NAME "OGG Vorbis"
136 #define WAV_NAME "Microsoft WAV"
138 #define BITSLINEAR8 8
139 #define BITSLINEAR16 16
140 #define BITSLINEAR24 24
141 #define BITSLINEAR32 32
142 #define BITS_ADPCM 252
143 #define BITSFLOAT 253
160 #define NAME_8BIT "8 Bit Linear"
161 #define NAME_16BIT "16 Bit Linear"
162 #define NAME_24BIT "24 Bit Linear"
163 #define NAME_32BIT "32 Bit Linear"
164 #define NAME_ULAW "u Law"
165 #define NAME_ADPCM "ADPCM"
166 #define NAME_FLOAT "Float"
170 //result<0: continue skimming, result>=0: exit return code
171 typedef int (*skim_fn)(void *vp, int track);
173 void get_exe_path(char *result);