[svn] / trunk / xvidcore / vfw / src / config.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/vfw/src/config.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1562, Mon Nov 22 10:40:03 2004 UTC revision 1588, Sat Jan 8 12:28:48 2005 UTC
# Line 259  Line 259 
259          {"vhq_mode",                            &reg.vhq_mode,                                  1},          {"vhq_mode",                            &reg.vhq_mode,                                  1},
260          {"vhq_bframe",                          &reg.vhq_bframe,                                0},          {"vhq_bframe",                          &reg.vhq_bframe,                                0},
261          {"chromame",                            &reg.chromame,                                  1},          {"chromame",                            &reg.chromame,                                  1},
         {"cartoon_mode",                        &reg.cartoon_mode,                              0},  
262          {"turbo",                                       &reg.turbo,                                             0},          {"turbo",                                       &reg.turbo,                                             0},
263          {"max_key_interval",            &reg.max_key_interval,                  300},          {"max_key_interval",            &reg.max_key_interval,                  300},
264          {"frame_drop_ratio",            &reg.frame_drop_ratio,                  0},          {"frame_drop_ratio",            &reg.frame_drop_ratio,                  0},
# Line 305  Line 304 
304          {"zone%i_greyscale",            &stmp.greyscale,                                0},          {"zone%i_greyscale",            &stmp.greyscale,                                0},
305          {"zone%i_chroma_opt",           &stmp.chroma_opt,                               0},          {"zone%i_chroma_opt",           &stmp.chroma_opt,                               0},
306          {"zone%i_bvop_threshold",   &stmp.bvop_threshold,                       0},          {"zone%i_bvop_threshold",   &stmp.bvop_threshold,                       0},
307            {"zone%i_cartoon_mode",         &stmp.cartoon_mode,                             0},
308  };  };
309    
310  static const BYTE default_qmatrix_intra[] = {  static const BYTE default_qmatrix_intra[] = {
# Line 1136  Line 1136 
1136                  CheckDlgButton(hDlg, IDC_ZONE_GREYSCALE, config->zones[config->cur_zone].greyscale);                  CheckDlgButton(hDlg, IDC_ZONE_GREYSCALE, config->zones[config->cur_zone].greyscale);
1137                  CheckDlgButton(hDlg, IDC_ZONE_CHROMAOPT, config->zones[config->cur_zone].chroma_opt);                  CheckDlgButton(hDlg, IDC_ZONE_CHROMAOPT, config->zones[config->cur_zone].chroma_opt);
1138    
1139                    CheckDlg(hDlg, IDC_CARTOON, config->zones[config->cur_zone].cartoon_mode);
1140    
1141                  SetDlgItemInt(hDlg, IDC_ZONE_BVOPTHRESHOLD, config->zones[config->cur_zone].bvop_threshold, TRUE);                  SetDlgItemInt(hDlg, IDC_ZONE_BVOPTHRESHOLD, config->zones[config->cur_zone].bvop_threshold, TRUE);
1142                  break;                  break;
1143    
# Line 1144  Line 1146 
1146                  SendDlgItemMessage(hDlg, IDC_VHQ, CB_SETCURSEL, config->vhq_mode, 0);                  SendDlgItemMessage(hDlg, IDC_VHQ, CB_SETCURSEL, config->vhq_mode, 0);
1147                  CheckDlg(hDlg, IDC_VHQ_BFRAME, config->vhq_bframe);                  CheckDlg(hDlg, IDC_VHQ_BFRAME, config->vhq_bframe);
1148                  CheckDlg(hDlg, IDC_CHROMAME, config->chromame);                  CheckDlg(hDlg, IDC_CHROMAME, config->chromame);
                 CheckDlg(hDlg, IDC_CARTOON, config->cartoon_mode);  
1149                  CheckDlg(hDlg, IDC_TURBO, config->turbo);                  CheckDlg(hDlg, IDC_TURBO, config->turbo);
1150                  SetDlgItemInt(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio, FALSE);                  SetDlgItemInt(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio, FALSE);
1151                  SetDlgItemInt(hDlg, IDC_MAXKEY, config->max_key_interval, FALSE);                  SetDlgItemInt(hDlg, IDC_MAXKEY, config->max_key_interval, FALSE);
# Line 1320  Line 1321 
1321                  config->zones[config->cur_zone].chroma_opt = IsDlgButtonChecked(hDlg, IDC_ZONE_CHROMAOPT);                  config->zones[config->cur_zone].chroma_opt = IsDlgButtonChecked(hDlg, IDC_ZONE_CHROMAOPT);
1322    
1323                  config->zones[config->cur_zone].bvop_threshold = config_get_int(hDlg, IDC_ZONE_BVOPTHRESHOLD, config->zones[config->cur_zone].bvop_threshold);                  config->zones[config->cur_zone].bvop_threshold = config_get_int(hDlg, IDC_ZONE_BVOPTHRESHOLD, config->zones[config->cur_zone].bvop_threshold);
1324                    config->zones[config->cur_zone].cartoon_mode = IsDlgChecked(hDlg, IDC_CARTOON);
1325                  break;                  break;
1326    
1327          case IDD_MOTION :          case IDD_MOTION :
# Line 1327  Line 1329 
1329                  config->vhq_mode = SendDlgItemMessage(hDlg, IDC_VHQ, CB_GETCURSEL, 0, 0);                  config->vhq_mode = SendDlgItemMessage(hDlg, IDC_VHQ, CB_GETCURSEL, 0, 0);
1330                  config->vhq_bframe = IsDlgButtonChecked(hDlg, IDC_VHQ_BFRAME);                  config->vhq_bframe = IsDlgButtonChecked(hDlg, IDC_VHQ_BFRAME);
1331                  config->chromame = IsDlgChecked(hDlg, IDC_CHROMAME);                  config->chromame = IsDlgChecked(hDlg, IDC_CHROMAME);
                 config->cartoon_mode = IsDlgChecked(hDlg, IDC_CARTOON);  
1332                  config->turbo = IsDlgChecked(hDlg, IDC_TURBO);                  config->turbo = IsDlgChecked(hDlg, IDC_TURBO);
1333    
1334                  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);

Legend:
Removed from v.1562  
changed lines
  Added in v.1588

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4