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

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

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