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

Annotation of /trunk/xvidcore/dshow/src/config.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1912 - (view) (download)

1 : edgomez 1382 #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 : syskin 1437 int nDering_Y;
36 :     int nDering_UV;
37 : edgomez 1382 int nFilmEffect;
38 :     int nFlipVideo;
39 :     int nForceColorspace;
40 :     unsigned int supported_4cc;
41 :     int videoinfo_compat;
42 : syskin 1488 int aspect_ratio;
43 : Isibaar 1912 int num_threads;
44 : edgomez 1382 } CONFIG;
45 :    
46 :    
47 :     /* global */
48 :     extern CONFIG g_config;
49 :    
50 :    
51 :     /* functions */
52 :     void LoadRegistryInfo();
53 :     void SaveRegistryInfo();
54 : Isibaar 1818 INT_PTR CALLBACK adv_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
55 : edgomez 1382
56 :    
57 :     #ifdef __cplusplus
58 :     }
59 :     #endif
60 :    
61 :    
62 : suxen_drol 1503 #endif
63 :    

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