r773: Fix a regression - crush when rendering plugins by themselves.
[cinelerra_cv/mob.git] / quicktime / interlacemodes.h
blobb2ca3643af6cfcb4e77c87c7698c0f65330b755f
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_TOP_FIRST 1
34 #define BC_ILACE_MODE_TOP_FIRST_T "Top Fields First"
35 #define BC_ILACE_MODE_BOTTOM_FIRST 2
36 #define BC_ILACE_MODE_BOTTOM_FIRST_T "Bottom 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 // Refer to <mjpegtools/yuv4mpeg.h> (descriptions were cut-and-pasted!)
56 #define BC_ILACE_Y4M_UKNOWN_T "unknown"
57 #define BC_ILACE_Y4M_NONE_T "non-interlaced, progressive frame"
58 #define BC_ILACE_Y4M_TOP_FIRST_T "interlaced, top-field first"
59 #define BC_ILACE_Y4M_BOTTOM_FIRST_T "interlaced, bottom-field first"
60 #define BC_ILACE_Y4M_MIXED_T "mixed, \"refer to frame header\""
62 #ifdef __cplusplus
63 extern "C" {
64 #endif
66 void ilaceautofixoption_to_text(char *string, int autofixoption);
67 int ilaceautofixoption_from_text(char *text, int thedefault);
69 void ilacemode_to_text(char *string, int ilacemode);
70 int ilacemode_from_text(char *text, int thedefault);
72 void ilacefixmethod_to_text(char *string, int fixmethod);
73 int ilacefixmethod_from_text(char *text, int thedefault);
75 int ilaceautofixmethod(int projectilacemode, int assetilacemode);
76 int ilaceautofixmethod2(int projectilacemode, int assetautofixoption, int assetilacemode, int assetfixmethod);
78 int ilace_bc_to_yuv4mpeg(int ilacemode);
79 int ilace_yuv4mpeg_to_bc(int ilacemode);
81 void ilace_yuv4mpeg_mode_to_text(char *string, int ilacemode);
83 #ifdef __cplusplus
85 #endif
87 #endif // INTERLACEMODES_H