5 |
|
|
6 |
|
|
7 |
HINSTANCE hInst; |
HINSTANCE hInst; |
8 |
|
HWND hTooltip; |
9 |
|
|
10 |
|
|
11 |
/* small hack */ |
/* small hack */ |
22 |
#define XVID_REG_CHILD "XviD" |
#define XVID_REG_CHILD "XviD" |
23 |
#define XVID_REG_CLASS "config" |
#define XVID_REG_CLASS "config" |
24 |
|
|
25 |
#define XVID_HELP "Move cursor over item to view help" |
#define XVID_BUILD __TIME__ ", " __DATE__ |
26 |
#define XVID_WEBSITE "http://www.xvid.org" |
#define XVID_WEBSITE "http://www.xvid.org" |
27 |
|
|
28 |
/* constants */ |
/* constants */ |
30 |
#define CONFIG_2PASS_2_FILE "\\videogk.stats" |
#define CONFIG_2PASS_2_FILE "\\videogk.stats" |
31 |
|
|
32 |
/* property sheets - sheets can be reordered here */ |
/* property sheets - sheets can be reordered here */ |
33 |
#define DLG_COUNT 5 |
#define DLG_COUNT 6 |
34 |
|
|
35 |
#define DLG_GLOBAL 0 |
#define DLG_GLOBAL 0 |
36 |
#define DLG_QUANT 1 |
#define DLG_QUANT 1 |
37 |
#define DLG_2PASS 2 |
#define DLG_2PASS 2 |
38 |
#define DLG_CREDITS 3 |
#define DLG_2PASSALT 3 |
39 |
#define DLG_CPU 4 |
#define DLG_CREDITS 4 |
40 |
|
#define DLG_CPU 5 |
41 |
|
|
42 |
/* codec modes */ |
/* codec modes */ |
43 |
#define DLG_MODE_CBR 0 |
#define DLG_MODE_CBR 0 |
62 |
#define CREDITS_START 1 |
#define CREDITS_START 1 |
63 |
#define CREDITS_END 2 |
#define CREDITS_END 2 |
64 |
|
|
65 |
|
#define RAD2DEG 57.295779513082320876798154814105 |
66 |
|
#define DEG2RAD 0.017453292519943295769236907684886 |
67 |
|
|
68 |
typedef struct |
typedef struct |
69 |
{ |
{ |
93 |
int dummy2pass; |
int dummy2pass; |
94 |
int curve_compression_high; |
int curve_compression_high; |
95 |
int curve_compression_low; |
int curve_compression_low; |
96 |
|
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 |
int bitrate_payback_delay; |
int bitrate_payback_delay; |
106 |
int bitrate_payback_method; |
int bitrate_payback_method; |
107 |
char stats1[MAX_PATH]; |
char stats1[MAX_PATH]; |
121 |
int credits_start_size; |
int credits_start_size; |
122 |
int credits_end_size; |
int credits_end_size; |
123 |
|
|
124 |
|
// char build[50]; |
125 |
DWORD cpu; |
DWORD cpu; |
|
|
|
126 |
float fquant; |
float fquant; |
|
|
|
127 |
BOOL save; |
BOOL save; |
128 |
} CONFIG; |
} CONFIG; |
129 |
|
|
|
typedef struct HELPRECT |
|
|
{ |
|
|
int item; |
|
|
RECT rect; |
|
|
} HELPRECT; |
|
|
|
|
130 |
typedef struct PROPSHEETINFO |
typedef struct PROPSHEETINFO |
131 |
{ |
{ |
132 |
int page; |
int page; |
133 |
CONFIG * config; |
CONFIG * config; |
134 |
} PROPSHEETINFO; |
} PROPSHEETINFO; |
135 |
|
|
136 |
|
typedef struct REG_INT |
137 |
|
{ |
138 |
|
char* reg_value; |
139 |
|
int* config_int; |
140 |
|
int def; |
141 |
|
} REG_INT; |
142 |
|
|
143 |
|
typedef struct REG_STR |
144 |
|
{ |
145 |
|
char* reg_value; |
146 |
|
char* config_str; |
147 |
|
char* def; |
148 |
|
} REG_STR; |
149 |
|
|
150 |
void config_reg_get(CONFIG *); |
void config_reg_get(CONFIG *); |
151 |
void config_reg_set(CONFIG *); |
void config_reg_set(CONFIG *); |
160 |
void adv_download(HWND, int, CONFIG *); |
void adv_download(HWND, int, CONFIG *); |
161 |
void quant_upload(HWND, CONFIG *); |
void quant_upload(HWND, CONFIG *); |
162 |
void quant_download(HWND, CONFIG *); |
void quant_download(HWND, CONFIG *); |
163 |
LRESULT CALLBACK msg_proc(int, WPARAM, LPARAM); |
BOOL CALLBACK enum_tooltips(HWND, LPARAM); |
164 |
BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM); |
BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM); |
165 |
BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM); |
BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM); |
166 |
BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM); |
BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM); |