Parent Directory
|
Revision Log
Revision 30 - (view) (download)
1 : | Isibaar | 3 | #ifndef _CONFIG_H_ |
2 : | #define _CONFIG_H_ | ||
3 : | |||
4 : | #include <windows.h> | ||
5 : | |||
6 : | |||
7 : | HINSTANCE hInst; | ||
8 : | |||
9 : | |||
10 : | /* small hack */ | ||
11 : | #ifndef IDC_HAND | ||
12 : | #define IDC_HAND MAKEINTRESOURCE(32649) | ||
13 : | #endif | ||
14 : | |||
15 : | /* one kilobit */ | ||
16 : | #define CONFIG_KBPS 1000 | ||
17 : | |||
18 : | /* registry stuff */ | ||
19 : | #define XVID_REG_KEY HKEY_CURRENT_USER | ||
20 : | h | 30 | #define XVID_REG_PARENT "Software\\GNU" |
21 : | #define XVID_REG_CHILD "XviD" | ||
22 : | Isibaar | 3 | #define XVID_REG_CLASS "config" |
23 : | |||
24 : | h | 30 | #define XVID_HELP "Move cursor over item to view help" |
25 : | Isibaar | 3 | #define XVID_WEBSITE "http://www.xvid.org" |
26 : | |||
27 : | /* constants */ | ||
28 : | #define CONFIG_2PASS_1_FILE "\\video.stats" | ||
29 : | #define CONFIG_2PASS_2_FILE "\\videogk.stats" | ||
30 : | |||
31 : | /* property sheets - sheets can be reordered here */ | ||
32 : | #define DLG_COUNT 5 | ||
33 : | |||
34 : | h | 30 | #define DLG_GLOBAL 0 |
35 : | #define DLG_QUANT 1 | ||
36 : | #define DLG_2PASS 2 | ||
37 : | #define DLG_CREDITS 3 | ||
38 : | #define DLG_CPU 4 | ||
39 : | Isibaar | 3 | |
40 : | /* codec modes */ | ||
41 : | #define DLG_MODE_CBR 0 | ||
42 : | #define DLG_MODE_VBR_QUAL 1 | ||
43 : | #define DLG_MODE_VBR_QUANT 2 | ||
44 : | #define DLG_MODE_2PASS_1 3 | ||
45 : | #define DLG_MODE_2PASS_2_EXT 4 | ||
46 : | #define DLG_MODE_2PASS_2_INT 5 | ||
47 : | #define DLG_MODE_NULL 6 | ||
48 : | |||
49 : | /* quantizer modes */ | ||
50 : | #define QUANT_MODE_H263 0 | ||
51 : | #define QUANT_MODE_MPEG 1 | ||
52 : | #define QUANT_MODE_CUSTOM 2 | ||
53 : | h | 30 | #define QUANT_MODE_MOD 3 |
54 : | Isibaar | 3 | |
55 : | /* credits modes */ | ||
56 : | #define CREDITS_MODE_RATE 0 | ||
57 : | #define CREDITS_MODE_QUANT 1 | ||
58 : | #define CREDITS_MODE_SIZE 2 | ||
59 : | |||
60 : | #define CREDITS_START 1 | ||
61 : | #define CREDITS_END 2 | ||
62 : | |||
63 : | |||
64 : | typedef struct | ||
65 : | { | ||
66 : | int mode; | ||
67 : | int bitrate; | ||
68 : | int quality; | ||
69 : | int quant; | ||
70 : | h | 30 | int rc_buffersize; |
71 : | Isibaar | 3 | |
72 : | h | 30 | int motion_search; |
73 : | int quant_type; | ||
74 : | int fourcc_used; | ||
75 : | int max_key_interval; | ||
76 : | int lum_masking; | ||
77 : | Isibaar | 3 | |
78 : | int min_iquant; | ||
79 : | int max_iquant; | ||
80 : | h | 30 | int min_pquant; |
81 : | int max_pquant; | ||
82 : | BYTE qmatrix_intra[64]; | ||
83 : | BYTE qmatrix_inter[64]; | ||
84 : | Isibaar | 3 | |
85 : | h | 30 | int desired_size; |
86 : | Isibaar | 3 | int keyframe_boost; |
87 : | int min_key_interval; | ||
88 : | h | 30 | int discard1pass; |
89 : | int dummy2pass; | ||
90 : | int curve_compression_high; | ||
91 : | int curve_compression_low; | ||
92 : | Isibaar | 3 | int bitrate_payback_delay; |
93 : | int bitrate_payback_method; | ||
94 : | h | 30 | char stats1[MAX_PATH]; |
95 : | char stats2[MAX_PATH]; | ||
96 : | Isibaar | 3 | |
97 : | int credits_start; | ||
98 : | int credits_start_begin; | ||
99 : | int credits_start_end; | ||
100 : | int credits_end; | ||
101 : | int credits_end_begin; | ||
102 : | int credits_end_end; | ||
103 : | |||
104 : | int credits_mode; | ||
105 : | int credits_rate; | ||
106 : | int credits_quant_i; | ||
107 : | int credits_quant_p; | ||
108 : | int credits_start_size; | ||
109 : | int credits_end_size; | ||
110 : | |||
111 : | h | 30 | DWORD cpu; |
112 : | Isibaar | 3 | |
113 : | h | 30 | float fquant; |
114 : | Isibaar | 3 | |
115 : | BOOL save; | ||
116 : | } CONFIG; | ||
117 : | |||
118 : | h | 30 | typedef struct HELPRECT |
119 : | { | ||
120 : | int item; | ||
121 : | RECT rect; | ||
122 : | } HELPRECT; | ||
123 : | Isibaar | 3 | |
124 : | typedef struct PROPSHEETINFO | ||
125 : | { | ||
126 : | int page; | ||
127 : | CONFIG * config; | ||
128 : | } PROPSHEETINFO; | ||
129 : | |||
130 : | |||
131 : | void config_reg_get(CONFIG *); | ||
132 : | void config_reg_set(CONFIG *); | ||
133 : | h | 30 | void config_reg_default(CONFIG *); |
134 : | Isibaar | 3 | int config_get_int(HWND, UINT, int); |
135 : | h | 30 | 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 : | Isibaar | 3 | void quant_upload(HWND, CONFIG *); |
143 : | void quant_download(HWND, CONFIG *); | ||
144 : | h | 30 | LRESULT CALLBACK msg_proc(int, WPARAM, LPARAM); |
145 : | BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM); | ||
146 : | BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM); | ||
147 : | Isibaar | 3 | BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM); |
148 : | h | 30 | BOOL CALLBACK about_proc(HWND, UINT, WPARAM, LPARAM); |
149 : | Isibaar | 3 | |
150 : | #endif /* _CONFIG_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |