[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 1069, Fri Jun 13 11:52:14 2003 UTC revision 1193, Tue Oct 28 23:42:09 2003 UTC
# Line 108  Line 108 
108  {  {
109  /*    name                 p@l,    w    h  fps  obj  Tvmv  vmv    vcv   ac%     vbv      pkt   kbps  flags */  /*    name                 p@l,    w    h  fps  obj  Tvmv  vmv    vcv   ac%     vbv      pkt   kbps  flags */
110      { "Simple @ L0",       0x08,  176, 144, 15,  1,  198,   99,   1485, 100,  10*16368,  2048,   64, 0 },      { "Simple @ L0",       0x08,  176, 144, 15,  1,  198,   99,   1485, 100,  10*16368,  2048,   64, 0 },
111              /* simple@l0: max f_code=1, intra_dc_vlc_threshold=0          /* simple@l0: max f_code=1, intra_dc_vlc_threshold=0 */
112              /* if ac preidition is used, adaptive quantization must not be used */              /* if ac preidition is used, adaptive quantization must not be used */
113              /* <=qcif must be used */              /* <=qcif must be used */
114          { "Simple @ L1",       0x01,  176, 144, 15,  4,  198,   99,   1485, 100,  10*16368,  2048,   64, PROFILE_ADAPTQUANT },          { "Simple @ L1",       0x01,  176, 144, 15,  4,  198,   99,   1485, 100,  10*16368,  2048,   64, PROFILE_ADAPTQUANT },
# Line 192  Line 192 
192      {"motion_search",                   &reg.motion_search,                             6},      {"motion_search",                   &reg.motion_search,                             6},
193          {"vhq_mode",                            &reg.vhq_mode,                                  0},          {"vhq_mode",                            &reg.vhq_mode,                                  0},
194      {"chromame",                                &reg.chromame,                                  0},      {"chromame",                                &reg.chromame,                                  0},
195        {"cartoon_mode",                    &reg.cartoon_mode,                              0},
196          {"max_key_interval",            &reg.max_key_interval,                  300},          {"max_key_interval",            &reg.max_key_interval,                  300},
197          {"min_key_interval",            &reg.min_key_interval,                  1},          {"min_key_interval",            &reg.min_key_interval,                  1},
198          {"frame_drop_ratio",            &reg.frame_drop_ratio,                  0},          {"frame_drop_ratio",            &reg.frame_drop_ratio,                  0},
# Line 823  Line 824 
824                  SendDlgItemMessage(hDlg, IDC_MOTION, CB_SETCURSEL, config->motion_search, 0);                  SendDlgItemMessage(hDlg, IDC_MOTION, CB_SETCURSEL, config->motion_search, 0);
825                  SendDlgItemMessage(hDlg, IDC_VHQ, CB_SETCURSEL, config->vhq_mode, 0);                  SendDlgItemMessage(hDlg, IDC_VHQ, CB_SETCURSEL, config->vhq_mode, 0);
826          CheckDlg(hDlg, IDC_CHROMAME, config->chromame);          CheckDlg(hDlg, IDC_CHROMAME, config->chromame);
827            CheckDlg(hDlg, IDC_CARTOON, config->cartoon_mode);
828                  SetDlgItemInt(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio, FALSE);                  SetDlgItemInt(hDlg, IDC_FRAMEDROP, config->frame_drop_ratio, FALSE);
829                  SetDlgItemInt(hDlg, IDC_MAXKEY, config->max_key_interval, FALSE);                  SetDlgItemInt(hDlg, IDC_MAXKEY, config->max_key_interval, FALSE);
830                  SetDlgItemInt(hDlg, IDC_MINKEY, config->min_key_interval, FALSE);                  SetDlgItemInt(hDlg, IDC_MINKEY, config->min_key_interval, FALSE);
# Line 947  Line 949 
949                  config->motion_search = SendDlgItemMessage(hDlg, IDC_MOTION, CB_GETCURSEL, 0, 0);                  config->motion_search = SendDlgItemMessage(hDlg, IDC_MOTION, CB_GETCURSEL, 0, 0);
950                  config->vhq_mode = SendDlgItemMessage(hDlg, IDC_VHQ, CB_GETCURSEL, 0, 0);                  config->vhq_mode = SendDlgItemMessage(hDlg, IDC_VHQ, CB_GETCURSEL, 0, 0);
951                  config->chromame = IsDlgChecked(hDlg, IDC_CHROMAME);                  config->chromame = IsDlgChecked(hDlg, IDC_CHROMAME);
952                    config->cartoon_mode = IsDlgChecked(hDlg, IDC_CARTOON);
953    
954          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);
955    
# Line 1388  Line 1391 
1391      case WM_NOTIFY :      case WM_NOTIFY :
1392          {          {
1393              NMHDR * n = (NMHDR*)lParam;              NMHDR * n = (NMHDR*)lParam;
             int idc = (int)wParam;  
1394    
1395              if (n->code == NM_DBLCLK) {              if (n->code == NM_DBLCLK) {
1396                   NMLISTVIEW * nmlv = (NMLISTVIEW*) lParam;                   NMLISTVIEW * nmlv = (NMLISTVIEW*) lParam;
# Line 1599  Line 1601 
1601                          info.version = XVID_VERSION;                          info.version = XVID_VERSION;
1602                          xvid_global(0, XVID_GBL_INFO, &info, NULL);                          xvid_global(0, XVID_GBL_INFO, &info, NULL);
1603                          wsprintf(core, "libxvidcore version %d.%d.%d (\"%s\")",                          wsprintf(core, "libxvidcore version %d.%d.%d (\"%s\")",
1604                                  XVID_MAJOR(info.actual_version),                                  XVID_VERSION_MAJOR(info.actual_version),
1605                                  XVID_MINOR(info.actual_version),                                  XVID_VERSION_MINOR(info.actual_version),
1606                                  XVID_PATCH(info.actual_version),                                  XVID_VERSION_PATCH(info.actual_version),
1607                                  info.build);                                  info.build);
1608    
1609                          SetDlgItemText(hDlg, IDC_CORE, core);                          SetDlgItemText(hDlg, IDC_CORE, core);

Legend:
Removed from v.1069  
changed lines
  Added in v.1193

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