[cvs] / xvidcore / dshow / src / config.h Repository:
ViewVC logotype

Diff of /xvidcore/dshow/src/config.h

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

revision 1.1, Sat Jan 31 13:44:33 2004 UTC revision 1.1.2.1, Sat Jan 31 13:44:33 2004 UTC
# Line 0  Line 1 
1    #ifndef _DSHOW_CONFIG_H_
2    #define _DSHOW_CONFIG_H_
3    
4    #ifdef __cplusplus
5    extern "C" {
6    #endif
7    
8    /* registry stuff */
9    #define XVID_REG_KEY    HKEY_CURRENT_USER
10    #define XVID_REG_SUBKEY "Software\\GNU\\XviD"
11    #define XVID_REG_CLASS  "config"
12    
13    #define REG_GET_N(X, Y, Z) size=sizeof(int);if(RegQueryValueEx(hKey, X, 0, 0, (LPBYTE)&Y, &size) != ERROR_SUCCESS) {Y=Z;}
14    #define REG_GET_S(X, Y, Z) size=MAX_PATH;if(RegQueryValueEx(hKey, X, 0, 0, Y, &size) != ERROR_SUCCESS) {lstrcpy(Y, Z);}
15    #define REG_SET_N(X, Y) RegSetValueEx(hKey, X, 0, REG_DWORD, (LPBYTE)&Y, sizeof(int))
16    #define REG_SET_S(X, Y) RegSetValueEx(hKey, X, 0, REG_SZ, Y, lstrlen(Y)+1)
17    
18    
19    /* config struct */
20    #define SUPPORT_DX50            (1<<0)
21    #define SUPPORT_DIVX            (1<<1)
22    #define SUPPORT_MP4V            (1<<2)
23    
24    #define FORCE_NONE  0
25    #define FORCE_YV12  1
26    #define FORCE_YUY2  2
27    #define FORCE_RGB24 3
28    #define FORCE_RGB32 4
29    
30    typedef struct
31    {
32            int nBrightness;
33            int nDeblock_Y;
34            int nDeblock_UV;
35            int nDering;
36            int nFilmEffect;
37            int nFlipVideo;
38            int nForceColorspace;
39            unsigned int supported_4cc;
40    } CONFIG;
41    
42    
43    /* global */
44    extern CONFIG g_config;
45    
46    
47    /* functions */
48    void LoadRegistryInfo();
49    void SaveRegistryInfo();
50    BOOL CALLBACK adv_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
51    
52    
53    #ifdef __cplusplus
54    }
55    #endif
56    
57    
58    #endif

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

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