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

Diff of /trunk/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 355, Thu Aug 1 12:56:29 2002 UTC
# Line 90  Line 90 
90          {"min_key_interval",            &reg.min_key_interval,                  1},          {"min_key_interval",            &reg.min_key_interval,                  1},
91          {"lum_masking",                         &reg.lum_masking,                               0},          {"lum_masking",                         &reg.lum_masking,                               0},
92          {"interlacing",                         &reg.interlacing,                               0},          {"interlacing",                         &reg.interlacing,                               0},
93    //added by koepi for gruel's greyscale_mode
94            {"greyscale",                           &reg.greyscale,                                 0},
95    // end of koepi's additions
96  #ifdef BFRAMES  #ifdef BFRAMES
97          {"max_bframes",                         &reg.max_bframes,                               -1},          {"max_bframes",                         &reg.max_bframes,                               -1},
98          {"bquant_ratio",                        &reg.bquant_ratio,                              200},          {"bquant_ratio",                        &reg.bquant_ratio,                              200},
# Line 108  Line 111 
111          {"keyframe_boost",                      &reg.keyframe_boost,                    20},          {"keyframe_boost",                      &reg.keyframe_boost,                    20},
112          {"discard1pass",                        &reg.discard1pass,                              1},          {"discard1pass",                        &reg.discard1pass,                              1},
113          {"dummy2pass",                          &reg.dummy2pass,                                0},          {"dummy2pass",                          &reg.dummy2pass,                                0},
114    // added by koepi for new two-pass curve treatment
115            {"kftreshold",                          &reg.kftreshold,                                10},
116            {"kfreduction",                         &reg.kfreduction,                               30},
117    // end of koepi's additions
118          {"curve_compression_high",      &reg.curve_compression_high,    25},          {"curve_compression_high",      &reg.curve_compression_high,    25},
119          {"curve_compression_low",       &reg.curve_compression_low,             10},          {"curve_compression_low",       &reg.curve_compression_low,             10},
120          {"use_alt_curve",                       &reg.use_alt_curve,                             0},          {"use_alt_curve",                       &reg.use_alt_curve,                             0},
# Line 488  Line 495 
495          // create arrays of controls to be disabled for each mode          // create arrays of controls to be disabled for each mode
496          const short twopass_disable[] = {          const short twopass_disable[] = {
497                  IDC_KFBOOST, IDC_DUMMY2PASS, IDC_USEALT,                  IDC_KFBOOST, IDC_DUMMY2PASS, IDC_USEALT,
498    // added by koepi for new curve treatment
499                    IDC_KFTRESHOLD, IDC_KFREDUCTION,
500    //end of koepi's additions
501                  IDC_CURVECOMPH, IDC_CURVECOMPL, IDC_PAYBACK, IDC_PAYBACKBIAS, IDC_PAYBACKPROP,                  IDC_CURVECOMPH, IDC_CURVECOMPL, IDC_PAYBACK, IDC_PAYBACKBIAS, IDC_PAYBACKPROP,
502                  IDC_STATS2, IDC_STATS2_BROWSE,                  IDC_STATS2, IDC_STATS2_BROWSE,
503          };          };
# Line 623  Line 633 
633                  SetDlgItemInt(hDlg, IDC_MINKEY, config->min_key_interval, FALSE);                  SetDlgItemInt(hDlg, IDC_MINKEY, config->min_key_interval, FALSE);
634                  CheckDlgButton(hDlg, IDC_LUMMASK, config->lum_masking ? BST_CHECKED : BST_UNCHECKED);                  CheckDlgButton(hDlg, IDC_LUMMASK, config->lum_masking ? BST_CHECKED : BST_UNCHECKED);
635                  CheckDlgButton(hDlg, IDC_INTERLACING, config->interlacing ? BST_CHECKED : BST_UNCHECKED);                  CheckDlgButton(hDlg, IDC_INTERLACING, config->interlacing ? BST_CHECKED : BST_UNCHECKED);
636    // added by koepi for gruel's greyscale_mode
637                    CheckDlgButton(hDlg, IDC_GREYSCALE, config->greyscale ? BST_CHECKED : BST_UNCHECKED);
638    // end of koepi's addition
639  #ifdef BFRAMES  #ifdef BFRAMES
640                  SetDlgItemInt(hDlg, IDC_MAXBFRAMES, config->max_bframes, TRUE);                  SetDlgItemInt(hDlg, IDC_MAXBFRAMES, config->max_bframes, TRUE);
641                  SetDlgItemInt(hDlg, IDC_BQUANTRATIO, config->bquant_ratio, FALSE);                  SetDlgItemInt(hDlg, IDC_BQUANTRATIO, config->bquant_ratio, FALSE);
# Line 643  Line 656 
656                  SetDlgItemInt(hDlg, IDC_KFBOOST, config->keyframe_boost, FALSE);                  SetDlgItemInt(hDlg, IDC_KFBOOST, config->keyframe_boost, FALSE);
657                  CheckDlgButton(hDlg, IDC_DISCARD1PASS, config->discard1pass ? BST_CHECKED : BST_UNCHECKED);                  CheckDlgButton(hDlg, IDC_DISCARD1PASS, config->discard1pass ? BST_CHECKED : BST_UNCHECKED);
658                  CheckDlgButton(hDlg, IDC_DUMMY2PASS, config->dummy2pass ? BST_CHECKED : BST_UNCHECKED);                  CheckDlgButton(hDlg, IDC_DUMMY2PASS, config->dummy2pass ? BST_CHECKED : BST_UNCHECKED);
659    // added by koepi for new 2pass curve treatment
660                    SetDlgItemInt(hDlg, IDC_KFTRESHOLD, config->kftreshold, FALSE);
661                    SetDlgItemInt(hDlg, IDC_KFREDUCTION, config->kfreduction, FALSE);
662    // end of koepi's additions
663                  SetDlgItemInt(hDlg, IDC_CURVECOMPH, config->curve_compression_high, FALSE);                  SetDlgItemInt(hDlg, IDC_CURVECOMPH, config->curve_compression_high, FALSE);
664                  SetDlgItemInt(hDlg, IDC_CURVECOMPL, config->curve_compression_low, FALSE);                  SetDlgItemInt(hDlg, IDC_CURVECOMPL, config->curve_compression_low, FALSE);
665                  SetDlgItemInt(hDlg, IDC_PAYBACK, config->bitrate_payback_delay, FALSE);                  SetDlgItemInt(hDlg, IDC_PAYBACK, config->bitrate_payback_delay, FALSE);
# Line 748  Line 764 
764                  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);
765                  config->lum_masking = ISDLGSET(IDC_LUMMASK);                  config->lum_masking = ISDLGSET(IDC_LUMMASK);
766                  config->interlacing = ISDLGSET(IDC_INTERLACING);                  config->interlacing = ISDLGSET(IDC_INTERLACING);
767    // added by koepi for gruel's greyscale_mode
768                    config->greyscale = ISDLGSET(IDC_GREYSCALE);
769    // end of koepi's addition
770  #ifdef BFRAMES  #ifdef BFRAMES
771                  config->max_bframes = config_get_int(hDlg, IDC_MAXBFRAMES, config->max_bframes);                  config->max_bframes = config_get_int(hDlg, IDC_MAXBFRAMES, config->max_bframes);
772                  config->bquant_ratio = config_get_uint(hDlg, IDC_BQUANTRATIO, config->bquant_ratio);                  config->bquant_ratio = config_get_uint(hDlg, IDC_BQUANTRATIO, config->bquant_ratio);
# Line 771  Line 790 
790    
791          case DLG_2PASS :          case DLG_2PASS :
792                  config->keyframe_boost = GetDlgItemInt(hDlg, IDC_KFBOOST, NULL, FALSE);                  config->keyframe_boost = GetDlgItemInt(hDlg, IDC_KFBOOST, NULL, FALSE);
793    // added by koepi for the new 2pass curve treatment
794                    config->kftreshold = GetDlgItemInt(hDlg, IDC_KFTRESHOLD, NULL, FALSE);
795                    config->kfreduction = GetDlgItemInt(hDlg, IDC_KFREDUCTION, NULL, FALSE);
796    //end of koepi's additions
797                  config->discard1pass = ISDLGSET(IDC_DISCARD1PASS);                  config->discard1pass = ISDLGSET(IDC_DISCARD1PASS);
798                  config->dummy2pass = ISDLGSET(IDC_DUMMY2PASS);                  config->dummy2pass = ISDLGSET(IDC_DUMMY2PASS);
799                  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.355

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