TOSDpageDec::TOSDpageDec(TffdshowPageDec *Iparent, const TfilterIDFF *idff): TconfPageDec(Iparent, idff, 0) { dialogId = IDD_OSD; idffInter = IDFF_isOSD; resInter = IDC_CHB_OSD; static const TbindCheckbox<TOSDpageDec> chb[] = { IDC_CHB_OSD_SAVE, IDFF_OSDisSave, &TOSDpageDec::save2dlg, IDC_CHB_OSD_IS_AUTO_HIDE, IDFF_OSDisAutoHide, &TOSDpageDec::save2dlg, 0, NULL, NULL }; bindCheckboxes(chb); static const TbindTrackbar<TOSDpageDec> htbr[] = { IDC_TBR_OSD_POSX, IDFF_OSDposX, &TOSDpageDec::pos2dlg, IDC_TBR_OSD_POSY, IDFF_OSDposY, &TOSDpageDec::pos2dlg, 0, 0, NULL }; bindHtracks(htbr); static const TbindCombobox<TOSDpageDec> cbx[] = { IDC_CBX_OSD_USERFORMAT, IDFF_OSD_userformat, BINDCBX_DATA, &TOSDpageDec::cfg2dlg, 0 }; bindComboboxes(cbx); static const TbindButton<TOSDpageDec> bt[] = { IDC_BT_OSD_LINE_UP, &TOSDpageDec::onLineUp, IDC_BT_OSD_LINE_DOWN, &TOSDpageDec::onLineDown, IDC_BT_OSD_SAVE, &TOSDpageDec::onSave, 0, NULL }; bindButtons(bt); }
TsubtitlesTextPage::TsubtitlesTextPage(TffdshowPageDec *Iparent,const TfilterIDFF *idff):TconfPageDecVideo(Iparent,idff,5) { dialogId=IDD_SUBTITLESTEXT; static const TbindCheckbox<TsubtitlesTextPage> chb[]= { IDC_CHB_SUB_SPLIT,IDFF_fontSplitting,&TsubtitlesTextPage::split2dlg, IDC_CHB_SUB_MINDURATION,IDFF_subIsMinDuration,&TsubtitlesTextPage::min2dlg, //IDC_CHB_SUB_HQBORDER,IDFF_fontHqBorder,&TsubtitlesTextPage::memory2dlg, 0,NULL,NULL }; bindCheckboxes(chb); static const TbindTrackbar<TsubtitlesTextPage> htbr[]= { IDC_TBR_SUB_LINESPACING,IDFF_subLinespacing,&TsubtitlesTextPage::linespacing2dlg, 0,0,NULL }; bindHtracks(htbr); static const TbindCombobox<TsubtitlesTextPage> cbx[]= { IDC_CBX_SUB_MINDURATION,IDFF_subMinDurationType,BINDCBX_SEL,&TsubtitlesTextPage::min2dlg, IDC_CBX_SUBFIX_IL,IDFF_subFixLang,BINDCBX_SEL,NULL, IDC_CBX_SUBFIX_ORTOGRAPHY,IDFF_subFixDict,BINDCBX_TEXT,NULL, IDC_CBX_SUB_WORDWRAP,IDFF_subWordWrap,BINDCBX_SEL,&TsubtitlesTextPage::split2dlg, 0 }; bindComboboxes(cbx); static const TbindEditInt<TsubtitlesTextPage> edInt[]= { IDC_ED_SUB_SPLIT_BORDER,0,4096,IDFF_subSplitBorder,NULL, IDC_ED_SUB_MEMORY,0,256,IDFF_fontMemory, 0 }; bindEditInts(edInt); }
TresizeSettingsPage::TresizeSettingsPage(TffdshowPageDec *Iparent, const TfilterIDFF *idff): TconfPageDecVideo(Iparent, idff, 3) { dialogId = IDD_RESIZESETTINGS; static const TbindCheckbox<TresizeSettingsPage> chb[] = { IDC_CHB_RESIZE_METHOD_LOCK, IDFF_resizeMethodsLocked, &TresizeSettingsPage::cfg2dlg, IDC_CHB_RESIZE_ACCURATE_ROUNDING, IDFF_resizeAccurateRounding, NULL, 0, NULL, NULL }; bindCheckboxes(chb); static const TbindTrackbar<TresizeSettingsPage> htbr[] = { IDC_TBR_RESIZE_GBLUR_LUM, IDFF_resizeGblurLum, &TresizeSettingsPage::blurSharpen2dlg, IDC_TBR_RESIZE_GBLUR_CHROM, IDFF_resizeGblurChrom, &TresizeSettingsPage::blurSharpen2dlg, IDC_TBR_RESIZE_SHARPEN_LUM, IDFF_resizeSharpenLum, &TresizeSettingsPage::blurSharpen2dlg, IDC_TBR_RESIZE_SHARPEN_CHROM, IDFF_resizeSharpenChrom, &TresizeSettingsPage::blurSharpen2dlg, IDC_TBR_RESIZE_HWARP, IDFF_resizeSimpleWarpXparam, &TresizeSettingsPage::warp2dlg, IDC_TBR_RESIZE_VWARP, IDFF_resizeSimpleWarpYparam, &TresizeSettingsPage::warp2dlg, 0, 0, NULL }; bindHtracks(htbr); static const TbindCombobox<TresizeSettingsPage> cbx[] = { IDC_CBX_RESIZE_METHOD_LUMA , IDFF_resizeMethodLuma , BINDCBX_DATA, &TresizeSettingsPage::paramLuma2dlg, IDC_CBX_RESIZE_METHOD_CHROMA, IDFF_resizeMethodChroma, BINDCBX_DATA, &TresizeSettingsPage::paramChroma2dlg, 0 }; bindComboboxes(cbx); }
TQSdecoderOptionsPage::TQSdecoderOptionsPage(TffdshowPageDec *Iparent): TconfPageDecVideo(Iparent) { dialogId = IDD_INTEL_QS_DECODEROPTIONS; inPreset = 1; //helpURL = _l("http://ffdshow-tryout.sourceforge.net/wiki/video:decoder_options"); static const TbindCheckbox<TQSdecoderOptionsPage> chb[] = { IDC_QS_ENABLE_TS_CORR , IDFF_QS_ENABLE_TS_CORR , NULL, IDC_QS_ENABLE_SW_EMULATION, IDFF_QS_ENABLE_SW_EMULATION, NULL, IDC_QS_FORCE_FIELD_ORDER , IDFF_QS_FORCE_FIELD_ORDER , NULL, IDC_QS_ENABLE_DVD_DECODE , IDFF_QS_ENABLE_DVD_DECODE , NULL, IDC_QS_ENABLE_DI , IDFF_QS_ENABLE_DI , NULL, IDC_QS_FORCE_DI , IDFF_QS_FORCE_DI , NULL, IDC_QS_ENABLE_FULL_RATE , IDFF_QS_ENABLE_FULL_RATE , NULL, 0, NULL, NULL }; bindCheckboxes(chb); static const TbindTrackbar<TQSdecoderOptionsPage> htbr[] = { IDC_QS_DETAIL , IDFF_QS_DETAIL , &TQSdecoderOptionsPage::detail2dlg, IDC_QS_DENOISE, IDFF_QS_DENOISE, &TQSdecoderOptionsPage::denoise2dlg, 0, 0, NULL }; bindHtracks(htbr); static const TbindCombobox<TQSdecoderOptionsPage> cbx[] = { IDC_QS_FIELD_ORDER, IDFF_QS_FIELD_ORDER, BINDCBX_SEL, NULL, IDC_QS_ENABLE_MT , IDFF_QS_ENABLE_MT , BINDCBX_SEL, NULL, 0 }; bindComboboxes(cbx); }
TdctPage::TdctPage(TffdshowPageDec *Iparent, const TfilterIDFF *idff): TconfPageDecVideo(Iparent, idff) { resInter = IDC_CHB_DCT; static const TbindEditReal<TdctPage> edReal[] = { IDC_ED_DCT0, 0.0, 3.0, IDFF_dct0, 1000.0, NULL, IDC_ED_DCT1, 0.0, 3.0, IDFF_dct1, 1000.0, NULL, IDC_ED_DCT2, 0.0, 3.0, IDFF_dct2, 1000.0, NULL, IDC_ED_DCT3, 0.0, 3.0, IDFF_dct3, 1000.0, NULL, IDC_ED_DCT4, 0.0, 3.0, IDFF_dct4, 1000.0, NULL, IDC_ED_DCT5, 0.0, 3.0, IDFF_dct5, 1000.0, NULL, IDC_ED_DCT6, 0.0, 3.0, IDFF_dct6, 1000.0, NULL, IDC_ED_DCT7, 0.0, 3.0, IDFF_dct7, 1000.0, NULL, 0 }; bindEditReals(edReal); static const TbindRadiobutton<TdctPage> rbt[] = { IDC_RBT_DCT_COEFFS, IDFF_dctMode, 0, NULL, IDC_RBT_DCT_H263 , IDFF_dctMode, 1, NULL, IDC_RBT_DCT_MPEG , IDFF_dctMode, 2, NULL, 0, 0, 0, NULL }; bindRadioButtons(rbt); static const TbindTrackbar<TdctPage> htbr[] = { IDC_TBR_DCT_QUANT, IDFF_dctQuant, &TdctPage::quant2dlg, 0, 0, NULL }; bindHtracks(htbr); static const TbindButton<TdctPage> bt[] = { IDC_BT_DCT_MPEG, &TdctPage::onMatrix, 0, NULL }; bindButtons(bt); }
TresizeAspectPage::TresizeAspectPage(TffdshowPageDec *Iparent, const TfilterIDFF *idff): TconfPageDecVideo(Iparent, idff, 1) { resInter = IDC_CHB_RESIZE; helpURL = _l("http://ffdshow-tryout.sourceforge.net/wiki/video:resize_aspect"); static const TbindTrackbar<TresizeAspectPage> htbr[] = { IDC_TBR_ASPECT_USER, IDFF_aspectRatio, &TresizeAspectPage::userAspect2dlg, IDC_TBR_HWOVERLAY_ASPECT, IDFF_hwOverlayAspect, &TresizeAspectPage::aspect2dlg, 0, 0, NULL }; bindHtracks(htbr); static const TbindRadiobutton<TresizeAspectPage> rbt[] = { IDC_RBT_RESIZE_MODE_SIZE, IDFF_resizeMode, 0, &TresizeAspectPage::onModeChange, IDC_RBT_RESIZE_MODE_ASPECT, IDFF_resizeMode, 1, &TresizeAspectPage::onModeChange, IDC_RBT_RESIZE_MOD_16, IDFF_resizeMode, 2, &TresizeAspectPage::onModeChange, IDC_RBT_RESIZE_MODE_MULT, IDFF_resizeMode, 3, &TresizeAspectPage::onModeChange, IDC_RBT_RESIZE_MODE_SIZE_H, IDFF_resizeMode, 4, &TresizeAspectPage::onModeChange, IDC_RBT_RESIZE_MODE_SCREEN_RES, IDFF_resizeMode, 5, &TresizeAspectPage::onModeChange, IDC_RBT_ASPECT_NO, IDFF_isAspect, 0, NULL, IDC_RBT_ASPECT_KEEP, IDFF_isAspect, 1, NULL, IDC_RBT_ASPECT_USER, IDFF_isAspect, 2, NULL, IDC_RBT_RESIZE_ALWAYS, IDFF_resizeIf, 0, NULL, IDC_RBT_RESIZE_IFSIZE, IDFF_resizeIf, 1, NULL, IDC_RBT_RESIZE_IFNUMBEROFPIXELS, IDFF_resizeIf, 2, NULL, 0, 0, 0, NULL }; bindRadioButtons(rbt); static const TbindEditInt<TresizeAspectPage> edInt[] = { IDC_ED_RESIZEA1, 1, 10000, IDFF_resizeA1, NULL, IDC_ED_RESIZEA2, 1, 10000, IDFF_resizeA2, NULL, IDC_ED_RESIZE_IFX, 0, 16384, IDFF_resizeIfXval, NULL, IDC_ED_RESIZE_IFY, 0, 16384, IDFF_resizeIfYval, NULL, IDC_ED_RESIZE_IFPIX, 0, 16384 * 16384, IDFF_resizeIfPixVal, NULL, IDC_ED_RESIZE_MOD_16, 1, 128, IDFF_resizeMultOf, NULL, IDC_ED_RESIZE_OUT_DEVICE_A1, 1, 10000, IDFF_resizeOutDeviceA1, NULL, IDC_ED_RESIZE_OUT_DEVICE_A2, 1, 10000, IDFF_resizeOutDeviceA2, NULL, 0 }; bindEditInts(edInt); static const TbindEditReal<TresizeAspectPage> edReal[] = { IDC_ED_RESIZE_MULT, 0.001, 1000.0, IDFF_resizeMult1000, 1000.0, NULL, IDC_ED_RESIZE_USER_ASPECT, 0.05, 5, IDFF_aspectRatio, 65536, NULL, 0 }; bindEditReals(edReal); static const TbindButton<TresizeAspectPage> bt[] = { IDC_BT_RESIZE_SIZE_MENU, &TresizeAspectPage::onResizeSizeMenu, IDC_BT_RESIZE_MOD_16, &TresizeAspectPage::onResizeMulfOfMenu, IDC_BT_RESIZE_ASPECT_MENU, &TresizeAspectPage::onResizeAspectMenu, IDC_BT_RESIZE_PIX_MENU, &TresizeAspectPage::onResizePixMenu, IDC_BT_RESIZE_USER_ASPECT, &TresizeAspectPage::onResizeManualArMenu, 0, NULL }; static const TbindCheckbox<TresizeAspectPage> chb[] = { IDC_CHB_SAR_INTERNALLY, IDFF_resizeSARinternally, &TresizeAspectPage::resize2dlg, 0, NULL, NULL }; bindCheckboxes(chb); bindButtons(bt); }
TgradFunPage::TgradFunPage(TffdshowPageDec *Iparent, const TfilterIDFF *idff): TconfPageDecVideo(Iparent, idff) { resInter = IDC_CHB_GRADFUN; static const TbindTrackbar<TgradFunPage> htbr[] = { IDC_TBR_GRADFUN_THRESHOLD, IDFF_gradFunThreshold, &TgradFunPage::cfg2dlg, IDC_TBR_GRADFUN_RADIUS, IDFF_gradFunRadius, &TgradFunPage::cfg2dlg, 0, 0, NULL }; bindHtracks(htbr); }
TfreeverbPage::TfreeverbPage(TffdshowPageDec *Iparent,const TfilterIDFF *idff):TconfPageDecAudio(Iparent,idff) { resInter=IDC_CHB_FREEVERB; static const TbindTrackbar<TfreeverbPage> htbr[]= { IDC_TBR_FREEVERB_ROOMSIZE,IDFF_freeverbRoomsize,&TfreeverbPage::cfg2dlg, IDC_TBR_FREEVERB_DAMPING,IDFF_freeverbDamp,&TfreeverbPage::cfg2dlg, IDC_TBR_FREEVERB_WET,IDFF_freeverbWet,&TfreeverbPage::cfg2dlg, IDC_TBR_FREEVERB_DRY,IDFF_freeverbDry,&TfreeverbPage::cfg2dlg, IDC_TBR_FREEVERB_WIDTH,IDFF_freeverbWidth,&TfreeverbPage::cfg2dlg, 0,0,NULL }; bindHtracks(htbr); }
TvolumePage::TvolumePage(TffdshowPageDec *Iparent, const TfilterIDFF *idff): TconfPageDecAudio(Iparent, idff), filter(NULL) { resInter = IDC_CHB_VOLUME; static const TbindCheckbox<TvolumePage> chb[] = { IDC_CHB_VOLUME_NORMALIZE, IDFF_volumeNormalize, NULL, IDC_CHB_VOLUME_SHOWCURRENT, IDFF_showCurrentVolume, NULL, IDC_CHB_VOL_DB, IDFF_dlgVolumeDb, &TvolumePage::switchDb, IDC_CHB_NORMALIZE_RESETONSEEK, IDFF_volumeNormalizeResetOnSeek, NULL, IDC_CHB_NORMALIZE_REGAINVOLUME, IDFF_volumeNormalizeRegainVolume, NULL, 0, NULL, NULL }; bindCheckboxes(chb); bindHtracks(htbr); }
ToffsetPage::ToffsetPage(TffdshowPageDec *Iparent, const TfilterIDFF *idff): TconfPageDecVideo(Iparent, idff) { resInter = IDC_CHB_OFFSET; static const TbindTrackbar<ToffsetPage> htbr[] = { IDC_TBR_OFFSETY_X, IDFF_offsetY_X, &ToffsetPage::offset2dlg, IDC_TBR_OFFSETY_Y, IDFF_offsetY_Y, &ToffsetPage::offset2dlg, 0, 0, NULL }; bindHtracks(htbr); static const TbindCheckbox<ToffsetPage> chb[] = { IDC_CHB_TRANSFORM_FLIP, IDFF_transfFlip, NULL, IDC_CHB_TRANSFORM_MIRROR, IDFF_transfMirror, NULL, 0, NULL, NULL }; bindCheckboxes(chb); }
TbitmapPage::TbitmapPage(TffdshowPageDec *Iparent,const TfilterIDFF *idff):TconfPageDecVideo(Iparent,idff) { resInter=IDC_CHB_BITMAP; static const TbindTrackbar<TbitmapPage> htbr[]= { IDC_TBR_BITMAP_POSX,IDFF_bitmapPosx,&TbitmapPage::pos2dlg, IDC_TBR_BITMAP_POSY,IDFF_bitmapPosy,&TbitmapPage::pos2dlg, IDC_TBR_BITMAP_OPACITY,IDFF_bitmapStrength,&TbitmapPage::opacity2dlg, 0,0,NULL }; bindHtracks(htbr); static const TbindCombobox<TbitmapPage> cbx[]= { IDC_CBX_BITMAP_ALIGN,IDFF_bitmapAlign,BINDCBX_SEL,NULL, IDC_CBX_BITMAP_MODE,IDFF_bitmapMode,BINDCBX_SEL,NULL, 0 }; bindComboboxes(cbx); static const TbindButton<TbitmapPage> bt[]= { IDC_BT_BITMAP_FLNM,&TbitmapPage::onFlnm, 0,NULL }; bindButtons(bt); }
TlevelsPage::TlevelsPage(TffdshowPageDec *Iparent,const TfilterIDFF *idff):TconfPageDecVideo(Iparent,idff),filter(NULL) { resInter=IDC_CHB_LEVELS; helpURL=_l("levels.html"); curvesflnm[0]='\0'; static const TbindCheckbox<TlevelsPage> chb[]= { IDC_CHB_LEVELS_ONLYLUMA,IDFF_levelsOnlyLuma,&TlevelsPage::levels2dlg, IDC_CHB_LEVELS_SHOW_HISTOGRAM,IDFF_buildHistogram,NULL, IDC_CHB_LEVELS_SHOW_HISTOGRAM_FULL,IDFF_levelsFullY,&TlevelsPage::map2dlg, IDC_CHB_LEVELS_INPUT_AUTO,IDFF_levelsInAuto,NULL, IDC_CHB_LEVELS_RGB,IDFF_levelsForceRGB,&TlevelsPage::mode2dlg, 0,NULL,NULL }; bindCheckboxes(chb); static const TbindTrackbar<TlevelsPage> htbr[]= { IDC_TBR_LEVELS_GAMMA,IDFF_levelsGamma,&TlevelsPage::levels2dlg, IDC_TBR_LEVELS_POSTERIZE,IDFF_levelsPosterize,&TlevelsPage::levels2dlg, 0,0,NULL }; bindHtracks(htbr); static const TbindCombobox<TlevelsPage> cbx[]= { IDC_CBX_LEVELS_MODE,IDFF_levelsMode,BINDCBX_SEL,&TlevelsPage::mode2dlg, 0 }; bindComboboxes(cbx); static const TbindButton<TlevelsPage> bt[]= { IDC_BT_LEVELS_CURVES_LOAD,&TlevelsPage::onCurveLoad, 0,NULL }; bindButtons(bt); static const TbindEditInt<TlevelsPage> edInt[]= { IDC_ED_Y_MAX_DELTA ,1,50,IDFF_levelsYmaxDelta,NULL, IDC_ED_Y_THRESHOLD ,1,150,IDFF_levelsYthreshold,NULL, IDC_ED_Y_TEMPORAL ,1,20,IDFF_levelsYtemporal,NULL, 0 }; bindEditInts(edInt); }
TconvolverPage::TconvolverPage(TffdshowPageDec *Iparent,const TfilterIDFF *idff):TconfPageDecAudio(Iparent,idff) { resInter=IDC_CHB_CONVOLVER; static const TbindButton<TconvolverPage> bt[]= { IDC_BT_CONVOLVER_FILE,&TconvolverPage::onFile, IDC_BT_CONVOLVER_FILES_SET,&TconvolverPage::onManualFileSet, IDC_BT_CONVOLVER_FILES_CLEAR,&TconvolverPage::onManualFileClear, 0,NULL }; bindButtons(bt); static const TbindCheckbox<TconvolverPage> chb[]= { IDC_CHB_CONVOLVER_LEVELADJUST_AUTO,IDFF_convolverLevelAdjustAuto,&TconvolverPage::adjust2dlg, IDC_CHB_CONVOLVER_MAPPING,IDFF_convolverMappingMode,&TconvolverPage::mapping2dlg, 0,NULL,NULL }; bindCheckboxes(chb); static const TbindTrackbar<TconvolverPage> htbr[]= { IDC_TBR_CONVOLVER_MIXINGSTRENGTH,IDFF_convolverMixingStrength,&TconvolverPage::cfg2dlg, IDC_TBR_CONVOLVER_LEVELADJUSTDB,IDFF_convolverLevelAdjustDB,&TconvolverPage::adjust2dlg, 0,0,NULL }; bindHtracks(htbr); }
TresizeBordersPage::TresizeBordersPage(TffdshowPageDec *Iparent, const TfilterIDFF *idff): TconfPageDecVideo(Iparent, idff, 2) { dialogId = IDD_RESIZEBORDERS; static const TbindRadiobutton<TresizeBordersPage> rbt[] = { IDC_RBT_BORDER_INSIDE , IDFF_bordersInside, 1, &TresizeBordersPage::cfg2dlg, IDC_RBT_BORDER_OUTSIDE, IDFF_bordersInside, 0, &TresizeBordersPage::cfg2dlg, IDC_RBT_BORDER_PERCENT, IDFF_bordersUnits, 0, &TresizeBordersPage::cfg2dlg, IDC_RBT_BORDER_PIXELS , IDFF_bordersUnits, 1, &TresizeBordersPage::cfg2dlg, 0, 0, 0, NULL }; bindRadioButtons(rbt); static const TbindButton<TresizeBordersPage> bt[] = { IDC_CHB_BORDERSLOCKED, &TresizeBordersPage::onLock, 0, NULL }; bindButtons(bt); static const TbindTrackbar<TresizeBordersPage> htbr[] = { IDC_TBR_BORDER_HORIZ_DIV, IDFF_bordersDivX, &TresizeBordersPage::div2dlg, IDC_TBR_BORDER_VERT_DIV, IDFF_bordersDivY, &TresizeBordersPage::div2dlg, IDC_TBR_BORDER_BRIGHTNESS, IDFF_bordersBrightness, &TresizeBordersPage::div2dlg, 0, 0, NULL }; bindHtracks(htbr); }