[svn] / trunk / vfw / src / config.h Repository:
ViewVC logotype

Annotation of /trunk/vfw/src/config.h

Parent Directory Parent Directory | Revision Log Revision Log


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

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4