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

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

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

revision 1277, Thu Dec 18 14:51:40 2003 UTC revision 1289, Sat Dec 20 19:13:24 2003 UTC
# Line 129  Line 129 
129          { "AS @ L5",           0xf5,  720, 576, 30,  4, 4860, 1620,  48600,  25, 112*16368, 16384, 8000, PROFILE_AS },          { "AS @ L5",           0xf5,  720, 576, 30,  4, 4860, 1620,  48600,  25, 112*16368, 16384, 8000, PROFILE_AS },
130    
131  #ifdef DXN_PROFILES  #ifdef DXN_PROFILES
   
132          { "DXN Handheld",          0x00,  176, 144, 15, -1,  198,   99,   1485, 100,  16*16368,    -1,  128, PROFILE_ADAPTQUANT },          { "DXN Handheld",          0x00,  176, 144, 15, -1,  198,   99,   1485, 100,  16*16368,    -1,  128, PROFILE_ADAPTQUANT },
133          { "DXN Portable NTSC", 0x00,  352, 240, 30, -1,  990,  330,   9900, 100,  64*16368,    -1,  768, PROFILE_ADAPTQUANT|PROFILE_BVOP },          { "DXN Portable NTSC", 0x00,  352, 240, 30, -1,  990,  330,   9900, 100,  64*16368,    -1,  768, PROFILE_ADAPTQUANT|PROFILE_BVOP },
134          { "DXN Portable PAL",  0x00,  352, 288, 25, -1, 1188,  396,   9900, 100,  64*16368,    -1,  768, PROFILE_ADAPTQUANT|PROFILE_BVOP },          { "DXN Portable PAL",  0x00,  352, 288, 25, -1, 1188,  396,   9900, 100,  64*16368,    -1,  768, PROFILE_ADAPTQUANT|PROFILE_BVOP },
135          { "DXN HT NTSC",           0x00,  720, 480, 30, -1, 4050, 1350,  40500, 100, 192*16368,    -1, 4000, PROFILE_ADAPTQUANT|PROFILE_BVOP|PROFILE_INTERLACE },          { "DXN HT NTSC",           0x00,  720, 480, 30, -1, 4050, 1350,  40500, 100, 192*16368,    -1, 4000, PROFILE_ADAPTQUANT|PROFILE_BVOP|PROFILE_INTERLACE },
136          { "DXN HT PAL",        0x00,  720, 576, 25, -1, 4860, 1620,  40500, 100, 192*16368,    -1, 4000, PROFILE_ADAPTQUANT|PROFILE_BVOP|PROFILE_INTERLACE },          { "DXN HT PAL",        0x00,  720, 576, 25, -1, 4860, 1620,  40500, 100, 192*16368,    -1, 4000, PROFILE_ADAPTQUANT|PROFILE_BVOP|PROFILE_INTERLACE },
137          { "DXN HDTV",          0x00, 1280, 720, 30, -1,10800, 3600, 108000, 100, 384*16368,    -1, 8000, PROFILE_ADAPTQUANT|PROFILE_BVOP|PROFILE_INTERLACE },          { "DXN HDTV",          0x00, 1280, 720, 30, -1,10800, 3600, 108000, 100, 384*16368,    -1, 8000, PROFILE_ADAPTQUANT|PROFILE_BVOP|PROFILE_INTERLACE },
   
138  #endif  #endif
139    
140      { "(unrestricted)",    0x00,    0,   0,  0,  0,    0,    0,      0, 100,   0*16368,     0,    0, 0xffffffff },      { "(unrestricted)",    0x00,    0,   0,  0,  0,    0,    0,      0, 100,   0*16368,     0,    0, 0xffffffff },
# Line 163  Line 161 
161          {"qpel",                                        &reg.qpel,                                              0},          {"qpel",                                        &reg.qpel,                                              0},
162          {"gmc",                                         &reg.gmc,                                               0},          {"gmc",                                         &reg.gmc,                                               0},
163          {"reduced_resolution",          &reg.reduced_resolution,                0},          {"reduced_resolution",          &reg.reduced_resolution,                0},
164      {"use_bvop",                                &reg.use_bvop,                          0},      {"use_bvop",                                &reg.use_bvop,                          1},
165          {"max_bframes",                         &reg.max_bframes,                               2},          {"max_bframes",                         &reg.max_bframes,                               2},
166          {"bquant_ratio",                        &reg.bquant_ratio,                              150},   /* 100-base float */          {"bquant_ratio",                        &reg.bquant_ratio,                              150},   /* 100-base float */
167          {"bquant_offset",                       &reg.bquant_offset,                             100},   /* 100-base float */          {"bquant_offset",                       &reg.bquant_offset,                             100},   /* 100-base float */
168          {"packed",                                      &reg.packed,                                    0},          {"packed",                                      &reg.packed,                                    1},
169          {"closed_gov",                          &reg.closed_gov,                                1},          {"closed_gov",                          &reg.closed_gov,                                1},
170    
171          /* aspect ratio */          /* aspect ratio */
# Line 201  Line 199 
199    
200      /* motion */      /* motion */
201      {"motion_search",                   &reg.motion_search,                             6},      {"motion_search",                   &reg.motion_search,                             6},
202          {"vhq_mode",                            &reg.vhq_mode,                                  0},          {"vhq_mode",                            &reg.vhq_mode,                                  1},
203      {"chromame",                                &reg.chromame,                                  0},      {"chromame",                                &reg.chromame,                                  1},
204      {"cartoon_mode",                    &reg.cartoon_mode,                              0},      {"cartoon_mode",                    &reg.cartoon_mode,                              0},
205          {"max_key_interval",            &reg.max_key_interval,                  300},          {"max_key_interval",            &reg.max_key_interval,                  300},
206          {"frame_drop_ratio",            &reg.frame_drop_ratio,                  0},          {"frame_drop_ratio",            &reg.frame_drop_ratio,                  0},
# Line 742  Line 740 
740                  }                  }
741    
742                  ar_mode = IsDlgChecked(hDlg, IDC_AR);                  ar_mode = IsDlgChecked(hDlg, IDC_AR);
743                  SetDlgItemInt(hDlg, IDC_ARX, config->ar_x, FALSE);  
744                  SetDlgItemInt(hDlg, IDC_ARY, config->ar_y, FALSE);                  config->ar_x = config_get_uint(hDlg, IDC_ARX, config->ar_x);
745                    config->ar_y = config_get_uint(hDlg, IDC_ARY, config->ar_y);
746    
747                  EnableDlgWindow(hDlg, IDC_ARX, ar_mode);                  EnableDlgWindow(hDlg, IDC_ARX, ar_mode);
748                  EnableDlgWindow(hDlg, IDC_ARY, ar_mode);                  EnableDlgWindow(hDlg, IDC_ARY, ar_mode);
749                  break;                  break;
# Line 822  Line 822 
822          case IDD_AR:          case IDD_AR:
823                  CheckRadioButton(hDlg, IDC_AR, IDC_PAR, config->ar_mode == 0 ? IDC_PAR : IDC_AR);                  CheckRadioButton(hDlg, IDC_AR, IDC_PAR, config->ar_mode == 0 ? IDC_PAR : IDC_AR);
824                  SendDlgItemMessage(hDlg, IDC_ASPECT_RATIO, CB_SETCURSEL, (config->display_aspect_ratio), 0);                  SendDlgItemMessage(hDlg, IDC_ASPECT_RATIO, CB_SETCURSEL, (config->display_aspect_ratio), 0);
825                    SetDlgItemInt(hDlg, IDC_ARX, config->ar_x, FALSE);
826                    SetDlgItemInt(hDlg, IDC_ARY, config->ar_y, FALSE);
827                  break;                  break;
828    
829      case IDD_LEVEL :      case IDD_LEVEL :
# Line 1127  Line 1129 
1129                  SetDlgItemInt(hDlg, IDC_ZONE_FRAME, psi->config->ci.ciActiveFrame, FALSE);                  SetDlgItemInt(hDlg, IDC_ZONE_FRAME, psi->config->ci.ciActiveFrame, FALSE);
1130                  break;                  break;
1131    
1132                            case IDC_AR_DEFAULT:
1133                                    CheckRadioButton(hDlg, IDC_AR, IDC_PAR, IDC_PAR);
1134                                    SendDlgItemMessage(hDlg, IDC_ASPECT_RATIO, CB_SETCURSEL, 0, 0);
1135                                    adv_mode(hDlg, psi->idd, psi->config);
1136                                    break;
1137                            case IDC_AR_4_3:
1138                                    SetDlgItemInt(hDlg, IDC_ARX, 4, FALSE);
1139                                    SetDlgItemInt(hDlg, IDC_ARY, 3, FALSE);
1140                                    CheckRadioButton(hDlg, IDC_AR, IDC_PAR, IDC_AR);
1141                                    adv_mode(hDlg, psi->idd, psi->config);
1142                                    break;
1143                            case IDC_AR_16_9:
1144                                    SetDlgItemInt(hDlg, IDC_ARX, 16, FALSE);
1145                                    SetDlgItemInt(hDlg, IDC_ARY, 9, FALSE);
1146                                    CheckRadioButton(hDlg, IDC_AR, IDC_PAR, IDC_AR);
1147                                    adv_mode(hDlg, psi->idd, psi->config);
1148                                    break;
1149                            case IDC_AR_235_100:
1150                                    SetDlgItemInt(hDlg, IDC_ARX, 235, FALSE);
1151                                    SetDlgItemInt(hDlg, IDC_ARY, 100, FALSE);
1152                                    CheckRadioButton(hDlg, IDC_AR, IDC_PAR, IDC_AR);
1153                                    adv_mode(hDlg, psi->idd, psi->config);
1154                                    break;
1155    
1156              default :              default :
1157                  return TRUE;                  return TRUE;
1158              }              }

Legend:
Removed from v.1277  
changed lines
  Added in v.1289

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