84 |
{"rc_averaging_period", ®.rc_averaging_period, 100}, |
{"rc_averaging_period", ®.rc_averaging_period, 100}, |
85 |
{"rc_buffer", ®.rc_buffer, 100}, |
{"rc_buffer", ®.rc_buffer, 100}, |
86 |
|
|
87 |
{"motion_search", ®.motion_search, 5}, |
{"motion_search", ®.motion_search, 6}, |
88 |
{"quant_type", ®.quant_type, 0}, |
{"quant_type", ®.quant_type, 0}, |
89 |
{"fourcc_used", ®.fourcc_used, 0}, |
{"fourcc_used", ®.fourcc_used, 0}, |
90 |
|
{"vhq_mode", ®.vhq_mode, 0}, |
91 |
{"max_key_interval", ®.max_key_interval, 300}, |
{"max_key_interval", ®.max_key_interval, 300}, |
92 |
{"min_key_interval", ®.min_key_interval, 1}, |
{"min_key_interval", ®.min_key_interval, 1}, |
93 |
{"lum_masking", ®.lum_masking, 0}, |
{"lum_masking", ®.lum_masking, 0}, |
98 |
//added by koepi for gruel's greyscale_mode |
//added by koepi for gruel's greyscale_mode |
99 |
{"greyscale", ®.greyscale, 0}, |
{"greyscale", ®.greyscale, 0}, |
100 |
// end of koepi's additions |
// end of koepi's additions |
|
#ifdef BFRAMES |
|
101 |
{"max_bframes", ®.max_bframes, -1}, |
{"max_bframes", ®.max_bframes, -1}, |
102 |
{"bquant_ratio", ®.bquant_ratio, 150}, |
{"bquant_ratio", ®.bquant_ratio, 150}, |
103 |
{"bquant_offset", ®.bquant_offset, 100}, |
{"bquant_offset", ®.bquant_offset, 100}, |
104 |
{"packed", ®.packed, 0}, |
{"packed", ®.packed, 0}, |
105 |
{"dx50bvop", ®.dx50bvop, 0}, |
{"dx50bvop", ®.dx50bvop, 1}, |
106 |
{"debug", ®.debug, 0}, |
{"debug", ®.debug, 0}, |
107 |
|
{"reduced_resolution", ®.reduced_resolution, 0}, |
108 |
|
{"chroma_opt", ®.chroma_opt, 0}, |
109 |
{"frame_drop_ratio", ®.frame_drop_ratio, 0}, |
{"frame_drop_ratio", ®.frame_drop_ratio, 0}, |
|
#endif |
|
110 |
|
|
111 |
{"min_iquant", ®.min_iquant, 2}, |
{"min_iquant", ®.min_iquant, 2}, |
112 |
{"max_iquant", ®.max_iquant, 31}, |
{"max_iquant", ®.max_iquant, 31}, |
119 |
{"dummy2pass", ®.dummy2pass, 0}, |
{"dummy2pass", ®.dummy2pass, 0}, |
120 |
// added by koepi for new two-pass curve treatment |
// added by koepi for new two-pass curve treatment |
121 |
{"kftreshold", ®.kftreshold, 10}, |
{"kftreshold", ®.kftreshold, 10}, |
122 |
{"kfreduction", ®.kfreduction, 30}, |
{"kfreduction", ®.kfreduction, 20}, |
123 |
// end of koepi's additions |
// end of koepi's additions |
124 |
{"curve_compression_high", ®.curve_compression_high, 25}, |
{"curve_compression_high", ®.curve_compression_high, 0}, |
125 |
{"curve_compression_low", ®.curve_compression_low, 10}, |
{"curve_compression_low", ®.curve_compression_low, 0}, |
126 |
{"use_alt_curve", ®.use_alt_curve, 1}, |
{"use_alt_curve", ®.use_alt_curve, 0}, |
127 |
{"alt_curve_use_auto", ®.alt_curve_use_auto, 1}, |
{"alt_curve_use_auto", ®.alt_curve_use_auto, 1}, |
128 |
{"alt_curve_auto_str", ®.alt_curve_auto_str, 30}, |
{"alt_curve_auto_str", ®.alt_curve_auto_str, 30}, |
129 |
{"alt_curve_use_auto_bonus_bias", ®.alt_curve_use_auto_bonus_bias, 1}, |
{"alt_curve_use_auto_bonus_bias", ®.alt_curve_use_auto_bonus_bias, 1}, |
154 |
{"credits_quant_i", ®.credits_quant_i, 20}, |
{"credits_quant_i", ®.credits_quant_i, 20}, |
155 |
{"credits_quant_p", ®.credits_quant_p, 20}, |
{"credits_quant_p", ®.credits_quant_p, 20}, |
156 |
{"credits_start_size", ®.credits_start_size, 10000}, |
{"credits_start_size", ®.credits_start_size, 10000}, |
157 |
{"credits_end_size", ®.credits_end_size, 10000} |
{"credits_end_size", ®.credits_end_size, 10000}, |
158 |
|
|
159 |
|
/* decoder */ |
160 |
|
{"deblock_y", ®.deblock_y, 0}, |
161 |
|
{"deblock_uv", ®.deblock_uv, 0} |
162 |
}; |
}; |
163 |
|
|
164 |
REG_STR const reg_strs[] = { |
REG_STR const reg_strs[] = { |
644 |
SendDlgItemMessage(hDlg, IDC_MOTION, CB_SETCURSEL, config->motion_search, 0); |
SendDlgItemMessage(hDlg, IDC_MOTION, CB_SETCURSEL, config->motion_search, 0); |
645 |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_SETCURSEL, config->quant_type, 0); |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_SETCURSEL, config->quant_type, 0); |
646 |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_SETCURSEL, config->fourcc_used, 0); |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_SETCURSEL, config->fourcc_used, 0); |
647 |
|
SendDlgItemMessage(hDlg, IDC_VHQ, CB_SETCURSEL, config->vhq_mode, 0); |
648 |
SetDlgItemInt(hDlg, IDC_MAXKEY, config->max_key_interval, FALSE); |
SetDlgItemInt(hDlg, IDC_MAXKEY, config->max_key_interval, FALSE); |
649 |
SetDlgItemInt(hDlg, IDC_MINKEY, config->min_key_interval, FALSE); |
SetDlgItemInt(hDlg, IDC_MINKEY, config->min_key_interval, FALSE); |
650 |
CheckDlgButton(hDlg, IDC_LUMMASK, config->lum_masking ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_LUMMASK, config->lum_masking ? BST_CHECKED : BST_UNCHECKED); |
656 |
// added by koepi for gruel's greyscale_mode |
// added by koepi for gruel's greyscale_mode |
657 |
CheckDlgButton(hDlg, IDC_GREYSCALE, config->greyscale ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_GREYSCALE, config->greyscale ? BST_CHECKED : BST_UNCHECKED); |
658 |
// end of koepi's addition |
// end of koepi's addition |
|
#ifdef BFRAMES |
|
659 |
SetDlgItemInt(hDlg, IDC_MAXBFRAMES, config->max_bframes, TRUE); |
SetDlgItemInt(hDlg, IDC_MAXBFRAMES, config->max_bframes, TRUE); |
660 |
SetDlgItemInt(hDlg, IDC_BQUANTRATIO, config->bquant_ratio, FALSE); |
SetDlgItemInt(hDlg, IDC_BQUANTRATIO, config->bquant_ratio, FALSE); |
661 |
SetDlgItemInt(hDlg, IDC_BQUANTOFFSET, config->bquant_offset, FALSE); |
SetDlgItemInt(hDlg, IDC_BQUANTOFFSET, config->bquant_offset, FALSE); |
662 |
CheckDlgButton(hDlg, IDC_PACKED, config->packed ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_PACKED, config->packed ? BST_CHECKED : BST_UNCHECKED); |
663 |
CheckDlgButton(hDlg, IDC_DX50BVOP, config->dx50bvop ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_DX50BVOP, config->dx50bvop ? BST_CHECKED : BST_UNCHECKED); |
664 |
CheckDlgButton(hDlg, IDC_DEBUG, config->debug ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_DEBUG, config->debug ? BST_CHECKED : BST_UNCHECKED); |
665 |
#endif |
|
666 |
|
CheckDlgButton(hDlg, IDC_REDUCED, config->reduced_resolution ? BST_CHECKED : BST_UNCHECKED); |
667 |
break; |
break; |
668 |
|
|
669 |
case DLG_QUANT : |
case DLG_QUANT : |
757 |
#ifdef _SMP |
#ifdef _SMP |
758 |
SetDlgItemInt(hDlg, IDC_NUMTHREADS, config->num_threads, FALSE); |
SetDlgItemInt(hDlg, IDC_NUMTHREADS, config->num_threads, FALSE); |
759 |
#endif |
#endif |
760 |
|
CheckDlgButton(hDlg, IDC_CHROMA_OPT, (config->chroma_opt) ? BST_CHECKED : BST_UNCHECKED); |
|
#ifdef BFRAMES |
|
761 |
SetDlgItemInt(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio, FALSE); |
SetDlgItemInt(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio, FALSE); |
|
#endif |
|
|
|
|
762 |
SetDlgItemInt(hDlg, IDC_CBR_REACTIONDELAY, config->rc_reaction_delay_factor, FALSE); |
SetDlgItemInt(hDlg, IDC_CBR_REACTIONDELAY, config->rc_reaction_delay_factor, FALSE); |
763 |
SetDlgItemInt(hDlg, IDC_CBR_AVERAGINGPERIOD, config->rc_averaging_period, FALSE); |
SetDlgItemInt(hDlg, IDC_CBR_AVERAGINGPERIOD, config->rc_averaging_period, FALSE); |
764 |
SetDlgItemInt(hDlg, IDC_CBR_BUFFER, config->rc_buffer, FALSE); |
SetDlgItemInt(hDlg, IDC_CBR_BUFFER, config->rc_buffer, FALSE); |
781 |
config->motion_search = SendDlgItemMessage(hDlg, IDC_MOTION, CB_GETCURSEL, 0, 0); |
config->motion_search = SendDlgItemMessage(hDlg, IDC_MOTION, CB_GETCURSEL, 0, 0); |
782 |
config->quant_type = SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_GETCURSEL, 0, 0); |
config->quant_type = SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_GETCURSEL, 0, 0); |
783 |
config->fourcc_used = SendDlgItemMessage(hDlg, IDC_FOURCC, CB_GETCURSEL, 0, 0); |
config->fourcc_used = SendDlgItemMessage(hDlg, IDC_FOURCC, CB_GETCURSEL, 0, 0); |
784 |
|
config->vhq_mode = SendDlgItemMessage(hDlg, IDC_VHQ, CB_GETCURSEL, 0, 0); |
785 |
config->max_key_interval = config_get_uint(hDlg, IDC_MAXKEY, config->max_key_interval); |
config->max_key_interval = config_get_uint(hDlg, IDC_MAXKEY, config->max_key_interval); |
786 |
config->min_key_interval = config_get_uint(hDlg, IDC_MINKEY, config->min_key_interval); |
config->min_key_interval = config_get_uint(hDlg, IDC_MINKEY, config->min_key_interval); |
787 |
config->lum_masking = ISDLGSET(IDC_LUMMASK); |
config->lum_masking = ISDLGSET(IDC_LUMMASK); |
793 |
// added by koepi for gruel's greyscale_mode |
// added by koepi for gruel's greyscale_mode |
794 |
config->greyscale = ISDLGSET(IDC_GREYSCALE); |
config->greyscale = ISDLGSET(IDC_GREYSCALE); |
795 |
// end of koepi's addition |
// end of koepi's addition |
|
#ifdef BFRAMES |
|
796 |
config->max_bframes = config_get_int(hDlg, IDC_MAXBFRAMES, config->max_bframes); |
config->max_bframes = config_get_int(hDlg, IDC_MAXBFRAMES, config->max_bframes); |
797 |
config->bquant_ratio = config_get_uint(hDlg, IDC_BQUANTRATIO, config->bquant_ratio); |
config->bquant_ratio = config_get_uint(hDlg, IDC_BQUANTRATIO, config->bquant_ratio); |
798 |
config->bquant_offset = config_get_uint(hDlg, IDC_BQUANTOFFSET, config->bquant_offset); |
config->bquant_offset = config_get_uint(hDlg, IDC_BQUANTOFFSET, config->bquant_offset); |
799 |
config->packed = ISDLGSET(IDC_PACKED); |
config->packed = ISDLGSET(IDC_PACKED); |
800 |
config->dx50bvop = ISDLGSET(IDC_DX50BVOP); |
config->dx50bvop = ISDLGSET(IDC_DX50BVOP); |
801 |
config->debug = ISDLGSET(IDC_DEBUG); |
config->debug = ISDLGSET(IDC_DEBUG); |
802 |
#endif |
config->reduced_resolution = ISDLGSET(IDC_REDUCED); |
803 |
break; |
break; |
804 |
|
|
805 |
case DLG_QUANT : |
case DLG_QUANT : |
922 |
#ifdef _SMP |
#ifdef _SMP |
923 |
config->num_threads = config_get_uint(hDlg, IDC_NUMTHREADS, config->num_threads); |
config->num_threads = config_get_uint(hDlg, IDC_NUMTHREADS, config->num_threads); |
924 |
#endif |
#endif |
925 |
#ifdef BFRAMES |
config->chroma_opt = ISDLGSET(IDC_CHROMA_OPT); |
926 |
config->frame_drop_ratio = config_get_uint(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio); |
config->frame_drop_ratio = config_get_uint(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio); |
|
#endif |
|
|
|
|
927 |
config->rc_reaction_delay_factor = config_get_uint(hDlg, IDC_CBR_REACTIONDELAY, config->rc_reaction_delay_factor); |
config->rc_reaction_delay_factor = config_get_uint(hDlg, IDC_CBR_REACTIONDELAY, config->rc_reaction_delay_factor); |
928 |
config->rc_averaging_period = config_get_uint(hDlg, IDC_CBR_AVERAGINGPERIOD, config->rc_averaging_period); |
config->rc_averaging_period = config_get_uint(hDlg, IDC_CBR_AVERAGINGPERIOD, config->rc_averaging_period); |
929 |
config->rc_buffer = config_get_uint(hDlg, IDC_CBR_BUFFER, config->rc_buffer); |
config->rc_buffer = config_get_uint(hDlg, IDC_CBR_BUFFER, config->rc_buffer); |
986 |
} |
} |
987 |
|
|
988 |
|
|
989 |
|
|
990 |
|
/* --- decoder options dialog --- */ |
991 |
|
|
992 |
|
#define DEC_DLG_COUNT 1 |
993 |
|
#define DEC_DLG_POSTPROC 0 |
994 |
|
|
995 |
|
/* decoder dialog: upload config data */ |
996 |
|
|
997 |
|
void dec_upload(HWND hDlg, int page, CONFIG * config) |
998 |
|
{ |
999 |
|
switch (page) |
1000 |
|
{ |
1001 |
|
case DEC_DLG_POSTPROC : |
1002 |
|
CheckDlgButton(hDlg, IDC_DEBLOCK_Y, config->deblock_y ? BST_CHECKED : BST_UNCHECKED); |
1003 |
|
CheckDlgButton(hDlg, IDC_DEBLOCK_UV, config->deblock_uv ? BST_CHECKED : BST_UNCHECKED); |
1004 |
|
break; |
1005 |
|
} |
1006 |
|
} |
1007 |
|
|
1008 |
|
|
1009 |
|
/* dec dialog: download config data */ |
1010 |
|
|
1011 |
|
void dec_download(HWND hDlg, int page, CONFIG * config) |
1012 |
|
{ |
1013 |
|
switch (page) |
1014 |
|
{ |
1015 |
|
case DEC_DLG_POSTPROC : |
1016 |
|
config->deblock_y = ISDLGSET(IDC_DEBLOCK_Y); |
1017 |
|
config->deblock_uv = ISDLGSET(IDC_DEBLOCK_UV); |
1018 |
|
break; |
1019 |
|
} |
1020 |
|
} |
1021 |
|
|
1022 |
|
/* decoder dialog proc */ |
1023 |
|
|
1024 |
|
BOOL CALLBACK dec_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
1025 |
|
{ |
1026 |
|
PROPSHEETINFO *psi; |
1027 |
|
|
1028 |
|
psi = (PROPSHEETINFO*)GetWindowLong(hDlg, GWL_USERDATA); |
1029 |
|
|
1030 |
|
switch (uMsg) |
1031 |
|
{ |
1032 |
|
case WM_INITDIALOG : |
1033 |
|
psi = (PROPSHEETINFO*) ((LPPROPSHEETPAGE)lParam)->lParam; |
1034 |
|
|
1035 |
|
SetWindowLong(hDlg, GWL_USERDATA, (LPARAM)psi); |
1036 |
|
|
1037 |
|
if (hTooltip) |
1038 |
|
{ |
1039 |
|
EnumChildWindows(hDlg, enum_tooltips, 0); |
1040 |
|
} |
1041 |
|
|
1042 |
|
dec_upload(hDlg, psi->page, psi->config); |
1043 |
|
break; |
1044 |
|
|
1045 |
|
case WM_NOTIFY : |
1046 |
|
switch (((NMHDR *)lParam)->code) |
1047 |
|
{ |
1048 |
|
case PSN_KILLACTIVE : |
1049 |
|
/* validate */ |
1050 |
|
dec_download(hDlg, psi->page, psi->config); |
1051 |
|
SetWindowLong(hDlg, DWL_MSGRESULT, FALSE); |
1052 |
|
break; |
1053 |
|
|
1054 |
|
case PSN_APPLY : |
1055 |
|
/* apply */ |
1056 |
|
dec_download(hDlg, psi->page, psi->config); |
1057 |
|
SetWindowLong(hDlg, DWL_MSGRESULT, FALSE); |
1058 |
|
psi->config->save = TRUE; |
1059 |
|
break; |
1060 |
|
} |
1061 |
|
break; |
1062 |
|
|
1063 |
|
default : |
1064 |
|
return 0; |
1065 |
|
} |
1066 |
|
|
1067 |
|
return 1; |
1068 |
|
} |
1069 |
|
|
1070 |
|
|
1071 |
|
void dec_dialog(HWND hParent, CONFIG * config) |
1072 |
|
{ |
1073 |
|
PROPSHEETINFO psi[DEC_DLG_COUNT]; |
1074 |
|
PROPSHEETPAGE psp[DEC_DLG_COUNT]; |
1075 |
|
PROPSHEETHEADER psh; |
1076 |
|
CONFIG temp; |
1077 |
|
int i; |
1078 |
|
|
1079 |
|
config->save = FALSE; |
1080 |
|
memcpy(&temp, config, sizeof(CONFIG)); |
1081 |
|
|
1082 |
|
for (i=0 ; i<DEC_DLG_COUNT ; ++i) |
1083 |
|
{ |
1084 |
|
psp[i].dwSize = sizeof(PROPSHEETPAGE); |
1085 |
|
psp[i].dwFlags = 0; |
1086 |
|
psp[i].hInstance = hInst; |
1087 |
|
psp[i].pfnDlgProc = dec_proc; |
1088 |
|
psp[i].lParam = (LPARAM)&psi[i]; |
1089 |
|
psp[i].pfnCallback = NULL; |
1090 |
|
|
1091 |
|
psi[i].page = i; |
1092 |
|
psi[i].config = &temp; |
1093 |
|
} |
1094 |
|
|
1095 |
|
psp[DEC_DLG_POSTPROC].pszTemplate = MAKEINTRESOURCE(IDD_POSTPROC); |
1096 |
|
|
1097 |
|
psh.dwSize = sizeof(PROPSHEETHEADER); |
1098 |
|
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW; |
1099 |
|
psh.hwndParent = hParent; |
1100 |
|
psh.hInstance = hInst; |
1101 |
|
psh.pszCaption = (LPSTR) "XviD Configuration"; |
1102 |
|
psh.nPages = DEC_DLG_COUNT; |
1103 |
|
psh.nStartPage = DEC_DLG_POSTPROC; |
1104 |
|
psh.ppsp = (LPCPROPSHEETPAGE)&psp; |
1105 |
|
psh.pfnCallback = NULL; |
1106 |
|
|
1107 |
|
PropertySheet(&psh); |
1108 |
|
|
1109 |
|
if (temp.save) |
1110 |
|
{ |
1111 |
|
memcpy(config, &temp, sizeof(CONFIG)); |
1112 |
|
} |
1113 |
|
} |
1114 |
|
|
1115 |
|
|
1116 |
|
|
1117 |
/* main dialog proc */ |
/* main dialog proc */ |
1118 |
|
|
1119 |
BOOL CALLBACK main_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
BOOL CALLBACK main_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
1139 |
|
|
1140 |
InitCommonControls(); |
InitCommonControls(); |
1141 |
|
|
1142 |
if (hTooltip = CreateWindow(TOOLTIPS_CLASS, NULL, TTS_ALWAYSTIP, |
if ((hTooltip = CreateWindow(TOOLTIPS_CLASS, NULL, TTS_ALWAYSTIP, |
1143 |
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, |
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, |
1144 |
NULL, NULL, hInst, NULL)) |
NULL, NULL, hInst, NULL))) |
1145 |
{ |
{ |
1146 |
SetWindowPos(hTooltip, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE); |
SetWindowPos(hTooltip, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE); |
1147 |
SendMessage(hTooltip, TTM_SETDELAYTIME, TTDT_AUTOMATIC, MAKELONG(1500, 0)); |
SendMessage(hTooltip, TTM_SETDELAYTIME, TTDT_AUTOMATIC, MAKELONG(1500, 0)); |
1181 |
config_reg_set(config); |
config_reg_set(config); |
1182 |
} |
} |
1183 |
} |
} |
1184 |
|
else if (LOWORD(wParam) == IDC_DECODER && HIWORD(wParam) == BN_CLICKED) |
1185 |
|
{ |
1186 |
|
dec_dialog(hDlg, config); |
1187 |
|
|
1188 |
|
if (config->save) |
1189 |
|
{ |
1190 |
|
config_reg_set(config); |
1191 |
|
} |
1192 |
|
} |
1193 |
else if (LOWORD(wParam) == IDC_DEFAULTS && HIWORD(wParam) == BN_CLICKED) |
else if (LOWORD(wParam) == IDC_DEFAULTS && HIWORD(wParam) == BN_CLICKED) |
1194 |
{ |
{ |
1195 |
config_reg_default(config); |
config_reg_default(config); |
1279 |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DIVX"); |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DIVX"); |
1280 |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DX50"); |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DX50"); |
1281 |
|
|
1282 |
#ifndef BFRAMES |
SendDlgItemMessage(hDlg, IDC_VHQ, CB_ADDSTRING, 0, (LPARAM)"0 - Off"); |
1283 |
EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC1), FALSE); |
SendDlgItemMessage(hDlg, IDC_VHQ, CB_ADDSTRING, 0, (LPARAM)"1 - Mode Decision"); |
1284 |
EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC2), FALSE); |
SendDlgItemMessage(hDlg, IDC_VHQ, CB_ADDSTRING, 0, (LPARAM)"2 - Limited Search"); |
1285 |
EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC3), FALSE); |
SendDlgItemMessage(hDlg, IDC_VHQ, CB_ADDSTRING, 0, (LPARAM)"3 - Medium Search"); |
1286 |
EnableWindow(GetDlgItem(hDlg, IDC_MAXBFRAMES), FALSE); |
SendDlgItemMessage(hDlg, IDC_VHQ, CB_ADDSTRING, 0, (LPARAM)"4 - Wide Search"); |
1287 |
EnableWindow(GetDlgItem(hDlg, IDC_BQUANTRATIO), FALSE); |
/* XXX: reduced resolution is not ready for prime-time */ |
1288 |
EnableWindow(GetDlgItem(hDlg, IDC_PACKED), FALSE); |
ShowWindow(GetDlgItem(hDlg, IDC_REDUCED), SW_HIDE); |
|
EnableWindow(GetDlgItem(hDlg, IDC_DX50BVOP), FALSE); |
|
|
EnableWindow(GetDlgItem(hDlg, IDC_DEBUG), FALSE); |
|
|
#endif |
|
1289 |
} |
} |
1290 |
else if (psi->page == DLG_2PASSALT) |
else if (psi->page == DLG_2PASSALT) |
1291 |
{ |
{ |
1296 |
else if (psi->page == DLG_CPU) |
else if (psi->page == DLG_CPU) |
1297 |
{ |
{ |
1298 |
#ifndef _SMP |
#ifndef _SMP |
|
|
|
1299 |
EnableWindow(GetDlgItem(hDlg, IDC_NUMTHREADS_STATIC), FALSE); |
EnableWindow(GetDlgItem(hDlg, IDC_NUMTHREADS_STATIC), FALSE); |
1300 |
EnableWindow(GetDlgItem(hDlg, IDC_NUMTHREADS), FALSE); |
EnableWindow(GetDlgItem(hDlg, IDC_NUMTHREADS), FALSE); |
1301 |
#endif |
#endif |
|
#ifndef BFRAMES |
|
|
EnableWindow(GetDlgItem(hDlg, IDC_FRAMEDROP_STATIC), FALSE); |
|
|
EnableWindow(GetDlgItem(hDlg, IDC_FRAMEDROP), FALSE); |
|
|
#endif |
|
1302 |
} |
} |
1303 |
|
|
1304 |
if (hTooltip) |
if (hTooltip) |