[svn] / branches / dev-api-3 / vfw / src / config.c Repository:
ViewVC logotype

Diff of /branches/dev-api-3/vfw/src/config.c

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

revision 324, Sun Jul 21 03:49:47 2002 UTC revision 343, Sat Jul 27 21:38:19 2002 UTC
# Line 108  Line 108 
108          {"keyframe_boost",                      &reg.keyframe_boost,                    20},          {"keyframe_boost",                      &reg.keyframe_boost,                    20},
109          {"discard1pass",                        &reg.discard1pass,                              1},          {"discard1pass",                        &reg.discard1pass,                              1},
110          {"dummy2pass",                          &reg.dummy2pass,                                0},          {"dummy2pass",                          &reg.dummy2pass,                                0},
111    // added by koepi for new two-pass curve treatment
112            {"kftreshold",                          &reg.kftreshold,                                10},
113            {"kfreduction",                         &reg.kfreduction,                               30},
114    // end of koepi's additions
115          {"curve_compression_high",      &reg.curve_compression_high,    25},          {"curve_compression_high",      &reg.curve_compression_high,    25},
116          {"curve_compression_low",       &reg.curve_compression_low,             10},          {"curve_compression_low",       &reg.curve_compression_low,             10},
117          {"use_alt_curve",                       &reg.use_alt_curve,                             0},          {"use_alt_curve",                       &reg.use_alt_curve,                             0},
# Line 488  Line 492 
492          // create arrays of controls to be disabled for each mode          // create arrays of controls to be disabled for each mode
493          const short twopass_disable[] = {          const short twopass_disable[] = {
494                  IDC_KFBOOST, IDC_DUMMY2PASS, IDC_USEALT,                  IDC_KFBOOST, IDC_DUMMY2PASS, IDC_USEALT,
495    // added by koepi for new curve treatment
496                    IDC_KFTRESHOLD, IDC_KFREDUCTION,
497    //end of koepi's additions
498                  IDC_CURVECOMPH, IDC_CURVECOMPL, IDC_PAYBACK, IDC_PAYBACKBIAS, IDC_PAYBACKPROP,                  IDC_CURVECOMPH, IDC_CURVECOMPL, IDC_PAYBACK, IDC_PAYBACKBIAS, IDC_PAYBACKPROP,
499                  IDC_STATS2, IDC_STATS2_BROWSE,                  IDC_STATS2, IDC_STATS2_BROWSE,
500          };          };
# Line 643  Line 650 
650                  SetDlgItemInt(hDlg, IDC_KFBOOST, config->keyframe_boost, FALSE);                  SetDlgItemInt(hDlg, IDC_KFBOOST, config->keyframe_boost, FALSE);
651                  CheckDlgButton(hDlg, IDC_DISCARD1PASS, config->discard1pass ? BST_CHECKED : BST_UNCHECKED);                  CheckDlgButton(hDlg, IDC_DISCARD1PASS, config->discard1pass ? BST_CHECKED : BST_UNCHECKED);
652                  CheckDlgButton(hDlg, IDC_DUMMY2PASS, config->dummy2pass ? BST_CHECKED : BST_UNCHECKED);                  CheckDlgButton(hDlg, IDC_DUMMY2PASS, config->dummy2pass ? BST_CHECKED : BST_UNCHECKED);
653    // added by koepi for new 2pass curve treatment
654                    SetDlgItemInt(hDlg, IDC_KFTRESHOLD, config->kftreshold, FALSE);
655                    SetDlgItemInt(hDlg, IDC_KFREDUCTION, config->kfreduction, FALSE);
656    // end of koepi's additions
657                  SetDlgItemInt(hDlg, IDC_CURVECOMPH, config->curve_compression_high, FALSE);                  SetDlgItemInt(hDlg, IDC_CURVECOMPH, config->curve_compression_high, FALSE);
658                  SetDlgItemInt(hDlg, IDC_CURVECOMPL, config->curve_compression_low, FALSE);                  SetDlgItemInt(hDlg, IDC_CURVECOMPL, config->curve_compression_low, FALSE);
659                  SetDlgItemInt(hDlg, IDC_PAYBACK, config->bitrate_payback_delay, FALSE);                  SetDlgItemInt(hDlg, IDC_PAYBACK, config->bitrate_payback_delay, FALSE);
# Line 771  Line 781 
781    
782          case DLG_2PASS :          case DLG_2PASS :
783                  config->keyframe_boost = GetDlgItemInt(hDlg, IDC_KFBOOST, NULL, FALSE);                  config->keyframe_boost = GetDlgItemInt(hDlg, IDC_KFBOOST, NULL, FALSE);
784    // added by koepi for the new 2pass curve treatment
785                    config->kftreshold = GetDlgItemInt(hDlg, IDC_KFTRESHOLD, NULL, FALSE);
786                    config->kfreduction = GetDlgItemInt(hDlg, IDC_KFREDUCTION, NULL, FALSE);
787    //end of koepi's additions
788                  config->discard1pass = ISDLGSET(IDC_DISCARD1PASS);                  config->discard1pass = ISDLGSET(IDC_DISCARD1PASS);
789                  config->dummy2pass = ISDLGSET(IDC_DUMMY2PASS);                  config->dummy2pass = ISDLGSET(IDC_DUMMY2PASS);
790                  config->curve_compression_high = GetDlgItemInt(hDlg, IDC_CURVECOMPH, NULL, FALSE);                  config->curve_compression_high = GetDlgItemInt(hDlg, IDC_CURVECOMPH, NULL, FALSE);

Legend:
Removed from v.324  
changed lines
  Added in v.343

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