r571: fix missing eos
[cinelerra_cv/mob.git] / quicktime / interlacemodes.h
blob7383be4cafac1340d1d1bf8a3d0bae496c1e4dc7
1 /*
2 * This library is free software; you can redistribute it and/or modify it
3 * under the terms of the GNU Lesser General Public License as published
4 * by the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This library is distributed in the hope that it will be useful, but
8 * WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
15 * USA
18 #ifndef INTERLACEMODES_H
19 #define INTERLACEMODES_H
21 #define BC_ILACE_UNKNOWN_T "Error!"
23 //Interlace Automatic fixing options
24 #define BC_ILACE_AUTOFIXOPTION_MANUAL 0
25 #define BC_ILACE_AUTOFIXOPTION_MANUAL_T "Manual compensation using selection"
26 #define BC_ILACE_AUTOFIXOPTION_AUTO 1
27 #define BC_ILACE_AUTOFIXOPTION_AUTO_T "Automatic compensation using modes"
28 //Note: Do not change what the numbers mean as this will make backward-compatability have erroraneous settings.
30 //Interlace Modes
31 #define BC_ILACE_MODE_UNDETECTED 0
32 #define BC_ILACE_MODE_UNDETECTED_T "Unknown"
33 #define BC_ILACE_MODE_ODDLEADS 1
34 #define BC_ILACE_MODE_ODDLEADS_T "Bottom Fields First"
35 #define BC_ILACE_MODE_EVENLEADS 2
36 #define BC_ILACE_MODE_EVENLEADS_T "Top Fields First"
37 #define BC_ILACE_MODE_NOTINTERLACED 3
38 #define BC_ILACE_MODE_NOTINTERLACED_T "Not Interlaced"
40 #define BC_ILACE_ASSET_MODEDEFAULT BC_ILACE_MODE_UNDETECTED
41 #define BC_ILACE_PROJECT_MODEDEFAULT BC_ILACE_MODE_NOTINTERLACED_T
42 //Note: Do not change what the numbers mean as this will make backward-compatability have erroraneous settings.
44 //Interlace Compensation Methods
45 #define BC_ILACE_FIXMETHOD_NONE 0
46 #define BC_ILACE_FIXMETHOD_NONE_T "Do Nothing"
47 #define BC_ILACE_FIXMETHOD_UPONE 1
48 #define BC_ILACE_FIXMETHOD_UPONE_T "Shift Up 1 pixel"
49 #define BC_ILACE_FIXMETHOD_DOWNONE 2
50 #define BC_ILACE_FIXMETHOD_DOWNONE_T "Shift Down 1 pixel"
51 // the following is for project/asset having odd/even, or even/odd
52 #define BC_ILACE_FIXDEFAULT BC_ILACE_FIXMETHOD_UPONE
53 //Note: Do not change what the numbers mean as this will make backward-compatability have erroraneous settings.
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
59 void ilaceautofixoption_to_text(char *string, int autofixoption);
60 int ilaceautofixoption_from_text(char *text, int thedefault);
62 void ilacemode_to_text(char *string, int ilacemode);
63 int ilacemode_from_text(char *text, int thedefault);
65 void ilacefixmethod_to_text(char *string, int fixmethod);
66 int ilacefixmethod_from_text(char *text, int thedefault);
68 int ilaceautofixmethod(int projectilacemode, int assetilacemode);
69 int ilaceautofixmethod2(int projectilacemode, int assetautofixoption, int assetilacemode, int assetfixmethod);
71 #ifdef __cplusplus
73 #endif
75 #endif // INTERLACEMODES_H