[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 121, Mon Apr 15 08:03:50 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_BUILD              __TIME__ ", " __DATE__
26  #define XVID_WEBSITE    "http://www.xvid.org"  #define XVID_WEBSITE    "http://www.xvid.org"
27    
28  /* constants */  /* constants */
29    #define CONFIG_HINTFILE         "\\hintfile.mvh"
30  #define CONFIG_2PASS_1_FILE "\\video.stats"  #define CONFIG_2PASS_1_FILE "\\video.stats"
31  #define CONFIG_2PASS_2_FILE "\\videogk.stats"  #define CONFIG_2PASS_2_FILE "\\videogk.stats"
32    
33  /* property sheets - sheets can be reordered here */  /* property sheets - sheets can be reordered here */
34  #define DLG_COUNT               5  #define DLG_COUNT               6
35    
36  #define DLG_MAIN                0  #define DLG_GLOBAL              0
37  #define DLG_ADV                 1  #define DLG_QUANT               1
38  #define DLG_DEBUG               2  #define DLG_2PASS               2
39  #define DLG_CPU                 3  #define DLG_2PASSALT    3
40  #define DLG_ABOUT               4  #define DLG_CREDITS             4
41    #define DLG_CPU                 5
42    
43  /* codec modes */  /* codec modes */
44  #define DLG_MODE_CBR                    0  #define DLG_MODE_CBR                    0
# Line 48  Line 53 
53  #define QUANT_MODE_H263                 0  #define QUANT_MODE_H263                 0
54  #define QUANT_MODE_MPEG                 1  #define QUANT_MODE_MPEG                 1
55  #define QUANT_MODE_CUSTOM               2  #define QUANT_MODE_CUSTOM               2
56    #define QUANT_MODE_MOD                  3
57    
58  /* credits modes */  /* credits modes */
59  #define CREDITS_MODE_RATE               0  #define CREDITS_MODE_RATE               0
# Line 57  Line 63 
63  #define CREDITS_START                   1  #define CREDITS_START                   1
64  #define CREDITS_END                             2  #define CREDITS_END                             2
65    
66    #define RAD2DEG 57.295779513082320876798154814105
67    #define DEG2RAD 0.017453292519943295769236907684886
68    
69  typedef struct  typedef struct
70  {  {
71          int mode;          int mode;
         int bitrate;  
72          int quality;          int quality;
73          int     quant;          int     quant;
74            int rc_bitrate;
75            int rc_reaction_delay_factor;
76            int rc_averaging_period;
77            int rc_buffer;
78    
79          char stats1[MAX_PATH];          int motion_search;
80          char stats2[MAX_PATH];          int quant_type;
81          int discard1pass;          int fourcc_used;
82          int dummy2pass;          int max_key_interval;
83          int desired_size;          int min_key_interval;
84            int lum_masking;
85            int interlacing;
86    
87          int min_iquant;          int min_iquant;
88          int max_iquant;          int max_iquant;
89            int min_pquant;
90            int max_pquant;
91            BYTE qmatrix_intra[64];
92            BYTE qmatrix_inter[64];
93    
94            int desired_size;
95          int keyframe_boost;          int keyframe_boost;
96          int min_key_interval;          int discard1pass;
97          int bitrate_payback_delay;          int dummy2pass;
         int bitrate_payback_method;  
98          int curve_compression_high;          int curve_compression_high;
99          int curve_compression_low;          int curve_compression_low;
100            int use_alt_curve;
101          float fquant;          int alt_curve_use_auto;
102            int alt_curve_auto_str;
103            int alt_curve_use_auto_bonus_bias;
104            int alt_curve_bonus_bias;
105            int alt_curve_type;
106            int alt_curve_high_dist;
107            int alt_curve_low_dist;
108            int alt_curve_min_rel_qual;
109            int twopass_max_bitrate;
110            int twopass_max_overflow_improvement;
111            int twopass_max_overflow_degradation;
112            int bitrate_payback_delay;
113            int bitrate_payback_method;
114            int hinted_me;
115            char hintfile[MAX_PATH];
116            char stats1[MAX_PATH];
117            char stats2[MAX_PATH];
118    
119          int credits_start;          int credits_start;
120          int credits_start_begin;          int credits_start_begin;
# Line 97  Line 130 
130          int credits_start_size;          int credits_start_size;
131          int credits_end_size;          int credits_end_size;
132    
133          int motion_search;  //      char build[50];
         int quant_type;  
         int max_key_interval;  
   
         int rc_buffersize;  
   
         int min_quant;  
         int max_quant;  
         int lum_masking;  
   
         int fourcc_used;  
   
         BYTE qmatrix_intra[64];  
         BYTE qmatrix_inter[64];  
   
134          DWORD cpu;          DWORD cpu;
135            float fquant;
136          BOOL save;          BOOL save;
   
137  } CONFIG;  } CONFIG;
138    
   
139  typedef struct PROPSHEETINFO  typedef struct PROPSHEETINFO
140  {  {
141          int page;          int page;
142          CONFIG * config;          CONFIG * config;
143  } PROPSHEETINFO;  } PROPSHEETINFO;
144    
145    typedef struct REG_INT
146    {
147            char* reg_value;
148            int* config_int;
149            int def;
150    } REG_INT;
151    
152    typedef struct REG_STR
153    {
154            char* reg_value;
155            char* config_str;
156            char* def;
157    } REG_STR;
158    
159  void config_reg_get(CONFIG *);  void config_reg_get(CONFIG *);
160  void config_reg_set(CONFIG *);  void config_reg_set(CONFIG *);
161  void config_mode(HWND);  void config_reg_default(CONFIG *);
 void config_upload(HWND, int, CONFIG *);  
 void config_download(HWND, int, CONFIG *);  
 void config_slider(HWND, CONFIG *);  
 void config_value(HWND, CONFIG *);  
162  int config_get_int(HWND, UINT, int);  int config_get_int(HWND, UINT, int);
163  void credits_controls(HWND);  void main_download(HWND, CONFIG *);
164    void main_slider(HWND, CONFIG *);
165    void main_value(HWND, CONFIG *);
166    void adv_dialog(HWND, CONFIG *);
167    void adv_mode(HWND, int);
168    void adv_upload(HWND, int, CONFIG *);
169    void adv_download(HWND, int, CONFIG *);
170  void quant_upload(HWND, CONFIG *);  void quant_upload(HWND, CONFIG *);
171  void quant_download(HWND, CONFIG *);  void quant_download(HWND, CONFIG *);
172  BOOL CALLBACK config_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK enum_tooltips(HWND, LPARAM);
173  BOOL CALLBACK credits_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK main_proc(HWND, UINT, WPARAM, LPARAM);
174  BOOL CALLBACK twopass_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK adv_proc(HWND, UINT, WPARAM, LPARAM);
175  BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM);  BOOL CALLBACK quantmatrix_proc(HWND, UINT, WPARAM, LPARAM);
176    BOOL CALLBACK about_proc(HWND, UINT, WPARAM, LPARAM);
177    
178  #endif /* _CONFIG_H_ */  #endif /* _CONFIG_H_ */

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

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