17 |
|
|
18 |
/* registry stuff */ |
/* registry stuff */ |
19 |
#define XVID_REG_KEY HKEY_CURRENT_USER |
#define XVID_REG_KEY HKEY_CURRENT_USER |
20 |
#define XVID_REG_SUBKEY "Software\\GNU\\XviD" |
#define XVID_REG_PARENT "Software\\GNU" |
21 |
|
#define XVID_REG_CHILD "XviD" |
22 |
#define XVID_REG_CLASS "config" |
#define XVID_REG_CLASS "config" |
23 |
|
|
24 |
|
#define XVID_HELP "Move cursor over item to view help" |
25 |
#define XVID_WEBSITE "http://www.xvid.org" |
#define XVID_WEBSITE "http://www.xvid.org" |
26 |
|
|
27 |
/* constants */ |
/* constants */ |
31 |
/* property sheets - sheets can be reordered here */ |
/* property sheets - sheets can be reordered here */ |
32 |
#define DLG_COUNT 5 |
#define DLG_COUNT 5 |
33 |
|
|
34 |
#define DLG_MAIN 0 |
#define DLG_GLOBAL 0 |
35 |
#define DLG_ADV 1 |
#define DLG_QUANT 1 |
36 |
#define DLG_DEBUG 2 |
#define DLG_2PASS 2 |
37 |
#define DLG_CPU 3 |
#define DLG_CREDITS 3 |
38 |
#define DLG_ABOUT 4 |
#define DLG_CPU 4 |
39 |
|
|
40 |
/* codec modes */ |
/* codec modes */ |
41 |
#define DLG_MODE_CBR 0 |
#define DLG_MODE_CBR 0 |
50 |
#define QUANT_MODE_H263 0 |
#define QUANT_MODE_H263 0 |
51 |
#define QUANT_MODE_MPEG 1 |
#define QUANT_MODE_MPEG 1 |
52 |
#define QUANT_MODE_CUSTOM 2 |
#define QUANT_MODE_CUSTOM 2 |
53 |
|
#define QUANT_MODE_MOD 3 |
54 |
|
|
55 |
/* credits modes */ |
/* credits modes */ |
56 |
#define CREDITS_MODE_RATE 0 |
#define CREDITS_MODE_RATE 0 |
67 |
int bitrate; |
int bitrate; |
68 |
int quality; |
int quality; |
69 |
int quant; |
int quant; |
70 |
|
int rc_buffersize; |
71 |
|
|
72 |
char stats1[MAX_PATH]; |
int motion_search; |
73 |
char stats2[MAX_PATH]; |
int quant_type; |
74 |
int discard1pass; |
int fourcc_used; |
75 |
int dummy2pass; |
int max_key_interval; |
76 |
int desired_size; |
int lum_masking; |
77 |
|
|
78 |
int min_iquant; |
int min_iquant; |
79 |
int max_iquant; |
int max_iquant; |
80 |
|
int min_pquant; |
81 |
|
int max_pquant; |
82 |
|
BYTE qmatrix_intra[64]; |
83 |
|
BYTE qmatrix_inter[64]; |
84 |
|
|
85 |
|
int desired_size; |
86 |
int keyframe_boost; |
int keyframe_boost; |
87 |
int min_key_interval; |
int min_key_interval; |
88 |
int bitrate_payback_delay; |
int discard1pass; |
89 |
int bitrate_payback_method; |
int dummy2pass; |
90 |
int curve_compression_high; |
int curve_compression_high; |
91 |
int curve_compression_low; |
int curve_compression_low; |
92 |
|
int bitrate_payback_delay; |
93 |
float fquant; |
int bitrate_payback_method; |
94 |
|
char stats1[MAX_PATH]; |
95 |
|
char stats2[MAX_PATH]; |
96 |
|
|
97 |
int credits_start; |
int credits_start; |
98 |
int credits_start_begin; |
int credits_start_begin; |
108 |
int credits_start_size; |
int credits_start_size; |
109 |
int credits_end_size; |
int credits_end_size; |
110 |
|
|
|
int motion_search; |
|
|
int quant_type; |
|
|
int max_key_interval; |
|
|
|
|
|
int rc_buffersize; |
|
|
|
|
|
int min_quant; |
|
|
int max_quant; |
|
|
int lum_masking; |
|
|
|
|
|
int fourcc_used; |
|
|
|
|
|
BYTE qmatrix_intra[64]; |
|
|
BYTE qmatrix_inter[64]; |
|
|
|
|
111 |
DWORD cpu; |
DWORD cpu; |
112 |
|
|
113 |
BOOL save; |
float fquant; |
114 |
|
|
115 |
|
BOOL save; |
116 |
} CONFIG; |
} CONFIG; |
117 |
|
|
118 |
|
typedef struct HELPRECT |
119 |
|
{ |
120 |
|
int item; |
121 |
|
RECT rect; |
122 |
|
} HELPRECT; |
123 |
|
|
124 |
typedef struct PROPSHEETINFO |
typedef struct PROPSHEETINFO |
125 |
{ |
{ |
130 |
|
|
131 |
void config_reg_get(CONFIG *); |
void config_reg_get(CONFIG *); |
132 |
void config_reg_set(CONFIG *); |
void config_reg_set(CONFIG *); |
133 |
void config_mode(HWND); |
void config_reg_default(CONFIG *); |
|
void config_upload(HWND, int, CONFIG *); |
|
|
void config_download(HWND, int, CONFIG *); |
|
|
void config_slider(HWND, CONFIG *); |
|
|
void config_value(HWND, CONFIG *); |
|
134 |
int config_get_int(HWND, UINT, int); |
int config_get_int(HWND, UINT, int); |
135 |
void credits_controls(HWND); |
void main_download(HWND, CONFIG *); |
136 |
|
void main_slider(HWND, CONFIG *); |
137 |
|
void main_value(HWND, CONFIG *); |
138 |
|
void adv_dialog(HWND, CONFIG *); |
139 |
|
void adv_mode(HWND, int); |
140 |
|
void adv_upload(HWND, int, CONFIG *); |
141 |
|
void adv_download(HWND, int, CONFIG *); |
142 |
void quant_upload(HWND, CONFIG *); |
void quant_upload(HWND, CONFIG *); |
143 |
void quant_download(HWND, CONFIG *); |
void quant_download(HWND, CONFIG *); |
144 |
BOOL CALLBACK config_proc(HWND, UINT, WPARAM, LPARAM); |
LRESULT CALLBACK msg_proc(int, WPARAM, LPARAM); |
145 |
BOOL CALLBACK credits_proc(HWND, UINT, WPARAM, LPARAM); |
BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM); |
146 |
BOOL CALLBACK twopass_proc(HWND, UINT, WPARAM, LPARAM); |
BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM); |
147 |
BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM); |
BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM); |
148 |
|
BOOL CALLBACK about_proc(HWND, UINT, WPARAM, LPARAM); |
149 |
|
|
150 |
#endif /* _CONFIG_H_ */ |
#endif /* _CONFIG_H_ */ |