19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: config.c,v 1.6 2004-07-16 15:38:01 syskin Exp $ |
* $Id: config.c,v 1.8 2005-09-18 01:34:13 suxen_drol Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
43 |
RegOpenKeyEx(XVID_REG_KEY, XVID_REG_SUBKEY, 0, KEY_READ, &hKey); |
RegOpenKeyEx(XVID_REG_KEY, XVID_REG_SUBKEY, 0, KEY_READ, &hKey); |
44 |
|
|
45 |
// Set the default post-processing settings |
// Set the default post-processing settings |
46 |
REG_GET_N("Brightness", g_config.nBrightness, 25) |
REG_GET_N("Brightness", g_config.nBrightness, 0) |
47 |
REG_GET_N("Deblock_Y", g_config.nDeblock_Y, 0) |
REG_GET_N("Deblock_Y", g_config.nDeblock_Y, 0) |
48 |
REG_GET_N("Deblock_UV", g_config.nDeblock_UV, 0) |
REG_GET_N("Deblock_UV", g_config.nDeblock_UV, 0) |
49 |
REG_GET_N("Dering_Y", g_config.nDering_Y, 0) |
REG_GET_N("Dering_Y", g_config.nDering_Y, 0) |
53 |
REG_GET_N("FlipVideo", g_config.nFlipVideo, 0) |
REG_GET_N("FlipVideo", g_config.nFlipVideo, 0) |
54 |
REG_GET_N("Supported_4CC", g_config.supported_4cc, 0) |
REG_GET_N("Supported_4CC", g_config.supported_4cc, 0) |
55 |
REG_GET_N("Videoinfo_Compat", g_config.videoinfo_compat, 0) |
REG_GET_N("Videoinfo_Compat", g_config.videoinfo_compat, 0) |
56 |
REG_GET_N("Aspect_Ratio", g_config.aspect_ratio, 0) |
REG_GET_N("Decoder_Aspect_Ratio", g_config.aspect_ratio, 0) |
57 |
|
|
58 |
RegCloseKey(hKey); |
RegCloseKey(hKey); |
59 |
} |
} |
88 |
REG_SET_N("FlipVideo", g_config.nFlipVideo); |
REG_SET_N("FlipVideo", g_config.nFlipVideo); |
89 |
REG_SET_N("Supported_4CC", g_config.supported_4cc); |
REG_SET_N("Supported_4CC", g_config.supported_4cc); |
90 |
REG_SET_N("Videoinfo_Compat", g_config.videoinfo_compat); |
REG_SET_N("Videoinfo_Compat", g_config.videoinfo_compat); |
91 |
REG_SET_N("Aspect_Ratio", g_config.aspect_ratio); |
REG_SET_N("Decoder_Aspect_Ratio", g_config.aspect_ratio); |
92 |
|
|
93 |
RegCloseKey(hKey); |
RegCloseKey(hKey); |
94 |
} |
} |