Beispiel #1
0
HRESULT TblurPage::msgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
 switch (uMsg)
  {
   case WM_HSCROLL:
    if (HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_BLUR_STRENGTH) || HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_BLUR_TEMPSMOOTH))
     {
      cfgSet(IDFF_blurStrength,SendDlgItemMessage(m_hwnd,IDC_TBR_BLUR_STRENGTH  ,TBM_GETPOS,0,0));
      cfgSet(IDFF_tempSmooth  ,SendDlgItemMessage(m_hwnd,IDC_TBR_BLUR_TEMPSMOOTH,TBM_GETPOS,0,0));
      blur2dlg();
      return TRUE;
     }
    break;
   case WM_COMMAND:
    switch (LOWORD(wParam))  
     {
      case IDC_CHB_BLUR:
       setInter(getCheck(IDC_CHB_BLUR));
       parent->drawInter();
       return TRUE;
     }
    break;
  }
 return FALSE;
}
Beispiel #2
0
void TresizeAspectPage::onResizeAspectMenu(void)
{
    static const char_t *aspects[] = {
        _l("4:3"),
        _l("5:4"),
        _l("16:9"),
        _l("2.35:1"),
        NULL
    };
    int cmd = selectFromMenu(aspects, IDC_BT_RESIZE_ASPECT_MENU, false);
    int a1, a2;
    switch (cmd) {
        case 0:
            a1 =  4;
            a2 =  3;
            break;
        case 1:
            a1 =  5;
            a2 =  4;
            break;
        case 2:
            a1 = 16;
            a2 =  9;
            break;
        case 3:
            a1 = 235;
            a2 = 100;
            break;
        default:
            return;
    }
    cfgSet(IDFF_resizeA1, a1);
    cfgSet(IDFF_resizeA2, a2);
    resize2dlg();
}
Beispiel #3
0
void TresizeBordersPage::onLock(void)
{
    cfgSet(IDFF_bordersLocked, getCheck(IDC_CHB_BORDERSLOCKED));
    cfgSet(IDFF_bordersPercentY, cfgGet(IDFF_bordersPercentX));
    cfgSet(IDFF_bordersPixelsY, cfgGet(IDFF_bordersPixelsX));
    cfg2dlg();
}
Beispiel #4
0
INT_PTR TgenericPage::msgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    switch (uMsg) {
        case WM_NOTIFY: {
            NMHDR *nmhdr=LPNMHDR(lParam);
            if (!nostate && nmhdr->hwndFrom==hlv && nmhdr->idFrom==IDC_LV_GENERIC)
                switch (nmhdr->code) {
                    case LVN_ITEMCHANGED: {
                        LPNMLISTVIEW nmlv=LPNMLISTVIEW(lParam);
                        if (nmlv->uChanged&LVIF_STATE && ((nmlv->uOldState&4096)!=(nmlv->uNewState&4096))) {
                            Tflag *f=(Tflag*)nmlv->lParam;
                            if (nmlv->uNewState&8192) {
                                cfgSet(std::get<IDFF-1>(*f),cfgGet(std::get<IDFF-1>(*f))|std::get<VAL-1>(*f));
                            } else if (nmlv->uNewState&4096) {
                                cfgSet(std::get<IDFF-1>(*f),cfgGet(std::get<IDFF-1>(*f))&~std::get<VAL-1>(*f));
                            }
                            if (std::get<REPAINT-1>(*f)) {
                                cfg2dlg();
                            }
                        }
                        return TRUE;
                    }
                    break;
                }
            break;
        }
    }
    return TconfPageEnc::msgProc(uMsg,wParam,lParam);
}
HRESULT TpictPropPage::msgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
 switch (uMsg)
  {
   case WM_HSCROLL:
    if (HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_LUMGAIN) || HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_LUMOFFSET) || HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_GAMMA))
     {
      cfgSet(IDFF_lumGain,writeLumGain(SendDlgItemMessage(m_hwnd,IDC_TBR_LUMGAIN,TBM_GETPOS,0,0)));
      cfgSet(IDFF_lumOffset,writeLumOffset(SendDlgItemMessage(m_hwnd,IDC_TBR_LUMOFFSET,TBM_GETPOS,0,0))-256);
      cfgSet(IDFF_gammaCorrection,writeGamma(SendDlgItemMessage(m_hwnd,IDC_TBR_GAMMA,TBM_GETPOS,0,0)));
      return TRUE;
     }
    else if (HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_HUE) || HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_SATURATION))
     {
      cfgSet(IDFF_hue,writeHue(SendDlgItemMessage(m_hwnd,IDC_TBR_HUE,TBM_GETPOS,0,0)));
      cfgSet(IDFF_saturation,writeSaturation(SendDlgItemMessage(m_hwnd,IDC_TBR_SATURATION,TBM_GETPOS,0,0)));
      return TRUE;
     }   
    break; 
   case WM_COMMAND:
    switch (LOWORD(wParam))  
     {
      case IDC_CHB_PICTPROP:
       setInter(getCheck(IDC_CHB_PICTPROP));
       parent->drawInter();
       return TRUE;
     }
    break;
  }   
 return FALSE;
}
Beispiel #6
0
INT_PTR TkeysPage::msgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    switch (uMsg) {
        case WM_DESTROY:
            cfgSet(IDFF_lvKeysWidth0, ListView_GetColumnWidth(hlv, 0));
            cfgSet(IDFF_lvKeysWidth1, ListView_GetColumnWidth(hlv, 1));
            break;
        case WM_COMMAND:
            switch (LOWORD(wParam)) {
                case IDC_CHB_KEYS:
                    cfgSet(IDFF_isKeys, getCheck(IDC_CHB_KEYS));
                    keys2dlg();
                    parent->drawInter();
                    return TRUE;
            }
            break;
        case WM_NOTIFY: {
            NMHDR *nmhdr = LPNMHDR(lParam);
            if (nmhdr->hwndFrom == hlv && nmhdr->idFrom == IDC_LV_KEYS)
                switch (nmhdr->code) {
                    case NM_DBLCLK:
                        if (keyChanging != -1) {
                            endKeyChange();
                        } else {
                            beginKeyChange();
                        }
                        return TRUE;
                    case NM_CLICK:
                        if (keyChanging != -1) {
                            endKeyChange();
                        }
                        return TRUE;
                    case LVN_GETDISPINFO: {
                        NMLVDISPINFO *nmdi = (NMLVDISPINFO*)lParam;
                        int i = nmdi->item.iItem;
                        if (i == -1) {
                            break;
                        }
                        if (nmdi->item.mask & LVIF_TEXT)
                            switch (nmdi->item.iSubItem) {
                                case 0: {
                                    const char_t *descr;
                                    deciD->getKeyParamDescr(i, &descr);
                                    strcpy(nmdi->item.pszText, _(IDC_LV_KEYS, descr));
                                    break;
                                }
                                case 1:
                                    strcpy(nmdi->item.pszText, _(IDC_LV_KEYS, keyChanging == -1 ? Tkeyboard::getKeyName(deciD->getKeyParamKey2(i)) : _l("press key")));
                                    break;
                            }
                        return TRUE;
                    }
                }
            break;
        }
    }
    return TconfPageDec::msgProc(uMsg, wParam, lParam);
}
Beispiel #7
0
void TdlgMiscPage::onIconTypeChange(void)
{
    int it = cfgGet(IDFF_trayIconType);
    if (it == 0) {
        cfgSet(IDFF_trayIcon, 0);
    } else {
        cfgSet(IDFF_trayIconChanged, 1);
        cfgSet(IDFF_trayIcon, 1);
    }
}
bool TpictPropPage::reset(bool testOnly)
{
 if (testOnly) return true;
 SendDlgItemMessage(m_hwnd,IDC_TBR_LUMGAIN   ,TBM_SETPOS,TRUE,writeLumGain(cfgSet(IDFF_lumGain,cfgGet(IDFF_lumGainDef))));
 SendDlgItemMessage(m_hwnd,IDC_TBR_LUMOFFSET ,TBM_SETPOS,TRUE,writeLumOffset(256+(cfgSet(IDFF_lumOffset,cfgGet(IDFF_lumOffsetDef)))));
 SendDlgItemMessage(m_hwnd,IDC_TBR_GAMMA     ,TBM_SETPOS,TRUE,writeGamma(cfgSet(IDFF_gammaCorrection,cfgGet(IDFF_gammaCorrectionDef))));
 SendDlgItemMessage(m_hwnd,IDC_TBR_HUE       ,TBM_SETPOS,TRUE,writeHue(cfgSet(IDFF_hue,cfgGet(IDFF_hueDef))));
 SendDlgItemMessage(m_hwnd,IDC_TBR_SATURATION,TBM_SETPOS,TRUE,writeSaturation(cfgSet(IDFF_saturation,cfgGet(IDFF_saturationDef))));
 return true;
}
Beispiel #9
0
void TffdshowPageBase::saveDialogSettings(void)
{
    if (IsWindow(dlg)) {
        WINDOWPLACEMENT wpl;
        wpl.length = sizeof(wpl);
        GetWindowPlacement(dlg, &wpl);
        cfgSet(IDFF_dlgPosX, wpl.rcNormalPosition.left);
        cfgSet(IDFF_dlgPosY, wpl.rcNormalPosition.top);
    }
    deci->saveDialogSettings();
}
Beispiel #10
0
void TpresetsPage::changePresetState(void)
{
    if (cfgGet(IDFF_autoLoadedFromFile)==1) {
        cfgSet(IDFF_autoLoadedFromFile,0);
        InvalidateRect(hlv,NULL,FALSE);
    } else {
        char_t presetName[MAX_PATH];
        deciD->getActivePresetName(presetName, countof(presetName));
        cfgSet(IDFF_defaultPreset,presetName);
        InvalidateRect(hlv,NULL,FALSE);
    }
}
Beispiel #11
0
void TresizeAspectPage::onResizeSizeMenu(void)
{
    static const char_t *pixels[] = {
        _l("320x240"),
        _l("640x480"),
        _l("720x480"),
        _l("720x576"),
        _l("1024x768"),
        _l("1280x720"),
        _l("1920x1080"),
        NULL
    };
    int cmd = selectFromMenu(pixels, IDC_BT_RESIZE_SIZE_MENU, false);
    int x, y;
    switch (cmd) {
        case 0:
            x = 320;
            y = 240;
            break;
        case 1:
            x = 640;
            y = 480;
            break;
        case 2:
            x = 720;
            y = 480;
            break;
        case 3:
            x = 720;
            y = 576;
            break;
        case 4:
            x = 1024;
            y = 768;
            break;
        case 5:
            x = 1280;
            y = 720;
            break;
        case 6:
            x = 1920;
            y = 1080;
            break;
        default:
            return;
    }
    cfgSet(IDFF_resizeDx, x);
    cfgSet(IDFF_resizeDy, y);
    cfgSet(IDFF_resizeDy_real, y);
    resize2dlg();
}
bool TresizePage::applyResizeXY(bool checkOnly)
{
    BOOL ok;
    int x=GetDlgItemInt(m_hwnd,IDC_ED_RESIZEDX,&ok,FALSE);
    if (!ok || x<8 || x>2048 || (x&15)) return false;
    int y=GetDlgItemInt(m_hwnd,IDC_ED_RESIZEDY,&ok,FALSE);
    if (!ok || y<8 || y>2048 || (y&15)) return false;
    if (!checkOnly)
    {
        cfgSet(IDFF_resizeDx,x);
        cfgSet(IDFF_resizeDy,y);
    };
    return true;
}
eHalStatus ccmCfgSetStr(tHalHandle hHal, tANI_U32 cfgId, tANI_U8 *pStr, tANI_U32 length, tCcmCfgSetCallback callback, eAniBoolean toBeSaved)
{
    if( callback || toBeSaved )
    {
        //we need to sychronous this one
        return cfgSet(hHal, cfgId, CCM_STRING_TYPE, length, pStr, 0, callback, toBeSaved);
    }
    else
    {
        //Simply push to CFG and not waiting for the response
        tCfgReq req;
        tpAniSirGlobal pMac = PMAC_STRUCT( hHal );

        req.callback = NULL;
        req.next = NULL;
        req.cfgId = ( tANI_U16 )cfgId;
        req.length = length;
        req.type = CCM_STRING_TYPE;
        req.ccmPtr = pStr;
        req.ccmValue = 0;
        req.toBeSaved = toBeSaved;
        req.state = eCCM_REQ_SENT;

        return ( sendCfg( pMac, pMac->hHdd, &req, eANI_BOOLEAN_FALSE ) );
    }
}
Beispiel #14
0
INT_PTR TprocsfsPage::msgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    switch (uMsg) {
        case WM_COMMAND:
            switch (LOWORD(wParam)) {
                case IDC_CHB_PREFERRED_PCM16:
                case IDC_CHB_PREFERRED_PCM32:
                case IDC_CHB_PREFERRED_FLOAT32: {
                    int prefsfs=0;
                    if (getCheck(IDC_CHB_PREFERRED_PCM16  )) {
                        prefsfs|=TsampleFormat::SF_PCM16;
                    }
                    if (getCheck(IDC_CHB_PREFERRED_PCM32  )) {
                        prefsfs|=TsampleFormat::SF_PCM32;
                    }
                    if (getCheck(IDC_CHB_PREFERRED_FLOAT32)) {
                        prefsfs|=TsampleFormat::SF_FLOAT32;
                    }
                    if (prefsfs) {
                        cfgSet(IDFF_preferredsfs,prefsfs);
                    } else {
                        setCheck(LOWORD(wParam),!getCheck(LOWORD(wParam)));
                    }
                    return TRUE;
                }
            }
            break;
    }
    return TconfPageDecAudio::msgProc(uMsg,wParam,lParam);
}
Beispiel #15
0
void TffdshowPageBase::selectPage(TconfPageBase *Ipage)
{
    if (!Ipage->m_hwnd) {
        Ipage->createWindow();
    }
    bool pageChanged = page != Ipage;
    if (page && pageChanged) {
        ShowWindow(page->m_hwnd, SW_HIDE);
    }
    page = Ipage;
    CRect rp = getChildRect(IDC_PLACE_PAGE);
    SetWindowPos(page->m_hwnd, htv, rp.left, rp.top, 0, 0, SWP_NOSIZE);
    page->resize(rp);
    pageIs = page->enabled();
    if (page->wndEnabled != pageIs) {
        page->enable();
    }
    if (pageIs) {
        page->cfg2dlg();
    }
    if (pageChanged) {
        ShowWindow(page->m_hwnd, SW_SHOW);
    }
    enable(page->helpURL != NULL && pageIs, IDC_BT_HELP);
    InvalidateRect(m_hwnd, NULL, FALSE);
    int lastpage = page->uniqueID();
    cfgSet(IDFF_lastPage, lastpage);
}
Beispiel #16
0
eHalStatus ccmCfgSetInt(tHalHandle hHal, tANI_U32 cfgId, tANI_U32 ccmValue, tCcmCfgSetCallback callback, eAniBoolean toBeSaved)
{
    if( callback || toBeSaved)
    {
        
        return cfgSet(hHal, cfgId, CCM_INTEGER_TYPE, sizeof(tANI_U32), NULL, ccmValue, callback, toBeSaved);
    }
    else
    {
        
        tCfgReq req;
        tpAniSirGlobal pMac = PMAC_STRUCT( hHal );

        req.callback = NULL;
        req.next = NULL;
        req.cfgId = ( tANI_U16 )cfgId;
        req.length = sizeof( tANI_U32 );
        req.type = CCM_INTEGER_TYPE;
        req.ccmPtr = NULL;
        req.ccmValue = ccmValue;
        req.toBeSaved = toBeSaved;
        req.state = eCCM_REQ_SENT;

        return ( sendCfg( pMac, pMac->hHdd, &req, eANI_BOOLEAN_FALSE ) );
    }
}
Beispiel #17
0
void TcodecsPage::dlg2options(int id)
{
    int ii=lvGetSelItem(IDC_LV_INCODECS);
    if (isIn(ii,0,(int)formats.size())) {
        int optionId = 0;
        switch(id) {
            case IDC_CHB_CODEC_OPT1:
                optionId=0;
                break;
            case IDC_CHB_CODEC_OPT2:
                optionId=1;
                break;
            case IDC_CHB_CODEC_OPT3:
                optionId=2;
                break;
            case IDC_CHB_CODEC_OPT4:
                optionId=3;
                break;
        }
        const Tformat::Toption &o=formats[ii].options[optionId];
        int idff=o.id;
        int val=cfgGet(idff);
        if (getCheck(id)) {
            val|=o.val;
        } else {
            val&=~o.val;
        }
        cfgSet(idff,val);
    }
}
Beispiel #18
0
void TdeinterlacePage::deint2dlg(void)
{
    setCheck(IDC_CHB_DEINTERLACEALWAYS, cfgGet(IDFF_deinterlaceAlways));
    setCheck(IDC_CHB_SWAP_FIELDS, cfgGet(IDFF_swapFields)); //enable(cfgGet(IDFF_isDeinterlace),IDC_CHB_SWAP_FIELDS);
deint2dlgAgain:
    int method = cfgGet(IDFF_deinterlaceMethod);
    if (panel) {
        delete panel;
    }
    panel = NULL;
    const TdeinterlaceSettings::TmethodProps &methodProps = TdeinterlaceSettings::getMethod(method);
    if (methodProps.id != TdeinterlaceSettings::DSCALER) {
        cbxSetDataCurSel(IDC_CBX_DEINT_METHOD, method);
        if (methodProps.create) {
            panel = methodProps.create(this);
        }
    } else {
        strings::const_iterator diflnm = std::find(diflnms.begin(), diflnms.end(), cfgGetStr(IDFF_dscalerDIflnm));
        if (diflnm != diflnms.end()) {
            cbxSetCurSel(IDC_CBX_DEINT_METHOD, int(diflnm - diflnms.begin() + dscalerstart));
            panel = new TdeinterlacePageDScaler(this, diflnm->c_str());
        } else {
            cfgSet(IDFF_deinterlaceMethod, 0);
            goto deint2dlgAgain;
        }
    }
    if (panel) {
        SetWindowPos(panel->m_hwnd, place, placer.left, placer.top, 0, 0, SWP_NOSIZE);
        panel->cfg2dlg();
    }
}
Beispiel #19
0
INT_PTR TdeinterlacePage::msgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    switch (uMsg) {
        case WM_DESTROY:
            if (panel) {
                delete panel;
            }
            break;
        case TdeinterlacePageDScaler::WM_DSCALERPAGE_CHANGE:
            panel->storeCfg();
            break;
        case WM_COMMAND:
            switch (LOWORD(wParam)) {
                case IDC_CBX_DEINT_METHOD:
                    if (HIWORD(wParam) == CBN_SELCHANGE) {
                        int ii = cbxGetCurSel(IDC_CBX_DEINT_METHOD);
                        if (dscalerstart && ii >= dscalerstart) {
                            cfgSet(IDFF_dscalerDIflnm, diflnms[ii - dscalerstart].c_str());
                        }
                    }
                    break;
            }
            break;
    }
    return TconfPageDecVideo::msgProc(uMsg, wParam, lParam);
}
Beispiel #20
0
void TffdshowPageBase::enableHints(bool is)
{
    cfgSet(IDFF_showHints, is);
    for (ThtiPages::const_iterator hp = htiPages.begin(); hp != htiPages.end(); hp++)
        for (TconfPages::const_iterator i = (*hp)->begin(); i != (*hp)->end(); i++) {
            (*i)->enableHints(is);
        }
}
Beispiel #21
0
void TvolumePage::volTbr2cfg(int idc, int idff, int mult)
{
    int x = tbrGet(idc);
    if (isdb) {
        x = mult * ff_round(db2value((double)x * mult) * 100);
    }
    cfgSet(idff, mult * x);
}
HRESULT ToffsetPage::msgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
 switch (uMsg)
  {
   case WM_HSCROLL:
    if (HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_OFFSETY_X) || HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_OFFSETY_Y) || HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_OFFSETUV_X) || HWND(lParam)==GetDlgItem(m_hwnd,IDC_TBR_OFFSETUV_Y))
     {
      cfgSet(IDFF_offsetY_X,SendDlgItemMessage(m_hwnd,IDC_TBR_OFFSETY_X ,TBM_GETPOS,0,0));
      cfgSet(IDFF_offsetY_Y,SendDlgItemMessage(m_hwnd,IDC_TBR_OFFSETY_Y ,TBM_GETPOS,0,0));
      cfgSet(IDFF_offsetU_X,SendDlgItemMessage(m_hwnd,IDC_TBR_OFFSETUV_X,TBM_GETPOS,0,0));
      cfgSet(IDFF_offsetU_Y,SendDlgItemMessage(m_hwnd,IDC_TBR_OFFSETUV_Y,TBM_GETPOS,0,0));
      cfgSet(IDFF_offsetV_X,SendDlgItemMessage(m_hwnd,IDC_TBR_OFFSETUV_X,TBM_GETPOS,0,0));
      cfgSet(IDFF_offsetV_Y,SendDlgItemMessage(m_hwnd,IDC_TBR_OFFSETUV_Y,TBM_GETPOS,0,0));
      offset2dlg();
      return TRUE;
     }
    break;
   case WM_COMMAND:
    switch (LOWORD(wParam))  
     {
      case IDC_CHB_OFFSET:
       cfgSet(IDFF_isOffset,getCheck(IDC_CHB_OFFSET));
       parent->drawInter();
       return TRUE;
     }
    break;
  }
 return FALSE;
}
Beispiel #23
0
void TgraphPage::onDebugoutputfile(void)
{
    char_t debugfile[MAX_PATH];
    cfgGet(IDFF_debugfile, debugfile, MAX_PATH);
    if (dlgGetFile(true, m_hwnd, _(-IDD_GRAPH, _l("Select file for debug info")), _l("Log files (*.log)\0*.log\0All files (*.*)\0*.*\0"), _l("log"), debugfile, _l("."), 0)) {
        cfgSet(IDFF_debugfile, debugfile);
        debug2dlg();
    }
}
Beispiel #24
0
void TOSDpageDec::applySettings(void)
{
    char_t flnm[MAX_PATH];
    GetDlgItemText(m_hwnd, IDC_ED_OSD_SAVE, flnm, MAX_PATH);
    cfgSet(IDFF_OSDsaveFlnm, flnm);

    HWND hed = GetDlgItem(m_hwnd, IDC_ED_OSD_DURATION_VISIBLE);
    eval(hed, 0, 10000, IDFF_OSDdurationVisible);
}
Beispiel #25
0
void TconvolverPage::onManualFileClear(void)
{
    int i=lvGetSelItem(IDC_LV_CONVOLVER_FILES);
    if (i!=-1) {
        cfgSet(speakersIdffs[i],_l(""));
        speakerFormats[i].clear();
        ListView_RedrawItems(hlv,i,i);
    }
}
Beispiel #26
0
void TbitmapPage::onFlnm(void)
{
    char_t flnm[MAX_PATH];
    cfgGet(IDFF_bitmapFlnm,flnm,MAX_PATH);
    if (dlgGetFile(false,m_hwnd,_(-IDD_BITMAP,_l("Load image file")),_l("All supported (*.jpg,*.bmp,*.gif,*.png)\0*.bmp;*.jpg;*.jpeg;*.gif;*.png\0Windows Bitmap (*.bmp)\0*.bmp\0JPEG (*.jpg)\0*.jpg\0Compuserve Graphics Interchange (*.gif)\0*.gif\0Portable Network Graphics (*.png)\0*.png"),_l("bmp"),flnm,_l("."),0)) {
        setDlgItemText(m_hwnd,IDC_ED_BITMAP_FLNM,flnm);
        cfgSet(IDFF_bitmapFlnm,flnm);
    }
}
Beispiel #27
0
void TOSDpageDec::onSave(void)
{
    char_t flnm[MAX_PATH];
    cfgGet(IDFF_OSDsaveFlnm, flnm, MAX_PATH);
    if (dlgGetFile(true, m_hwnd, _(-IDD_OSD, _l("File where to write statistics")), _l("Comma delimited (*.csv)\0*.csv\0"), _l("csv"), flnm, _l("."), 0)) {
        setDlgItemText(m_hwnd, IDC_ED_OSD_SAVE, flnm);
        cfgSet(IDFF_OSDsaveFlnm, flnm);
    }
}
void TdctQuantDlg::TdctQuantTables::setChange(void)
{
    uint8_t *m=inter;
    for (int i=0; i<16; i++,m+=4) {
        int32_t val;
        memcpy(&val,m,sizeof(val));
        cfgSet(idffs[i],val);
    }
}
Beispiel #29
0
void ToutPage::onStoreExternal(void)
{
    char_t storeExtFlnm[MAX_PATH];
    cfgGet(IDFF_enc_storeExtFlnm,storeExtFlnm,MAX_PATH);
    if (dlgGetFile(true,m_hwnd,_(-IDD_OUT,_l("Select file for storing frames")),_l("All files (*.*)\0*.*\0"),_l(""),storeExtFlnm,_l("."),0)) {
        cfgSet(IDFF_enc_storeExtFlnm,storeExtFlnm);
        out2dlg();
    }
}
Beispiel #30
0
void TcompatibilityList::dlg2cfg(void)
{
    char_t complist0[MAX_COMPATIBILITYLIST_LENGTH];
    GetDlgItemText(m_hwnd, IDC_ED_COMPATIBILITYLIST, complist0, MAX_COMPATIBILITYLIST_LENGTH);
    ffstring complistResult;

    TdirectshowControlPageDec::convertDelimit(complist0, _l("\r\n"), complistResult, getDelimit());
    cfgSet(IDFF_target, complistResult.c_str());
}