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, 6}, |
{"motion_search", ®.motion_search, 5}, |
88 |
{"quant_type", ®.quant_type, 0}, |
{"quant_type", ®.quant_type, 0}, |
89 |
{"fourcc_used", ®.fourcc_used, 0}, |
{"fourcc_used", ®.fourcc_used, 0}, |
|
{"vhq_mode", ®.vhq_mode, 0}, |
|
90 |
{"max_key_interval", ®.max_key_interval, 300}, |
{"max_key_interval", ®.max_key_interval, 300}, |
91 |
{"min_key_interval", ®.min_key_interval, 1}, |
{"min_key_interval", ®.min_key_interval, 1}, |
92 |
{"lum_masking", ®.lum_masking, 0}, |
{"lum_masking", ®.lum_masking, 0}, |
93 |
{"interlacing", ®.interlacing, 0}, |
{"interlacing", ®.interlacing, 0}, |
|
{"qpel", ®.qpel, 0}, |
|
|
{"gmc", ®.gmc, 0}, |
|
|
{"chromame", ®.chromame, 0}, |
|
94 |
//added by koepi for gruel's greyscale_mode |
//added by koepi for gruel's greyscale_mode |
95 |
{"greyscale", ®.greyscale, 0}, |
{"greyscale", ®.greyscale, 0}, |
96 |
// end of koepi's additions |
// end of koepi's additions |
97 |
|
#ifdef BFRAMES |
98 |
{"max_bframes", ®.max_bframes, -1}, |
{"max_bframes", ®.max_bframes, -1}, |
99 |
{"bquant_ratio", ®.bquant_ratio, 150}, |
{"bquant_ratio", ®.bquant_ratio, 200}, |
|
{"bquant_offset", ®.bquant_offset, 100}, |
|
100 |
{"packed", ®.packed, 0}, |
{"packed", ®.packed, 0}, |
101 |
{"dx50bvop", ®.dx50bvop, 1}, |
{"dx50bvop", ®.dx50bvop, 0}, |
102 |
{"debug", ®.debug, 0}, |
{"debug", ®.debug, 0}, |
|
{"reduced_resolution", ®.reduced_resolution, 0}, |
|
|
{"chroma_opt", ®.chroma_opt, 0}, |
|
103 |
{"frame_drop_ratio", ®.frame_drop_ratio, 0}, |
{"frame_drop_ratio", ®.frame_drop_ratio, 0}, |
104 |
|
#endif |
105 |
|
|
106 |
{"min_iquant", ®.min_iquant, 2}, |
{"min_iquant", ®.min_iquant, 2}, |
107 |
{"max_iquant", ®.max_iquant, 31}, |
{"max_iquant", ®.max_iquant, 31}, |
114 |
{"dummy2pass", ®.dummy2pass, 0}, |
{"dummy2pass", ®.dummy2pass, 0}, |
115 |
// added by koepi for new two-pass curve treatment |
// added by koepi for new two-pass curve treatment |
116 |
{"kftreshold", ®.kftreshold, 10}, |
{"kftreshold", ®.kftreshold, 10}, |
117 |
{"kfreduction", ®.kfreduction, 20}, |
{"kfreduction", ®.kfreduction, 30}, |
118 |
// end of koepi's additions |
// end of koepi's additions |
119 |
{"curve_compression_high", ®.curve_compression_high, 0}, |
{"curve_compression_high", ®.curve_compression_high, 25}, |
120 |
{"curve_compression_low", ®.curve_compression_low, 0}, |
{"curve_compression_low", ®.curve_compression_low, 10}, |
121 |
{"use_alt_curve", ®.use_alt_curve, 0}, |
{"use_alt_curve", ®.use_alt_curve, 1}, |
122 |
{"alt_curve_use_auto", ®.alt_curve_use_auto, 1}, |
{"alt_curve_use_auto", ®.alt_curve_use_auto, 1}, |
123 |
{"alt_curve_auto_str", ®.alt_curve_auto_str, 30}, |
{"alt_curve_auto_str", ®.alt_curve_auto_str, 30}, |
124 |
{"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}, |
149 |
{"credits_quant_i", ®.credits_quant_i, 20}, |
{"credits_quant_i", ®.credits_quant_i, 20}, |
150 |
{"credits_quant_p", ®.credits_quant_p, 20}, |
{"credits_quant_p", ®.credits_quant_p, 20}, |
151 |
{"credits_start_size", ®.credits_start_size, 10000}, |
{"credits_start_size", ®.credits_start_size, 10000}, |
152 |
{"credits_end_size", ®.credits_end_size, 10000}, |
{"credits_end_size", ®.credits_end_size, 10000} |
|
|
|
|
/* decoder */ |
|
|
{"deblock_y", ®.deblock_y, 0}, |
|
|
{"deblock_uv", ®.deblock_uv, 0} |
|
153 |
}; |
}; |
154 |
|
|
155 |
REG_STR const reg_strs[] = { |
REG_STR const reg_strs[] = { |
539 |
|
|
540 |
const short twopass2_ext_disable[] = { |
const short twopass2_ext_disable[] = { |
541 |
IDC_CBR_REACTIONDELAY, IDC_CBR_AVERAGINGPERIOD, IDC_CBR_BUFFER, |
IDC_CBR_REACTIONDELAY, IDC_CBR_AVERAGINGPERIOD, IDC_CBR_BUFFER, |
542 |
IDC_CREDITS_RATE_RADIO, |
IDC_CREDITS_RATE_RADIO, IDC_CREDITS_QUANT_RADIO, IDC_CREDITS_QUANT_STATIC, |
543 |
IDC_CREDITS_SIZE_RADIO, IDC_CREDITS_END_STATIC, IDC_CREDITS_RATE, |
IDC_CREDITS_SIZE_RADIO, IDC_CREDITS_END_STATIC, IDC_CREDITS_RATE, |
544 |
IDC_CREDITS_START_SIZE, IDC_CREDITS_END_SIZE |
IDC_CREDITS_QUANTI, IDC_CREDITS_QUANTP, IDC_CREDITS_START_SIZE, IDC_CREDITS_END_SIZE |
545 |
}; |
}; |
546 |
|
|
547 |
const short twopass2_int_disable[] = { |
const short twopass2_int_disable[] = { |
635 |
SendDlgItemMessage(hDlg, IDC_MOTION, CB_SETCURSEL, config->motion_search, 0); |
SendDlgItemMessage(hDlg, IDC_MOTION, CB_SETCURSEL, config->motion_search, 0); |
636 |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_SETCURSEL, config->quant_type, 0); |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_SETCURSEL, config->quant_type, 0); |
637 |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_SETCURSEL, config->fourcc_used, 0); |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_SETCURSEL, config->fourcc_used, 0); |
|
SendDlgItemMessage(hDlg, IDC_VHQ, CB_SETCURSEL, config->vhq_mode, 0); |
|
638 |
SetDlgItemInt(hDlg, IDC_MAXKEY, config->max_key_interval, FALSE); |
SetDlgItemInt(hDlg, IDC_MAXKEY, config->max_key_interval, FALSE); |
639 |
SetDlgItemInt(hDlg, IDC_MINKEY, config->min_key_interval, FALSE); |
SetDlgItemInt(hDlg, IDC_MINKEY, config->min_key_interval, FALSE); |
640 |
CheckDlgButton(hDlg, IDC_LUMMASK, config->lum_masking ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_LUMMASK, config->lum_masking ? BST_CHECKED : BST_UNCHECKED); |
641 |
CheckDlgButton(hDlg, IDC_INTERLACING, config->interlacing ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_INTERLACING, config->interlacing ? BST_CHECKED : BST_UNCHECKED); |
|
|
|
|
CheckDlgButton(hDlg, IDC_QPEL, config->qpel ? BST_CHECKED : BST_UNCHECKED); |
|
|
CheckDlgButton(hDlg, IDC_GMC, config->gmc ? BST_CHECKED : BST_UNCHECKED); |
|
|
CheckDlgButton(hDlg, IDC_CHROMAME, config->chromame ? BST_CHECKED : BST_UNCHECKED); |
|
642 |
// added by koepi for gruel's greyscale_mode |
// added by koepi for gruel's greyscale_mode |
643 |
CheckDlgButton(hDlg, IDC_GREYSCALE, config->greyscale ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_GREYSCALE, config->greyscale ? BST_CHECKED : BST_UNCHECKED); |
644 |
// end of koepi's addition |
// end of koepi's addition |
645 |
|
#ifdef BFRAMES |
646 |
SetDlgItemInt(hDlg, IDC_MAXBFRAMES, config->max_bframes, TRUE); |
SetDlgItemInt(hDlg, IDC_MAXBFRAMES, config->max_bframes, TRUE); |
647 |
SetDlgItemInt(hDlg, IDC_BQUANTRATIO, config->bquant_ratio, FALSE); |
SetDlgItemInt(hDlg, IDC_BQUANTRATIO, config->bquant_ratio, FALSE); |
|
SetDlgItemInt(hDlg, IDC_BQUANTOFFSET, config->bquant_offset, FALSE); |
|
648 |
CheckDlgButton(hDlg, IDC_PACKED, config->packed ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_PACKED, config->packed ? BST_CHECKED : BST_UNCHECKED); |
649 |
CheckDlgButton(hDlg, IDC_DX50BVOP, config->dx50bvop ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_DX50BVOP, config->dx50bvop ? BST_CHECKED : BST_UNCHECKED); |
650 |
CheckDlgButton(hDlg, IDC_DEBUG, config->debug ? BST_CHECKED : BST_UNCHECKED); |
CheckDlgButton(hDlg, IDC_DEBUG, config->debug ? BST_CHECKED : BST_UNCHECKED); |
651 |
|
#endif |
|
CheckDlgButton(hDlg, IDC_REDUCED, config->reduced_resolution ? BST_CHECKED : BST_UNCHECKED); |
|
652 |
break; |
break; |
653 |
|
|
654 |
case DLG_QUANT : |
case DLG_QUANT : |
742 |
#ifdef _SMP |
#ifdef _SMP |
743 |
SetDlgItemInt(hDlg, IDC_NUMTHREADS, config->num_threads, FALSE); |
SetDlgItemInt(hDlg, IDC_NUMTHREADS, config->num_threads, FALSE); |
744 |
#endif |
#endif |
745 |
CheckDlgButton(hDlg, IDC_CHROMA_OPT, (config->chroma_opt) ? BST_CHECKED : BST_UNCHECKED); |
|
746 |
|
#ifdef BFRAMES |
747 |
SetDlgItemInt(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio, FALSE); |
SetDlgItemInt(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio, FALSE); |
748 |
|
#endif |
749 |
|
|
750 |
SetDlgItemInt(hDlg, IDC_CBR_REACTIONDELAY, config->rc_reaction_delay_factor, FALSE); |
SetDlgItemInt(hDlg, IDC_CBR_REACTIONDELAY, config->rc_reaction_delay_factor, FALSE); |
751 |
SetDlgItemInt(hDlg, IDC_CBR_AVERAGINGPERIOD, config->rc_averaging_period, FALSE); |
SetDlgItemInt(hDlg, IDC_CBR_AVERAGINGPERIOD, config->rc_averaging_period, FALSE); |
752 |
SetDlgItemInt(hDlg, IDC_CBR_BUFFER, config->rc_buffer, FALSE); |
SetDlgItemInt(hDlg, IDC_CBR_BUFFER, config->rc_buffer, FALSE); |
769 |
config->motion_search = SendDlgItemMessage(hDlg, IDC_MOTION, CB_GETCURSEL, 0, 0); |
config->motion_search = SendDlgItemMessage(hDlg, IDC_MOTION, CB_GETCURSEL, 0, 0); |
770 |
config->quant_type = SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_GETCURSEL, 0, 0); |
config->quant_type = SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_GETCURSEL, 0, 0); |
771 |
config->fourcc_used = SendDlgItemMessage(hDlg, IDC_FOURCC, CB_GETCURSEL, 0, 0); |
config->fourcc_used = SendDlgItemMessage(hDlg, IDC_FOURCC, CB_GETCURSEL, 0, 0); |
|
config->vhq_mode = SendDlgItemMessage(hDlg, IDC_VHQ, CB_GETCURSEL, 0, 0); |
|
772 |
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); |
773 |
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); |
774 |
config->lum_masking = ISDLGSET(IDC_LUMMASK); |
config->lum_masking = ISDLGSET(IDC_LUMMASK); |
775 |
config->interlacing = ISDLGSET(IDC_INTERLACING); |
config->interlacing = ISDLGSET(IDC_INTERLACING); |
|
|
|
|
config->qpel = ISDLGSET(IDC_QPEL); |
|
|
config->gmc = ISDLGSET(IDC_GMC); |
|
|
config->chromame = ISDLGSET(IDC_CHROMAME); |
|
776 |
// added by koepi for gruel's greyscale_mode |
// added by koepi for gruel's greyscale_mode |
777 |
config->greyscale = ISDLGSET(IDC_GREYSCALE); |
config->greyscale = ISDLGSET(IDC_GREYSCALE); |
778 |
// end of koepi's addition |
// end of koepi's addition |
779 |
|
#ifdef BFRAMES |
780 |
config->max_bframes = config_get_int(hDlg, IDC_MAXBFRAMES, config->max_bframes); |
config->max_bframes = config_get_int(hDlg, IDC_MAXBFRAMES, config->max_bframes); |
781 |
config->bquant_ratio = config_get_uint(hDlg, IDC_BQUANTRATIO, config->bquant_ratio); |
config->bquant_ratio = config_get_uint(hDlg, IDC_BQUANTRATIO, config->bquant_ratio); |
|
config->bquant_offset = config_get_uint(hDlg, IDC_BQUANTOFFSET, config->bquant_offset); |
|
782 |
config->packed = ISDLGSET(IDC_PACKED); |
config->packed = ISDLGSET(IDC_PACKED); |
783 |
config->dx50bvop = ISDLGSET(IDC_DX50BVOP); |
config->dx50bvop = ISDLGSET(IDC_DX50BVOP); |
784 |
config->debug = ISDLGSET(IDC_DEBUG); |
config->debug = ISDLGSET(IDC_DEBUG); |
785 |
config->reduced_resolution = ISDLGSET(IDC_REDUCED); |
#endif |
786 |
break; |
break; |
787 |
|
|
788 |
case DLG_QUANT : |
case DLG_QUANT : |
905 |
#ifdef _SMP |
#ifdef _SMP |
906 |
config->num_threads = config_get_uint(hDlg, IDC_NUMTHREADS, config->num_threads); |
config->num_threads = config_get_uint(hDlg, IDC_NUMTHREADS, config->num_threads); |
907 |
#endif |
#endif |
908 |
config->chroma_opt = ISDLGSET(IDC_CHROMA_OPT); |
#ifdef BFRAMES |
909 |
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); |
910 |
|
#endif |
911 |
|
|
912 |
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); |
913 |
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); |
914 |
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); |
971 |
} |
} |
972 |
|
|
973 |
|
|
|
|
|
|
/* --- decoder options dialog --- */ |
|
|
|
|
|
#define DEC_DLG_COUNT 1 |
|
|
#define DEC_DLG_POSTPROC 0 |
|
|
|
|
|
/* decoder dialog: upload config data */ |
|
|
|
|
|
void dec_upload(HWND hDlg, int page, CONFIG * config) |
|
|
{ |
|
|
switch (page) |
|
|
{ |
|
|
case DEC_DLG_POSTPROC : |
|
|
CheckDlgButton(hDlg, IDC_DEBLOCK_Y, config->deblock_y ? BST_CHECKED : BST_UNCHECKED); |
|
|
CheckDlgButton(hDlg, IDC_DEBLOCK_UV, config->deblock_uv ? BST_CHECKED : BST_UNCHECKED); |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* dec dialog: download config data */ |
|
|
|
|
|
void dec_download(HWND hDlg, int page, CONFIG * config) |
|
|
{ |
|
|
switch (page) |
|
|
{ |
|
|
case DEC_DLG_POSTPROC : |
|
|
config->deblock_y = ISDLGSET(IDC_DEBLOCK_Y); |
|
|
config->deblock_uv = ISDLGSET(IDC_DEBLOCK_UV); |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
/* decoder dialog proc */ |
|
|
|
|
|
BOOL CALLBACK dec_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
|
{ |
|
|
PROPSHEETINFO *psi; |
|
|
|
|
|
psi = (PROPSHEETINFO*)GetWindowLong(hDlg, GWL_USERDATA); |
|
|
|
|
|
switch (uMsg) |
|
|
{ |
|
|
case WM_INITDIALOG : |
|
|
psi = (PROPSHEETINFO*) ((LPPROPSHEETPAGE)lParam)->lParam; |
|
|
|
|
|
SetWindowLong(hDlg, GWL_USERDATA, (LPARAM)psi); |
|
|
|
|
|
if (hTooltip) |
|
|
{ |
|
|
EnumChildWindows(hDlg, enum_tooltips, 0); |
|
|
} |
|
|
|
|
|
dec_upload(hDlg, psi->page, psi->config); |
|
|
break; |
|
|
|
|
|
case WM_NOTIFY : |
|
|
switch (((NMHDR *)lParam)->code) |
|
|
{ |
|
|
case PSN_KILLACTIVE : |
|
|
/* validate */ |
|
|
dec_download(hDlg, psi->page, psi->config); |
|
|
SetWindowLong(hDlg, DWL_MSGRESULT, FALSE); |
|
|
break; |
|
|
|
|
|
case PSN_APPLY : |
|
|
/* apply */ |
|
|
dec_download(hDlg, psi->page, psi->config); |
|
|
SetWindowLong(hDlg, DWL_MSGRESULT, FALSE); |
|
|
psi->config->save = TRUE; |
|
|
break; |
|
|
} |
|
|
break; |
|
|
|
|
|
default : |
|
|
return 0; |
|
|
} |
|
|
|
|
|
return 1; |
|
|
} |
|
|
|
|
|
|
|
|
void dec_dialog(HWND hParent, CONFIG * config) |
|
|
{ |
|
|
PROPSHEETINFO psi[DEC_DLG_COUNT]; |
|
|
PROPSHEETPAGE psp[DEC_DLG_COUNT]; |
|
|
PROPSHEETHEADER psh; |
|
|
CONFIG temp; |
|
|
int i; |
|
|
|
|
|
config->save = FALSE; |
|
|
memcpy(&temp, config, sizeof(CONFIG)); |
|
|
|
|
|
for (i=0 ; i<DEC_DLG_COUNT ; ++i) |
|
|
{ |
|
|
psp[i].dwSize = sizeof(PROPSHEETPAGE); |
|
|
psp[i].dwFlags = 0; |
|
|
psp[i].hInstance = hInst; |
|
|
psp[i].pfnDlgProc = dec_proc; |
|
|
psp[i].lParam = (LPARAM)&psi[i]; |
|
|
psp[i].pfnCallback = NULL; |
|
|
|
|
|
psi[i].page = i; |
|
|
psi[i].config = &temp; |
|
|
} |
|
|
|
|
|
psp[DEC_DLG_POSTPROC].pszTemplate = MAKEINTRESOURCE(IDD_POSTPROC); |
|
|
|
|
|
psh.dwSize = sizeof(PROPSHEETHEADER); |
|
|
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW; |
|
|
psh.hwndParent = hParent; |
|
|
psh.hInstance = hInst; |
|
|
psh.pszCaption = (LPSTR) "XviD Configuration"; |
|
|
psh.nPages = DEC_DLG_COUNT; |
|
|
psh.nStartPage = DEC_DLG_POSTPROC; |
|
|
psh.ppsp = (LPCPROPSHEETPAGE)&psp; |
|
|
psh.pfnCallback = NULL; |
|
|
|
|
|
PropertySheet(&psh); |
|
|
|
|
|
if (temp.save) |
|
|
{ |
|
|
memcpy(config, &temp, sizeof(CONFIG)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
974 |
/* main dialog proc */ |
/* main dialog proc */ |
975 |
|
|
976 |
BOOL CALLBACK main_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
BOOL CALLBACK main_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
996 |
|
|
997 |
InitCommonControls(); |
InitCommonControls(); |
998 |
|
|
999 |
if (hTooltip = CreateWindow(TOOLTIPS_CLASS, NULL, TTS_ALWAYSTIP, |
if ((hTooltip = CreateWindow(TOOLTIPS_CLASS, NULL, TTS_ALWAYSTIP, |
1000 |
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, |
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, |
1001 |
NULL, NULL, hInst, NULL)) |
NULL, NULL, hInst, NULL))) |
1002 |
{ |
{ |
1003 |
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); |
1004 |
SendMessage(hTooltip, TTM_SETDELAYTIME, TTDT_AUTOMATIC, MAKELONG(1500, 0)); |
SendMessage(hTooltip, TTM_SETDELAYTIME, TTDT_AUTOMATIC, MAKELONG(1500, 0)); |
1038 |
config_reg_set(config); |
config_reg_set(config); |
1039 |
} |
} |
1040 |
} |
} |
|
else if (LOWORD(wParam) == IDC_DECODER && HIWORD(wParam) == BN_CLICKED) |
|
|
{ |
|
|
dec_dialog(hDlg, config); |
|
|
|
|
|
if (config->save) |
|
|
{ |
|
|
config_reg_set(config); |
|
|
} |
|
|
} |
|
1041 |
else if (LOWORD(wParam) == IDC_DEFAULTS && HIWORD(wParam) == BN_CLICKED) |
else if (LOWORD(wParam) == IDC_DEFAULTS && HIWORD(wParam) == BN_CLICKED) |
1042 |
{ |
{ |
1043 |
config_reg_default(config); |
config_reg_default(config); |
1121 |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_ADDSTRING, 0, (LPARAM)"MPEG"); |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_ADDSTRING, 0, (LPARAM)"MPEG"); |
1122 |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_ADDSTRING, 0, (LPARAM)"MPEG-Custom"); |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_ADDSTRING, 0, (LPARAM)"MPEG-Custom"); |
1123 |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_ADDSTRING, 0, (LPARAM)"Modulated"); |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_ADDSTRING, 0, (LPARAM)"Modulated"); |
|
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_ADDSTRING, 0, (LPARAM)"New Modulated HQ"); |
|
1124 |
|
|
1125 |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"XVID"); |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"XVID"); |
1126 |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DIVX"); |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DIVX"); |
1127 |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DX50"); |
SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DX50"); |
1128 |
|
|
1129 |
SendDlgItemMessage(hDlg, IDC_VHQ, CB_ADDSTRING, 0, (LPARAM)"0 - Off"); |
#ifndef BFRAMES |
1130 |
SendDlgItemMessage(hDlg, IDC_VHQ, CB_ADDSTRING, 0, (LPARAM)"1 - Mode Decision"); |
EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC1), FALSE); |
1131 |
SendDlgItemMessage(hDlg, IDC_VHQ, CB_ADDSTRING, 0, (LPARAM)"2 - Limited Search"); |
EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC2), FALSE); |
1132 |
SendDlgItemMessage(hDlg, IDC_VHQ, CB_ADDSTRING, 0, (LPARAM)"3 - Medium Search"); |
EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC3), FALSE); |
1133 |
SendDlgItemMessage(hDlg, IDC_VHQ, CB_ADDSTRING, 0, (LPARAM)"4 - Wide Search"); |
EnableWindow(GetDlgItem(hDlg, IDC_MAXBFRAMES), FALSE); |
1134 |
/* XXX: reduced resolution is not ready for prime-time */ |
EnableWindow(GetDlgItem(hDlg, IDC_BQUANTRATIO), FALSE); |
1135 |
ShowWindow(GetDlgItem(hDlg, IDC_REDUCED), SW_HIDE); |
EnableWindow(GetDlgItem(hDlg, IDC_PACKED), FALSE); |
1136 |
|
EnableWindow(GetDlgItem(hDlg, IDC_DX50BVOP), FALSE); |
1137 |
|
EnableWindow(GetDlgItem(hDlg, IDC_DEBUG), FALSE); |
1138 |
|
#endif |
1139 |
} |
} |
1140 |
else if (psi->page == DLG_2PASSALT) |
else if (psi->page == DLG_2PASSALT) |
1141 |
{ |
{ |
1146 |
else if (psi->page == DLG_CPU) |
else if (psi->page == DLG_CPU) |
1147 |
{ |
{ |
1148 |
#ifndef _SMP |
#ifndef _SMP |
1149 |
|
|
1150 |
EnableWindow(GetDlgItem(hDlg, IDC_NUMTHREADS_STATIC), FALSE); |
EnableWindow(GetDlgItem(hDlg, IDC_NUMTHREADS_STATIC), FALSE); |
1151 |
EnableWindow(GetDlgItem(hDlg, IDC_NUMTHREADS), FALSE); |
EnableWindow(GetDlgItem(hDlg, IDC_NUMTHREADS), FALSE); |
1152 |
#endif |
#endif |
1153 |
|
#ifndef BFRAMES |
1154 |
|
EnableWindow(GetDlgItem(hDlg, IDC_FRAMEDROP_STATIC), FALSE); |
1155 |
|
EnableWindow(GetDlgItem(hDlg, IDC_FRAMEDROP), FALSE); |
1156 |
|
#endif |
1157 |
} |
} |
1158 |
|
|
1159 |
if (hTooltip) |
if (hTooltip) |