[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 3 - (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 :     #define XVID_REG_SUBKEY "Software\\GNU\\XviD"
21 :     #define XVID_REG_CLASS "config"
22 :    
23 :     #define XVID_WEBSITE "http://www.xvid.org"
24 :    
25 :     /* constants */
26 :     #define CONFIG_2PASS_1_FILE "\\video.stats"
27 :     #define CONFIG_2PASS_2_FILE "\\videogk.stats"
28 :    
29 :     /* property sheets - sheets can be reordered here */
30 :     #define DLG_COUNT 5
31 :    
32 :     #define DLG_MAIN 0
33 :     #define DLG_ADV 1
34 :     #define DLG_DEBUG 2
35 :     #define DLG_CPU 3
36 :     #define DLG_ABOUT 4
37 :    
38 :     /* codec modes */
39 :     #define DLG_MODE_CBR 0
40 :     #define DLG_MODE_VBR_QUAL 1
41 :     #define DLG_MODE_VBR_QUANT 2
42 :     #define DLG_MODE_2PASS_1 3
43 :     #define DLG_MODE_2PASS_2_EXT 4
44 :     #define DLG_MODE_2PASS_2_INT 5
45 :     #define DLG_MODE_NULL 6
46 :    
47 :     /* quantizer modes */
48 :     #define QUANT_MODE_H263 0
49 :     #define QUANT_MODE_MPEG 1
50 :     #define QUANT_MODE_CUSTOM 2
51 :    
52 :     /* credits modes */
53 :     #define CREDITS_MODE_RATE 0
54 :     #define CREDITS_MODE_QUANT 1
55 :     #define CREDITS_MODE_SIZE 2
56 :    
57 :     #define CREDITS_START 1
58 :     #define CREDITS_END 2
59 :    
60 :    
61 :     typedef struct
62 :     {
63 :     int mode;
64 :     int bitrate;
65 :     int quality;
66 :     int quant;
67 :    
68 :     char stats1[MAX_PATH];
69 :     char stats2[MAX_PATH];
70 :     int discard1pass;
71 :     int dummy2pass;
72 :     int desired_size;
73 :    
74 :     int min_iquant;
75 :     int max_iquant;
76 :    
77 :     int keyframe_boost;
78 :     int min_key_interval;
79 :     int bitrate_payback_delay;
80 :     int bitrate_payback_method;
81 :     int curve_compression_high;
82 :     int curve_compression_low;
83 :    
84 :     float fquant;
85 :    
86 :     int credits_start;
87 :     int credits_start_begin;
88 :     int credits_start_end;
89 :     int credits_end;
90 :     int credits_end_begin;
91 :     int credits_end_end;
92 :    
93 :     int credits_mode;
94 :     int credits_rate;
95 :     int credits_quant_i;
96 :     int credits_quant_p;
97 :     int credits_start_size;
98 :     int credits_end_size;
99 :    
100 :     int motion_search;
101 :     int quant_type;
102 :     int max_key_interval;
103 :    
104 :     int rc_buffersize;
105 :    
106 :     int min_quant;
107 :     int max_quant;
108 :     int lum_masking;
109 :    
110 :     int fourcc_used;
111 :    
112 :     BYTE qmatrix_intra[64];
113 :     BYTE qmatrix_inter[64];
114 :    
115 :     DWORD cpu;
116 :    
117 :     BOOL save;
118 :    
119 :     } CONFIG;
120 :    
121 :    
122 :     typedef struct PROPSHEETINFO
123 :     {
124 :     int page;
125 :     CONFIG * config;
126 :     } PROPSHEETINFO;
127 :    
128 :    
129 :     void config_reg_get(CONFIG *);
130 :     void config_reg_set(CONFIG *);
131 :     void config_mode(HWND);
132 :     void config_upload(HWND, int, CONFIG *);
133 :     void config_download(HWND, int, CONFIG *);
134 :     void config_slider(HWND, CONFIG *);
135 :     void config_value(HWND, CONFIG *);
136 :     int config_get_int(HWND, UINT, int);
137 :     void credits_controls(HWND);
138 :     void quant_upload(HWND, CONFIG *);
139 :     void quant_download(HWND, CONFIG *);
140 :     BOOL CALLBACK config_proc(HWND, UINT, WPARAM, LPARAM);
141 :     BOOL CALLBACK credits_proc(HWND, UINT, WPARAM, LPARAM);
142 :     BOOL CALLBACK twopass_proc(HWND, UINT, WPARAM, LPARAM);
143 :     BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM);
144 :    
145 :     #endif /* _CONFIG_H_ */

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