87 |
{"lum_masking", ®.lum_masking, 0}, |
{"lum_masking", ®.lum_masking, 0}, |
88 |
{"interlacing", ®.interlacing, 0}, |
{"interlacing", ®.interlacing, 0}, |
89 |
#ifdef BFRAMES |
#ifdef BFRAMES |
90 |
{"max_bframes", ®.max_bframes, 0}, |
{"max_bframes", ®.max_bframes, -1}, |
91 |
{"bquant_ratio", ®.bquant_ratio, 200}, |
{"bquant_ratio", ®.bquant_ratio, 200}, |
92 |
{"packed", ®.packed, 1}, |
{"packed", ®.packed, 0}, |
93 |
|
{"dx50bvop", ®.dx50bvop, 0}, |
94 |
|
{"debug", ®.debug, 0}, |
95 |
#endif BFRAMES |
#endif BFRAMES |
96 |
|
|
97 |
{"min_iquant", ®.min_iquant, 1}, |
{"min_iquant", ®.min_iquant, 1}, |
154 |
XVID_INIT_PARAM init_param; |
XVID_INIT_PARAM init_param; |
155 |
int i; |
int i; |
156 |
|
|
157 |
init_param.cpu_flags = 0; |
init_param.cpu_flags = XVID_CPU_CHKONLY; |
158 |
xvid_init(0, 0, &init_param, NULL); |
xvid_init(0, 0, &init_param, NULL); |
159 |
config->cpu = init_param.cpu_flags; |
reg.cpu = init_param.cpu_flags; |
160 |
|
|
161 |
RegOpenKeyEx(XVID_REG_KEY, XVID_REG_PARENT "\\" XVID_REG_CHILD, 0, KEY_READ, &hKey); |
RegOpenKeyEx(XVID_REG_KEY, XVID_REG_PARENT "\\" XVID_REG_CHILD, 0, KEY_READ, &hKey); |
162 |
|
|
618 |
SetDlgItemInt(hDlg, IDC_MAXBFRAMES, config->max_bframes, TRUE); |
SetDlgItemInt(hDlg, IDC_MAXBFRAMES, config->max_bframes, TRUE); |
619 |
SetDlgItemInt(hDlg, IDC_BQUANTRATIO, config->bquant_ratio, FALSE); |
SetDlgItemInt(hDlg, IDC_BQUANTRATIO, config->bquant_ratio, FALSE); |
620 |
CheckDlgButton(hDlg, IDC_PACKED, config->packed ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_PACKED, config->packed ? BST_CHECKED : BST_UNCHECKED); |
621 |
|
CheckDlgButton(hDlg, IDC_DX50BVOP, config->dx50bvop ? BST_CHECKED : BST_UNCHECKED); |
622 |
|
CheckDlgButton(hDlg, IDC_DEBUG, config->debug ? BST_CHECKED : BST_UNCHECKED); |
623 |
#endif |
#endif |
624 |
break; |
break; |
625 |
|
|
735 |
config->max_bframes = config_get_int(hDlg, IDC_MAXBFRAMES, config->max_bframes); |
config->max_bframes = config_get_int(hDlg, IDC_MAXBFRAMES, config->max_bframes); |
736 |
config->bquant_ratio = config_get_uint(hDlg, IDC_BQUANTRATIO, config->bquant_ratio); |
config->bquant_ratio = config_get_uint(hDlg, IDC_BQUANTRATIO, config->bquant_ratio); |
737 |
config->packed = ISDLGSET(IDC_PACKED); |
config->packed = ISDLGSET(IDC_PACKED); |
738 |
|
config->dx50bvop = ISDLGSET(IDC_DX50BVOP); |
739 |
|
config->debug = ISDLGSET(IDC_DEBUG); |
740 |
#endif |
#endif |
741 |
break; |
break; |
742 |
|
|
1074 |
EnableWindow(GetDlgItem(hDlg, IDC_MAXBFRAMES), FALSE); |
EnableWindow(GetDlgItem(hDlg, IDC_MAXBFRAMES), FALSE); |
1075 |
EnableWindow(GetDlgItem(hDlg, IDC_BQUANTRATIO), FALSE); |
EnableWindow(GetDlgItem(hDlg, IDC_BQUANTRATIO), FALSE); |
1076 |
EnableWindow(GetDlgItem(hDlg, IDC_PACKED), FALSE); |
EnableWindow(GetDlgItem(hDlg, IDC_PACKED), FALSE); |
1077 |
|
EnableWindow(GetDlgItem(hDlg, IDC_DX50BVOP), FALSE); |
1078 |
|
EnableWindow(GetDlgItem(hDlg, IDC_DEBUG), FALSE); |
1079 |
#endif |
#endif |
1080 |
} |
} |
1081 |
else if (psi->page == DLG_2PASSALT) |
else if (psi->page == DLG_2PASSALT) |
1316 |
|
|
1317 |
SetDlgItemText(hDlg, IDC_BUILD, XVID_BUILD); |
SetDlgItemText(hDlg, IDC_BUILD, XVID_BUILD); |
1318 |
|
|
1319 |
|
init_param.cpu_flags = XVID_CPU_CHKONLY; |
1320 |
xvid_init(NULL, 0, &init_param, 0); |
xvid_init(NULL, 0, &init_param, 0); |
1321 |
wsprintf(core, "Core Version %d.%d", (init_param.api_version>>16),(init_param.api_version&0xFFFFU)); |
wsprintf(core, "Core Version %d.%d", (init_param.api_version>>16),(init_param.api_version&0xFFFFU)); |
1322 |
SetDlgItemText(hDlg, IDC_CORE, core); |
SetDlgItemText(hDlg, IDC_CORE, core); |