Parent Directory | Revision Log
Revision 392 - (view) (download)
1 : | Isibaar | 3 | #ifndef _CONFIG_H_ |
2 : | #define _CONFIG_H_ | ||
3 : | |||
4 : | #include <windows.h> | ||
5 : | |||
6 : | |||
7 : | HINSTANCE hInst; | ||
8 : | h | 61 | HWND hTooltip; |
9 : | Isibaar | 3 | |
10 : | |||
11 : | /* small hack */ | ||
12 : | #ifndef IDC_HAND | ||
13 : | #define IDC_HAND MAKEINTRESOURCE(32649) | ||
14 : | #endif | ||
15 : | |||
16 : | /* one kilobit */ | ||
17 : | #define CONFIG_KBPS 1000 | ||
18 : | |||
19 : | /* registry stuff */ | ||
20 : | #define XVID_REG_KEY HKEY_CURRENT_USER | ||
21 : | h | 30 | #define XVID_REG_PARENT "Software\\GNU" |
22 : | #define XVID_REG_CHILD "XviD" | ||
23 : | Isibaar | 3 | #define XVID_REG_CLASS "config" |
24 : | |||
25 : | h | 61 | #define XVID_BUILD __TIME__ ", " __DATE__ |
26 : | chl | 361 | #define XVID_WEBSITE "http://www.xvid.org/" |
27 : | #define XVID_SPECIAL_BUILD "(Vanilla CVS Build)" | ||
28 : | Isibaar | 3 | |
29 : | /* constants */ | ||
30 : | h | 102 | #define CONFIG_HINTFILE "\\hintfile.mvh" |
31 : | Isibaar | 3 | #define CONFIG_2PASS_1_FILE "\\video.stats" |
32 : | #define CONFIG_2PASS_2_FILE "\\videogk.stats" | ||
33 : | |||
34 : | /* property sheets - sheets can be reordered here */ | ||
35 : | h | 61 | #define DLG_COUNT 6 |
36 : | Isibaar | 3 | |
37 : | h | 30 | #define DLG_GLOBAL 0 |
38 : | #define DLG_QUANT 1 | ||
39 : | #define DLG_2PASS 2 | ||
40 : | h | 61 | #define DLG_2PASSALT 3 |
41 : | #define DLG_CREDITS 4 | ||
42 : | #define DLG_CPU 5 | ||
43 : | Isibaar | 3 | |
44 : | /* codec modes */ | ||
45 : | #define DLG_MODE_CBR 0 | ||
46 : | #define DLG_MODE_VBR_QUAL 1 | ||
47 : | #define DLG_MODE_VBR_QUANT 2 | ||
48 : | #define DLG_MODE_2PASS_1 3 | ||
49 : | #define DLG_MODE_2PASS_2_EXT 4 | ||
50 : | #define DLG_MODE_2PASS_2_INT 5 | ||
51 : | #define DLG_MODE_NULL 6 | ||
52 : | |||
53 : | /* quantizer modes */ | ||
54 : | #define QUANT_MODE_H263 0 | ||
55 : | #define QUANT_MODE_MPEG 1 | ||
56 : | #define QUANT_MODE_CUSTOM 2 | ||
57 : | h | 30 | #define QUANT_MODE_MOD 3 |
58 : | Isibaar | 3 | |
59 : | /* credits modes */ | ||
60 : | #define CREDITS_MODE_RATE 0 | ||
61 : | #define CREDITS_MODE_QUANT 1 | ||
62 : | #define CREDITS_MODE_SIZE 2 | ||
63 : | |||
64 : | #define CREDITS_START 1 | ||
65 : | #define CREDITS_END 2 | ||
66 : | |||
67 : | h | 61 | #define RAD2DEG 57.295779513082320876798154814105 |
68 : | #define DEG2RAD 0.017453292519943295769236907684886 | ||
69 : | Isibaar | 3 | |
70 : | typedef struct | ||
71 : | { | ||
72 : | Isibaar | 134 | /********** ATTENTION **********/ |
73 : | int mode; // Vidomi directly accesses these vars | ||
74 : | int rc_bitrate; // | ||
75 : | int desired_size; // please try to avoid modifications here | ||
76 : | char stats1[MAX_PATH]; // | ||
77 : | /*******************************/ | ||
78 : | |||
79 : | Isibaar | 3 | int quality; |
80 : | int quant; | ||
81 : | h | 121 | int rc_reaction_delay_factor; |
82 : | int rc_averaging_period; | ||
83 : | int rc_buffer; | ||
84 : | Isibaar | 3 | |
85 : | h | 30 | int motion_search; |
86 : | int quant_type; | ||
87 : | int fourcc_used; | ||
88 : | int max_key_interval; | ||
89 : | h | 109 | int min_key_interval; |
90 : | h | 30 | int lum_masking; |
91 : | h | 102 | int interlacing; |
92 : | chl | 355 | //added by koepi for gruel's greyscale_mode |
93 : | int greyscale; | ||
94 : | // end of koepi's additions | ||
95 : | suxen_drol | 228 | #ifdef BFRAMES |
96 : | int max_bframes; | ||
97 : | int bquant_ratio; | ||
98 : | int packed; | ||
99 : | suxen_drol | 235 | int dx50bvop; |
100 : | int debug; | ||
101 : | suxen_drol | 228 | #endif |
102 : | Isibaar | 3 | |
103 : | int min_iquant; | ||
104 : | int max_iquant; | ||
105 : | h | 30 | int min_pquant; |
106 : | int max_pquant; | ||
107 : | BYTE qmatrix_intra[64]; | ||
108 : | BYTE qmatrix_inter[64]; | ||
109 : | Isibaar | 3 | |
110 : | int keyframe_boost; | ||
111 : | Foxer | 343 | //added by koepi for new 2pass curve treatment |
112 : | int kftreshold; | ||
113 : | int kfreduction; | ||
114 : | // end of koepi's additions | ||
115 : | h | 30 | int discard1pass; |
116 : | int dummy2pass; | ||
117 : | int curve_compression_high; | ||
118 : | int curve_compression_low; | ||
119 : | h | 61 | int use_alt_curve; |
120 : | int alt_curve_use_auto; | ||
121 : | int alt_curve_auto_str; | ||
122 : | int alt_curve_use_auto_bonus_bias; | ||
123 : | int alt_curve_bonus_bias; | ||
124 : | int alt_curve_type; | ||
125 : | int alt_curve_high_dist; | ||
126 : | int alt_curve_low_dist; | ||
127 : | int alt_curve_min_rel_qual; | ||
128 : | h | 109 | int twopass_max_bitrate; |
129 : | int twopass_max_overflow_improvement; | ||
130 : | int twopass_max_overflow_degradation; | ||
131 : | Isibaar | 3 | int bitrate_payback_delay; |
132 : | int bitrate_payback_method; | ||
133 : | h | 102 | int hinted_me; |
134 : | char hintfile[MAX_PATH]; | ||
135 : | h | 30 | char stats2[MAX_PATH]; |
136 : | Isibaar | 3 | |
137 : | int credits_start; | ||
138 : | int credits_start_begin; | ||
139 : | int credits_start_end; | ||
140 : | int credits_end; | ||
141 : | int credits_end_begin; | ||
142 : | int credits_end_end; | ||
143 : | |||
144 : | chl | 361 | //added by koepi for gruel's greyscale_mode |
145 : | int credits_greyscale; | ||
146 : | // end of koepi's additions | ||
147 : | Isibaar | 3 | int credits_mode; |
148 : | int credits_rate; | ||
149 : | int credits_quant_i; | ||
150 : | int credits_quant_p; | ||
151 : | int credits_start_size; | ||
152 : | int credits_end_size; | ||
153 : | |||
154 : | suxen_drol | 295 | #ifdef _SMP |
155 : | int num_threads; | ||
156 : | #endif | ||
157 : | suxen_drol | 324 | #ifdef BFRAMES |
158 : | int frame_drop_ratio; | ||
159 : | #endif | ||
160 : | suxen_drol | 295 | |
161 : | h | 61 | // char build[50]; |
162 : | h | 30 | DWORD cpu; |
163 : | float fquant; | ||
164 : | Isibaar | 3 | BOOL save; |
165 : | } CONFIG; | ||
166 : | |||
167 : | typedef struct PROPSHEETINFO | ||
168 : | { | ||
169 : | int page; | ||
170 : | CONFIG * config; | ||
171 : | } PROPSHEETINFO; | ||
172 : | |||
173 : | h | 61 | typedef struct REG_INT |
174 : | { | ||
175 : | char* reg_value; | ||
176 : | int* config_int; | ||
177 : | int def; | ||
178 : | } REG_INT; | ||
179 : | Isibaar | 3 | |
180 : | h | 61 | typedef struct REG_STR |
181 : | { | ||
182 : | char* reg_value; | ||
183 : | char* config_str; | ||
184 : | char* def; | ||
185 : | } REG_STR; | ||
186 : | |||
187 : | Isibaar | 3 | void config_reg_get(CONFIG *); |
188 : | void config_reg_set(CONFIG *); | ||
189 : | h | 30 | void config_reg_default(CONFIG *); |
190 : | suxen_drol | 228 | int config_get_int(HWND, INT, int); |
191 : | int config_get_uint(HWND, UINT, int); | ||
192 : | h | 30 | void main_download(HWND, CONFIG *); |
193 : | void main_slider(HWND, CONFIG *); | ||
194 : | void main_value(HWND, CONFIG *); | ||
195 : | void adv_dialog(HWND, CONFIG *); | ||
196 : | void adv_mode(HWND, int); | ||
197 : | void adv_upload(HWND, int, CONFIG *); | ||
198 : | void adv_download(HWND, int, CONFIG *); | ||
199 : | Isibaar | 3 | void quant_upload(HWND, CONFIG *); |
200 : | void quant_download(HWND, CONFIG *); | ||
201 : | h | 61 | BOOL CALLBACK enum_tooltips(HWND, LPARAM); |
202 : | h | 30 | BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM); |
203 : | BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM); | ||
204 : | Isibaar | 3 | BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM); |
205 : | h | 30 | BOOL CALLBACK about_proc(HWND, UINT, WPARAM, LPARAM); |
206 : | Isibaar | 3 | |
207 : | #endif /* _CONFIG_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |