[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 669, Thu Nov 21 11:07:10 2002 UTC revision 670, Thu Nov 21 12:51:28 2002 UTC
# Line 97  Line 97 
97  //added by koepi for gruel's greyscale_mode  //added by koepi for gruel's greyscale_mode
98          {"greyscale",                           &reg.greyscale,                                 0},          {"greyscale",                           &reg.greyscale,                                 0},
99  // end of koepi's additions  // end of koepi's additions
 #ifdef BFRAMES  
100          {"max_bframes",                         &reg.max_bframes,                               -1},          {"max_bframes",                         &reg.max_bframes,                               -1},
101          {"bquant_ratio",                        &reg.bquant_ratio,                              150},          {"bquant_ratio",                        &reg.bquant_ratio,                              150},
102          {"bquant_offset",                       &reg.bquant_offset,                             100},          {"bquant_offset",                       &reg.bquant_offset,                             100},
# Line 105  Line 104 
104          {"dx50bvop",                            &reg.dx50bvop,                                  0},          {"dx50bvop",                            &reg.dx50bvop,                                  0},
105          {"debug",                                       &reg.debug,                                             0},          {"debug",                                       &reg.debug,                                             0},
106          {"frame_drop_ratio",            &reg.frame_drop_ratio,                  0},          {"frame_drop_ratio",            &reg.frame_drop_ratio,                  0},
 #endif  
107    
108          {"min_iquant",                          &reg.min_iquant,                                2},          {"min_iquant",                          &reg.min_iquant,                                2},
109          {"max_iquant",                          &reg.max_iquant,                                31},          {"max_iquant",                          &reg.max_iquant,                                31},
# Line 650  Line 648 
648  // added by koepi for gruel's greyscale_mode  // added by koepi for gruel's greyscale_mode
649                  CheckDlgButton(hDlg, IDC_GREYSCALE, config->greyscale ? BST_CHECKED : BST_UNCHECKED);                  CheckDlgButton(hDlg, IDC_GREYSCALE, config->greyscale ? BST_CHECKED : BST_UNCHECKED);
650  // end of koepi's addition  // end of koepi's addition
 #ifdef BFRAMES  
651                  SetDlgItemInt(hDlg, IDC_MAXBFRAMES, config->max_bframes, TRUE);                  SetDlgItemInt(hDlg, IDC_MAXBFRAMES, config->max_bframes, TRUE);
652                  SetDlgItemInt(hDlg, IDC_BQUANTRATIO, config->bquant_ratio, FALSE);                  SetDlgItemInt(hDlg, IDC_BQUANTRATIO, config->bquant_ratio, FALSE);
653                  SetDlgItemInt(hDlg, IDC_BQUANTOFFSET, config->bquant_offset, FALSE);                  SetDlgItemInt(hDlg, IDC_BQUANTOFFSET, config->bquant_offset, FALSE);
654                  CheckDlgButton(hDlg, IDC_PACKED, config->packed ? BST_CHECKED : BST_UNCHECKED);                  CheckDlgButton(hDlg, IDC_PACKED, config->packed ? BST_CHECKED : BST_UNCHECKED);
655                  CheckDlgButton(hDlg, IDC_DX50BVOP, config->dx50bvop ? BST_CHECKED : BST_UNCHECKED);                  CheckDlgButton(hDlg, IDC_DX50BVOP, config->dx50bvop ? BST_CHECKED : BST_UNCHECKED);
656                  CheckDlgButton(hDlg, IDC_DEBUG, config->debug ? BST_CHECKED : BST_UNCHECKED);                  CheckDlgButton(hDlg, IDC_DEBUG, config->debug ? BST_CHECKED : BST_UNCHECKED);
 #endif  
657                  break;                  break;
658    
659          case DLG_QUANT :          case DLG_QUANT :
# Line 751  Line 747 
747  #ifdef _SMP  #ifdef _SMP
748                  SetDlgItemInt(hDlg, IDC_NUMTHREADS, config->num_threads, FALSE);                  SetDlgItemInt(hDlg, IDC_NUMTHREADS, config->num_threads, FALSE);
749  #endif  #endif
   
 #ifdef BFRAMES  
750                  SetDlgItemInt(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio, FALSE);                  SetDlgItemInt(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio, FALSE);
 #endif  
   
751                  SetDlgItemInt(hDlg, IDC_CBR_REACTIONDELAY, config->rc_reaction_delay_factor, FALSE);                  SetDlgItemInt(hDlg, IDC_CBR_REACTIONDELAY, config->rc_reaction_delay_factor, FALSE);
752                  SetDlgItemInt(hDlg, IDC_CBR_AVERAGINGPERIOD, config->rc_averaging_period, FALSE);                  SetDlgItemInt(hDlg, IDC_CBR_AVERAGINGPERIOD, config->rc_averaging_period, FALSE);
753                  SetDlgItemInt(hDlg, IDC_CBR_BUFFER, config->rc_buffer, FALSE);                  SetDlgItemInt(hDlg, IDC_CBR_BUFFER, config->rc_buffer, FALSE);
# Line 789  Line 781 
781  // added by koepi for gruel's greyscale_mode  // added by koepi for gruel's greyscale_mode
782                  config->greyscale = ISDLGSET(IDC_GREYSCALE);                  config->greyscale = ISDLGSET(IDC_GREYSCALE);
783  // end of koepi's addition  // end of koepi's addition
 #ifdef BFRAMES  
784                  config->max_bframes = config_get_int(hDlg, IDC_MAXBFRAMES, config->max_bframes);                  config->max_bframes = config_get_int(hDlg, IDC_MAXBFRAMES, config->max_bframes);
785                  config->bquant_ratio = config_get_uint(hDlg, IDC_BQUANTRATIO, config->bquant_ratio);                  config->bquant_ratio = config_get_uint(hDlg, IDC_BQUANTRATIO, config->bquant_ratio);
786                  config->bquant_offset = config_get_uint(hDlg, IDC_BQUANTOFFSET, config->bquant_offset);                  config->bquant_offset = config_get_uint(hDlg, IDC_BQUANTOFFSET, config->bquant_offset);
787                  config->packed = ISDLGSET(IDC_PACKED);                  config->packed = ISDLGSET(IDC_PACKED);
788                  config->dx50bvop = ISDLGSET(IDC_DX50BVOP);                  config->dx50bvop = ISDLGSET(IDC_DX50BVOP);
789                  config->debug = ISDLGSET(IDC_DEBUG);                  config->debug = ISDLGSET(IDC_DEBUG);
 #endif  
790                  break;                  break;
791    
792          case DLG_QUANT :          case DLG_QUANT :
# Line 919  Line 909 
909  #ifdef _SMP  #ifdef _SMP
910                  config->num_threads = config_get_uint(hDlg, IDC_NUMTHREADS, config->num_threads);                  config->num_threads = config_get_uint(hDlg, IDC_NUMTHREADS, config->num_threads);
911  #endif  #endif
 #ifdef BFRAMES  
912                  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);
 #endif  
   
913                  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);
914                  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);
915                  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);
# Line 1141  Line 1128 
1128                          SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DIVX");                          SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DIVX");
1129                          SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DX50");                          SendDlgItemMessage(hDlg, IDC_FOURCC, CB_ADDSTRING, 0, (LPARAM)"DX50");
1130    
 #ifndef BFRAMES  
1131                          EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC1), FALSE);                          EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC1), FALSE);
1132                          EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC2), FALSE);                          EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC2), FALSE);
1133                          EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC3), FALSE);                          EnableWindow(GetDlgItem(hDlg, IDC_BSTATIC3), FALSE);
# Line 1150  Line 1136 
1136                          EnableWindow(GetDlgItem(hDlg, IDC_PACKED), FALSE);                          EnableWindow(GetDlgItem(hDlg, IDC_PACKED), FALSE);
1137                          EnableWindow(GetDlgItem(hDlg, IDC_DX50BVOP), FALSE);                          EnableWindow(GetDlgItem(hDlg, IDC_DX50BVOP), FALSE);
1138                          EnableWindow(GetDlgItem(hDlg, IDC_DEBUG), FALSE);                          EnableWindow(GetDlgItem(hDlg, IDC_DEBUG), FALSE);
 #endif  
1139                  }                  }
1140                  else if (psi->page == DLG_2PASSALT)                  else if (psi->page == DLG_2PASSALT)
1141                  {                  {
# Line 1165  Line 1150 
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
 #ifndef BFRAMES  
1153                          EnableWindow(GetDlgItem(hDlg, IDC_FRAMEDROP_STATIC), FALSE);                          EnableWindow(GetDlgItem(hDlg, IDC_FRAMEDROP_STATIC), FALSE);
1154                          EnableWindow(GetDlgItem(hDlg, IDC_FRAMEDROP), FALSE);                          EnableWindow(GetDlgItem(hDlg, IDC_FRAMEDROP), FALSE);
 #endif  
1155                  }                  }
1156    
1157                  if (hTooltip)                  if (hTooltip)

Legend:
Removed from v.669  
changed lines
  Added in v.670

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