[svn] / trunk / vfw / src / config.h Repository:
ViewVC logotype

Diff of /trunk/vfw/src/config.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3, Fri Mar 8 02:46:11 2002 UTC revision 532, Tue Sep 24 14:25:42 2002 UTC
# Line 5  Line 5 
5    
6    
7  HINSTANCE hInst;  HINSTANCE hInst;
8    HWND hTooltip;
9    
10    
11  /* small hack */  /* small hack */
# Line 17  Line 18 
18    
19  /* registry stuff */  /* registry stuff */
20  #define XVID_REG_KEY    HKEY_CURRENT_USER  #define XVID_REG_KEY    HKEY_CURRENT_USER
21  #define XVID_REG_SUBKEY "Software\\GNU\\XviD"  #define XVID_REG_PARENT "Software\\GNU"
22    #define XVID_REG_CHILD  "XviD"
23  #define XVID_REG_CLASS  "config"  #define XVID_REG_CLASS  "config"
24    
25  #define XVID_WEBSITE    "http://www.xvid.org"  #define XVID_BUILD              __TIME__ ", " __DATE__
26    #define XVID_WEBSITE    "http://www.xvid.org/"
27    
28    #define XVID_SPECIAL_BUILD      "(Vanilla CVS Build)"
29    
30  /* constants */  /* constants */
31    #define CONFIG_HINTFILE         "\\hintfile.mvh"
32  #define CONFIG_2PASS_1_FILE "\\video.stats"  #define CONFIG_2PASS_1_FILE "\\video.stats"
33  #define CONFIG_2PASS_2_FILE "\\videogk.stats"  #define CONFIG_2PASS_2_FILE "\\videogk.stats"
34    
35  /* property sheets - sheets can be reordered here */  /* property sheets - sheets can be reordered here */
36  #define DLG_COUNT               5  #define DLG_COUNT               6
37    
38  #define DLG_MAIN                0  #define DLG_GLOBAL              0
39  #define DLG_ADV                 1  #define DLG_QUANT               1
40  #define DLG_DEBUG               2  #define DLG_2PASS               2
41  #define DLG_CPU                 3  #define DLG_2PASSALT    3
42  #define DLG_ABOUT               4  #define DLG_CREDITS             4
43    #define DLG_CPU                 5
44    
45  /* codec modes */  /* codec modes */
46  #define DLG_MODE_CBR                    0  #define DLG_MODE_CBR                    0
# Line 48  Line 55 
55  #define QUANT_MODE_H263                 0  #define QUANT_MODE_H263                 0
56  #define QUANT_MODE_MPEG                 1  #define QUANT_MODE_MPEG                 1
57  #define QUANT_MODE_CUSTOM               2  #define QUANT_MODE_CUSTOM               2
58    #define QUANT_MODE_MOD                  3
59    
60  /* credits modes */  /* credits modes */
61  #define CREDITS_MODE_RATE               0  #define CREDITS_MODE_RATE               0
# Line 57  Line 65 
65  #define CREDITS_START                   1  #define CREDITS_START                   1
66  #define CREDITS_END                             2  #define CREDITS_END                             2
67    
68    #define RAD2DEG 57.295779513082320876798154814105
69    #define DEG2RAD 0.017453292519943295769236907684886
70    
71  typedef struct  typedef struct
72  {  {
73          int mode;  /********** ATTENTION **********/
74          int bitrate;          int mode;                                       // Vidomi directly accesses these vars
75            int rc_bitrate;                         //
76            int desired_size;                       // please try to avoid modifications here
77            char stats1[MAX_PATH];          //
78    /*******************************/
79    
80          int quality;          int quality;
81          int     quant;          int     quant;
82            int rc_reaction_delay_factor;
83            int rc_averaging_period;
84            int rc_buffer;
85    
86          char stats1[MAX_PATH];          int motion_search;
87          char stats2[MAX_PATH];          int quant_type;
88          int discard1pass;          int fourcc_used;
89          int dummy2pass;          int max_key_interval;
90          int desired_size;          int min_key_interval;
91            int lum_masking;
92            int interlacing;
93    //added by koepi for gruel's greyscale_mode
94    
95            int greyscale;
96    
97    // end of koepi's additions
98    
99    #ifdef BFRAMES
100            int max_bframes;
101            int bquant_ratio;
102            int packed;
103            int dx50bvop;
104            int debug;
105    #endif
106    
107          int min_iquant;          int min_iquant;
108          int max_iquant;          int max_iquant;
109            int min_pquant;
110            int max_pquant;
111            BYTE qmatrix_intra[64];
112            BYTE qmatrix_inter[64];
113    
114          int keyframe_boost;          int keyframe_boost;
115          int min_key_interval;  //added by koepi for new 2pass curve treatment
116          int bitrate_payback_delay;          int kftreshold;
117          int bitrate_payback_method;          int kfreduction;
118    // end of koepi's additions
119            int discard1pass;
120            int dummy2pass;
121          int curve_compression_high;          int curve_compression_high;
122          int curve_compression_low;          int curve_compression_low;
123            int use_alt_curve;
124          float fquant;          int alt_curve_use_auto;
125            int alt_curve_auto_str;
126            int alt_curve_use_auto_bonus_bias;
127            int alt_curve_bonus_bias;
128            int alt_curve_type;
129            int alt_curve_high_dist;
130            int alt_curve_low_dist;
131            int alt_curve_min_rel_qual;
132            int twopass_max_bitrate;
133            int twopass_max_overflow_improvement;
134            int twopass_max_overflow_degradation;
135            int bitrate_payback_delay;
136            int bitrate_payback_method;
137            int hinted_me;
138            char hintfile[MAX_PATH];
139            char stats2[MAX_PATH];
140    
141          int credits_start;          int credits_start;
142          int credits_start_begin;          int credits_start_begin;
# Line 90  Line 145 
145          int credits_end_begin;          int credits_end_begin;
146          int credits_end_end;          int credits_end_end;
147    
148    //added by koepi for gruel's greyscale_mode
149    
150            int credits_greyscale;
151    
152    // end of koepi's additions
153    
154          int credits_mode;          int credits_mode;
155          int credits_rate;          int credits_rate;
156          int credits_quant_i;          int credits_quant_i;
# Line 97  Line 158 
158          int credits_start_size;          int credits_start_size;
159          int credits_end_size;          int credits_end_size;
160    
161          int motion_search;  #ifdef _SMP
162          int quant_type;          int num_threads;
163          int max_key_interval;  #endif
164    #ifdef BFRAMES
165          int rc_buffersize;          int frame_drop_ratio;
166    #endif
         int min_quant;  
         int max_quant;  
         int lum_masking;  
   
         int fourcc_used;  
   
         BYTE qmatrix_intra[64];  
         BYTE qmatrix_inter[64];  
167    
168    //      char build[50];
169          DWORD cpu;          DWORD cpu;
170            float fquant;
171          BOOL save;          BOOL save;
   
172  } CONFIG;  } CONFIG;
173    
   
174  typedef struct PROPSHEETINFO  typedef struct PROPSHEETINFO
175  {  {
176          int page;          int page;
177          CONFIG * config;          CONFIG * config;
178  } PROPSHEETINFO;  } PROPSHEETINFO;
179    
180    typedef struct REG_INT
181    {
182            char* reg_value;
183            int* config_int;
184            int def;
185    } REG_INT;
186    
187    typedef struct REG_STR
188    {
189            char* reg_value;
190            char* config_str;
191            char* def;
192    } REG_STR;
193    
194  void config_reg_get(CONFIG *);  void config_reg_get(CONFIG *);
195  void config_reg_set(CONFIG *);  void config_reg_set(CONFIG *);
196  void config_mode(HWND);  void config_reg_default(CONFIG *);
197  void config_upload(HWND, int, CONFIG *);  int config_get_int(HWND, INT, int);
198  void config_download(HWND, int, CONFIG *);  int config_get_uint(HWND, UINT, int);
199  void config_slider(HWND, CONFIG *);  void main_download(HWND, CONFIG *);
200  void config_value(HWND, CONFIG *);  void main_slider(HWND, CONFIG *);
201  int config_get_int(HWND, UINT, int);  void main_value(HWND, CONFIG *);
202  void credits_controls(HWND);  void adv_dialog(HWND, CONFIG *);
203    void adv_mode(HWND, int);
204    void adv_upload(HWND, int, CONFIG *);
205    void adv_download(HWND, int, CONFIG *);
206  void quant_upload(HWND, CONFIG *);  void quant_upload(HWND, CONFIG *);
207  void quant_download(HWND, CONFIG *);  void quant_download(HWND, CONFIG *);
208  BOOL CALLBACK config_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK enum_tooltips(HWND, LPARAM);
209  BOOL CALLBACK credits_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM);
210  BOOL CALLBACK twopass_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM);
211  BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM);
212    BOOL CALLBACK about_proc(HWND, UINT, WPARAM, LPARAM);
213    
214  #endif /* _CONFIG_H_ */  #endif /* _CONFIG_H_ */

Legend:
Removed from v.3  
changed lines
  Added in v.532

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