[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 102 - (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 :     int mode;
72 :     int bitrate;
73 :     int quality;
74 :     int quant;
75 : h 30 int rc_buffersize;
76 : Isibaar 3
77 : h 30 int motion_search;
78 :     int quant_type;
79 :     int fourcc_used;
80 :     int max_key_interval;
81 :     int lum_masking;
82 : h 102 int interlacing;
83 : Isibaar 3
84 :     int min_iquant;
85 :     int max_iquant;
86 : h 30 int min_pquant;
87 :     int max_pquant;
88 :     BYTE qmatrix_intra[64];
89 :     BYTE qmatrix_inter[64];
90 : Isibaar 3
91 : h 30 int desired_size;
92 : Isibaar 3 int keyframe_boost;
93 :     int min_key_interval;
94 : h 30 int discard1pass;
95 :     int dummy2pass;
96 :     int curve_compression_high;
97 :     int curve_compression_low;
98 : h 61 int use_alt_curve;
99 :     int alt_curve_use_auto;
100 :     int alt_curve_auto_str;
101 :     int alt_curve_use_auto_bonus_bias;
102 :     int alt_curve_bonus_bias;
103 :     int alt_curve_type;
104 :     int alt_curve_high_dist;
105 :     int alt_curve_low_dist;
106 :     int alt_curve_min_rel_qual;
107 : Isibaar 3 int bitrate_payback_delay;
108 :     int bitrate_payback_method;
109 : h 102 int hinted_me;
110 :     char hintfile[MAX_PATH];
111 : h 30 char stats1[MAX_PATH];
112 :     char stats2[MAX_PATH];
113 : Isibaar 3
114 :     int credits_start;
115 :     int credits_start_begin;
116 :     int credits_start_end;
117 :     int credits_end;
118 :     int credits_end_begin;
119 :     int credits_end_end;
120 :    
121 :     int credits_mode;
122 :     int credits_rate;
123 :     int credits_quant_i;
124 :     int credits_quant_p;
125 :     int credits_start_size;
126 :     int credits_end_size;
127 :    
128 : h 61 // char build[50];
129 : h 30 DWORD cpu;
130 :     float fquant;
131 : Isibaar 3 BOOL save;
132 :     } CONFIG;
133 :    
134 :     typedef struct PROPSHEETINFO
135 :     {
136 :     int page;
137 :     CONFIG * config;
138 :     } PROPSHEETINFO;
139 :    
140 : h 61 typedef struct REG_INT
141 :     {
142 :     char* reg_value;
143 :     int* config_int;
144 :     int def;
145 :     } REG_INT;
146 : Isibaar 3
147 : h 61 typedef struct REG_STR
148 :     {
149 :     char* reg_value;
150 :     char* config_str;
151 :     char* def;
152 :     } REG_STR;
153 :    
154 : Isibaar 3 void config_reg_get(CONFIG *);
155 :     void config_reg_set(CONFIG *);
156 : h 30 void config_reg_default(CONFIG *);
157 : Isibaar 3 int config_get_int(HWND, UINT, int);
158 : h 30 void main_download(HWND, CONFIG *);
159 :     void main_slider(HWND, CONFIG *);
160 :     void main_value(HWND, CONFIG *);
161 :     void adv_dialog(HWND, CONFIG *);
162 :     void adv_mode(HWND, int);
163 :     void adv_upload(HWND, int, CONFIG *);
164 :     void adv_download(HWND, int, CONFIG *);
165 : Isibaar 3 void quant_upload(HWND, CONFIG *);
166 :     void quant_download(HWND, CONFIG *);
167 : h 61 BOOL CALLBACK enum_tooltips(HWND, LPARAM);
168 : h 30 BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM);
169 :     BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM);
170 : Isibaar 3 BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM);
171 : h 30 BOOL CALLBACK about_proc(HWND, UINT, WPARAM, LPARAM);
172 : Isibaar 3
173 :     #endif /* _CONFIG_H_ */

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