198 |
{"quant_type", ®.quant_type, 0}, |
{"quant_type", ®.quant_type, 0}, |
199 |
{"lum_masking", ®.lum_masking, 0}, |
{"lum_masking", ®.lum_masking, 0}, |
200 |
{"interlacing", ®.interlacing, 0}, |
{"interlacing", ®.interlacing, 0}, |
201 |
|
{"tff", ®.tff, 0}, |
202 |
{"qpel", ®.qpel, 0}, |
{"qpel", ®.qpel, 0}, |
203 |
{"gmc", ®.gmc, 0}, |
{"gmc", ®.gmc, 0}, |
204 |
{"reduced_resolution", ®.reduced_resolution, 0}, |
{"reduced_resolution", ®.reduced_resolution, 0}, |
840 |
EnableDlgWindow(hDlg, IDC_QUANTMATRIX, custom_quant); |
EnableDlgWindow(hDlg, IDC_QUANTMATRIX, custom_quant); |
841 |
EnableDlgWindow(hDlg, IDC_LUMMASK, profiles[profile].flags&PROFILE_ADAPTQUANT); |
EnableDlgWindow(hDlg, IDC_LUMMASK, profiles[profile].flags&PROFILE_ADAPTQUANT); |
842 |
EnableDlgWindow(hDlg, IDC_INTERLACING, profiles[profile].flags&PROFILE_INTERLACE); |
EnableDlgWindow(hDlg, IDC_INTERLACING, profiles[profile].flags&PROFILE_INTERLACE); |
843 |
|
EnableDlgWindow(hDlg, IDC_TFF, IsDlgChecked(hDlg, IDC_INTERLACING)); |
844 |
EnableDlgWindow(hDlg, IDC_QPEL, profiles[profile].flags&PROFILE_QPEL); |
EnableDlgWindow(hDlg, IDC_QPEL, profiles[profile].flags&PROFILE_QPEL); |
845 |
EnableDlgWindow(hDlg, IDC_GMC, profiles[profile].flags&PROFILE_GMC); |
EnableDlgWindow(hDlg, IDC_GMC, profiles[profile].flags&PROFILE_GMC); |
846 |
EnableDlgWindow(hDlg, IDC_REDUCED, profiles[profile].flags&PROFILE_REDUCED); |
EnableDlgWindow(hDlg, IDC_REDUCED, profiles[profile].flags&PROFILE_REDUCED); |
937 |
/* step 2: calculate audio_size (kbytes)*/ |
/* step 2: calculate audio_size (kbytes)*/ |
938 |
if (audio_type!=NO_AUDIO) { |
if (audio_type!=NO_AUDIO) { |
939 |
if (audio_mode==0) { |
if (audio_mode==0) { |
940 |
audio_size = (duration * audio_rate) / 8; |
audio_size = (1000 * duration * audio_rate) / (8*1024); |
941 |
} |
} |
942 |
}else{ |
}else{ |
943 |
audio_size = 0; |
audio_size = 0; |
1050 |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_SETCURSEL, config->quant_type, 0); |
SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_SETCURSEL, config->quant_type, 0); |
1051 |
CheckDlg(hDlg, IDC_LUMMASK, config->lum_masking); |
CheckDlg(hDlg, IDC_LUMMASK, config->lum_masking); |
1052 |
CheckDlg(hDlg, IDC_INTERLACING, config->interlacing); |
CheckDlg(hDlg, IDC_INTERLACING, config->interlacing); |
1053 |
|
CheckDlg(hDlg, IDC_TFF, config->tff); |
1054 |
CheckDlg(hDlg, IDC_QPEL, config->qpel); |
CheckDlg(hDlg, IDC_QPEL, config->qpel); |
1055 |
CheckDlg(hDlg, IDC_GMC, config->gmc); |
CheckDlg(hDlg, IDC_GMC, config->gmc); |
1056 |
CheckDlg(hDlg, IDC_REDUCED, config->reduced_resolution); |
CheckDlg(hDlg, IDC_REDUCED, config->reduced_resolution); |
1197 |
config->quant_type = SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_GETCURSEL, 0, 0); |
config->quant_type = SendDlgItemMessage(hDlg, IDC_QUANTTYPE, CB_GETCURSEL, 0, 0); |
1198 |
config->lum_masking = IsDlgChecked(hDlg, IDC_LUMMASK); |
config->lum_masking = IsDlgChecked(hDlg, IDC_LUMMASK); |
1199 |
config->interlacing = IsDlgChecked(hDlg, IDC_INTERLACING); |
config->interlacing = IsDlgChecked(hDlg, IDC_INTERLACING); |
1200 |
|
config->tff = IsDlgChecked(hDlg, IDC_TFF); |
1201 |
config->qpel = IsDlgChecked(hDlg, IDC_QPEL); |
config->qpel = IsDlgChecked(hDlg, IDC_QPEL); |
1202 |
config->gmc = IsDlgChecked(hDlg, IDC_GMC); |
config->gmc = IsDlgChecked(hDlg, IDC_GMC); |
1203 |
config->reduced_resolution = IsDlgChecked(hDlg, IDC_REDUCED); |
config->reduced_resolution = IsDlgChecked(hDlg, IDC_REDUCED); |
1400 |
{ |
{ |
1401 |
switch (LOWORD(wParam)) |
switch (LOWORD(wParam)) |
1402 |
{ |
{ |
1403 |
|
case IDC_INTERLACING : |
1404 |
case IDC_BVOP : |
case IDC_BVOP : |
1405 |
case IDC_ZONE_MODE_WEIGHT : |
case IDC_ZONE_MODE_WEIGHT : |
1406 |
case IDC_ZONE_MODE_QUANT : |
case IDC_ZONE_MODE_QUANT : |