Parent Directory | Revision Log
Revision 61 -
(view)
(download)
Original Path: trunk/vfw/src/config.h
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 : | Isibaar | 3 | #define XVID_WEBSITE "http://www.xvid.org" |
27 : | |||
28 : | /* constants */ | ||
29 : | #define CONFIG_2PASS_1_FILE "\\video.stats" | ||
30 : | #define CONFIG_2PASS_2_FILE "\\videogk.stats" | ||
31 : | |||
32 : | /* property sheets - sheets can be reordered here */ | ||
33 : | h | 61 | #define DLG_COUNT 6 |
34 : | Isibaar | 3 | |
35 : | h | 30 | #define DLG_GLOBAL 0 |
36 : | #define DLG_QUANT 1 | ||
37 : | #define DLG_2PASS 2 | ||
38 : | h | 61 | #define DLG_2PASSALT 3 |
39 : | #define DLG_CREDITS 4 | ||
40 : | #define DLG_CPU 5 | ||
41 : | Isibaar | 3 | |
42 : | /* codec modes */ | ||
43 : | #define DLG_MODE_CBR 0 | ||
44 : | #define DLG_MODE_VBR_QUAL 1 | ||
45 : | #define DLG_MODE_VBR_QUANT 2 | ||
46 : | #define DLG_MODE_2PASS_1 3 | ||
47 : | #define DLG_MODE_2PASS_2_EXT 4 | ||
48 : | #define DLG_MODE_2PASS_2_INT 5 | ||
49 : | #define DLG_MODE_NULL 6 | ||
50 : | |||
51 : | /* quantizer modes */ | ||
52 : | #define QUANT_MODE_H263 0 | ||
53 : | #define QUANT_MODE_MPEG 1 | ||
54 : | #define QUANT_MODE_CUSTOM 2 | ||
55 : | h | 30 | #define QUANT_MODE_MOD 3 |
56 : | Isibaar | 3 | |
57 : | /* credits modes */ | ||
58 : | #define CREDITS_MODE_RATE 0 | ||
59 : | #define CREDITS_MODE_QUANT 1 | ||
60 : | #define CREDITS_MODE_SIZE 2 | ||
61 : | |||
62 : | #define CREDITS_START 1 | ||
63 : | #define CREDITS_END 2 | ||
64 : | |||
65 : | h | 61 | #define RAD2DEG 57.295779513082320876798154814105 |
66 : | #define DEG2RAD 0.017453292519943295769236907684886 | ||
67 : | Isibaar | 3 | |
68 : | typedef struct | ||
69 : | { | ||
70 : | int mode; | ||
71 : | int bitrate; | ||
72 : | int quality; | ||
73 : | int quant; | ||
74 : | h | 30 | int rc_buffersize; |
75 : | Isibaar | 3 | |
76 : | h | 30 | int motion_search; |
77 : | int quant_type; | ||
78 : | int fourcc_used; | ||
79 : | int max_key_interval; | ||
80 : | int lum_masking; | ||
81 : | Isibaar | 3 | |
82 : | int min_iquant; | ||
83 : | int max_iquant; | ||
84 : | h | 30 | int min_pquant; |
85 : | int max_pquant; | ||
86 : | BYTE qmatrix_intra[64]; | ||
87 : | BYTE qmatrix_inter[64]; | ||
88 : | Isibaar | 3 | |
89 : | h | 30 | int desired_size; |
90 : | Isibaar | 3 | int keyframe_boost; |
91 : | int min_key_interval; | ||
92 : | h | 30 | int discard1pass; |
93 : | int dummy2pass; | ||
94 : | int curve_compression_high; | ||
95 : | int curve_compression_low; | ||
96 : | h | 61 | int use_alt_curve; |
97 : | int alt_curve_use_auto; | ||
98 : | int alt_curve_auto_str; | ||
99 : | int alt_curve_use_auto_bonus_bias; | ||
100 : | int alt_curve_bonus_bias; | ||
101 : | int alt_curve_type; | ||
102 : | int alt_curve_high_dist; | ||
103 : | int alt_curve_low_dist; | ||
104 : | int alt_curve_min_rel_qual; | ||
105 : | Isibaar | 3 | int bitrate_payback_delay; |
106 : | int bitrate_payback_method; | ||
107 : | h | 30 | char stats1[MAX_PATH]; |
108 : | char stats2[MAX_PATH]; | ||
109 : | Isibaar | 3 | |
110 : | int credits_start; | ||
111 : | int credits_start_begin; | ||
112 : | int credits_start_end; | ||
113 : | int credits_end; | ||
114 : | int credits_end_begin; | ||
115 : | int credits_end_end; | ||
116 : | |||
117 : | int credits_mode; | ||
118 : | int credits_rate; | ||
119 : | int credits_quant_i; | ||
120 : | int credits_quant_p; | ||
121 : | int credits_start_size; | ||
122 : | int credits_end_size; | ||
123 : | |||
124 : | h | 61 | // char build[50]; |
125 : | h | 30 | DWORD cpu; |
126 : | float fquant; | ||
127 : | Isibaar | 3 | BOOL save; |
128 : | } CONFIG; | ||
129 : | |||
130 : | typedef struct PROPSHEETINFO | ||
131 : | { | ||
132 : | int page; | ||
133 : | CONFIG * config; | ||
134 : | } PROPSHEETINFO; | ||
135 : | |||
136 : | h | 61 | typedef struct REG_INT |
137 : | { | ||
138 : | char* reg_value; | ||
139 : | int* config_int; | ||
140 : | int def; | ||
141 : | } REG_INT; | ||
142 : | Isibaar | 3 | |
143 : | h | 61 | typedef struct REG_STR |
144 : | { | ||
145 : | char* reg_value; | ||
146 : | char* config_str; | ||
147 : | char* def; | ||
148 : | } REG_STR; | ||
149 : | |||
150 : | Isibaar | 3 | void config_reg_get(CONFIG *); |
151 : | void config_reg_set(CONFIG *); | ||
152 : | h | 30 | void config_reg_default(CONFIG *); |
153 : | Isibaar | 3 | int config_get_int(HWND, UINT, int); |
154 : | h | 30 | void main_download(HWND, CONFIG *); |
155 : | void main_slider(HWND, CONFIG *); | ||
156 : | void main_value(HWND, CONFIG *); | ||
157 : | void adv_dialog(HWND, CONFIG *); | ||
158 : | void adv_mode(HWND, int); | ||
159 : | void adv_upload(HWND, int, CONFIG *); | ||
160 : | void adv_download(HWND, int, CONFIG *); | ||
161 : | Isibaar | 3 | void quant_upload(HWND, CONFIG *); |
162 : | void quant_download(HWND, CONFIG *); | ||
163 : | h | 61 | BOOL CALLBACK enum_tooltips(HWND, LPARAM); |
164 : | h | 30 | BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM); |
165 : | BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM); | ||
166 : | Isibaar | 3 | BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM); |
167 : | h | 30 | BOOL CALLBACK about_proc(HWND, UINT, WPARAM, LPARAM); |
168 : | Isibaar | 3 | |
169 : | #endif /* _CONFIG_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |