Beispiel #1
0
void orReport::setParamList(const QStringList & lstPParameters)
{
  ParameterList plist;
  for(int t = 0; t < lstPParameters.count(); t++)
    plist.append(Parameter(QString(), lstPParameters[t]));

  setParamList(plist);
}
Beispiel #2
0
orReport::orReport(const QString &qstrDomname, const ParameterList &pParams, QSqlDatabase pDb)
  : _internal(0)
{
  _internal = new orReportPrivate();

  if(_internal != 0) {
    setDatabase(pDb);
    setParamList(pParams);

    constructor(qstrDomname);
  }
}
Beispiel #3
0
orReport::orReport(const char *pReportName, const ParameterList &pParams, QSqlDatabase pDb)
  : _internal(0)
{
  _internal = new orReportPrivate();

  if(_internal != 0) {
    setDatabase(pDb);
    setParamList(pParams);

    constructor(QString(pReportName));
  }
}
Beispiel #4
0
void plexser::buildFuncHeader(char first, std::pair<std::string, char> cur)
{
	dbg::trace tr("plexser", DBG_HERE);

	std::string cls;
	memfunc mem;

	setFuncInfo(mem);

	setParamList(mem);
	setBody(mem);


	cppclass* curclass = mem.getClass();
	curclass->addfunc(mem);
}
void SmsPluginSetting::setConfigData(const MSG_SETTING_S *pSetting)
{
	MSG_DEBUG("Setting Type : [%d]", pSetting->type);

	switch (pSetting->type)
	{
		case MSG_SMSC_LIST :
			setParamList(&pSetting->option.smscList);
		break;

		case MSG_CBMSG_OPT :
			setCbConfig(&pSetting->option.cbMsgOpt);
		break;

		default :
			THROW(MsgException::SMS_PLG_ERROR, "The Setting type is not supported. [%d]", pSetting->type);
		break;
	}
}
TperspectiveSettings::TperspectiveSettings(TintStrColl *Icoll,TfilterIDFFs *filters):TfilterSettingsVideo(sizeof(*this),Icoll,filters,&idffs)
{
    static const TintOptionT<TperspectiveSettings> iopts[]= {
        IDFF_isPerspective            ,&TperspectiveSettings::is              ,0,0,_l(""),1,
        _l("isPerspective"),0,
        IDFF_showPerspective          ,&TperspectiveSettings::show            ,0,0,_l(""),1,
        _l("showPerspective"),1,
        IDFF_orderPerspective         ,&TperspectiveSettings::order           ,1,1,_l(""),1,
        _l("orderPerspective"),0,
        IDFF_fullPerspective          ,&TperspectiveSettings::full            ,0,0,_l(""),1,
        _l("fullPerspective"),1,
        IDFF_halfPerspective          ,&TperspectiveSettings::half            ,0,0,_l(""),1,
        _l("halfPerspective"),0,
        IDFF_perspectiveIsSrc         ,&TperspectiveSettings::isSrc           ,0,0,_l(""),1,
        _l("perspectiveIsSrc"),0,
        IDFF_perspectiveX1            ,&TperspectiveSettings::x1              ,0,100,_l(""),1,
        _l("perspectiveX1"),0,
        IDFF_perspectiveY1            ,&TperspectiveSettings::y1              ,0,100,_l(""),1,
        _l("perspectiveY1"),0,
        IDFF_perspectiveX2            ,&TperspectiveSettings::x2              ,0,100,_l(""),1,
        _l("perspectiveX2"),100,
        IDFF_perspectiveY2            ,&TperspectiveSettings::y2              ,0,100,_l(""),1,
        _l("perspectiveY2"),0,
        IDFF_perspectiveX3            ,&TperspectiveSettings::x3              ,0,100,_l(""),1,
        _l("perspectiveX3"),0,
        IDFF_perspectiveY3            ,&TperspectiveSettings::y3              ,0,100,_l(""),1,
        _l("perspectiveY3"),100,
        IDFF_perspectiveX4            ,&TperspectiveSettings::x4              ,0,100,_l(""),1,
        _l("perspectiveX4"),100,
        IDFF_perspectiveY4            ,&TperspectiveSettings::y4              ,0,100,_l(""),1,
        _l("perspectiveY4"),100,
        IDFF_perspectiveInterpolation ,&TperspectiveSettings::interpolation   ,0,2,_l(""),1,
        _l("perspectiveInterpolation"),0,
        0
    };
    addOptions(iopts);

    static const TcreateParamList1 listInterpolation(interpolationNames);
    setParamList(IDFF_perspectiveInterpolation,&listInterpolation);
}
Beispiel #7
0
TcoSettings::TcoSettings(TintStrColl *Icoll): Toptions(Icoll), options(Icoll)
{
    static const TintOptionT<TcoSettings> iopts[] = {
        IDFF_enc_mode        , &TcoSettings::mode       , 0,          5, _l(""), 1,
        _l("mode"), ENC_MODE::CBR,
        IDFF_enc_bitrate1000 , &TcoSettings::bitrate1000, 1,      10000, _l(""), 1,
        _l("bitrate1000"), 900,
        IDFF_enc_desiredSize , &TcoSettings::desiredSize, 1, 4 * 1024 * 1024, _l(""), 1,
        _l("desiredSize"), 570000,
        IDFF_enc_quant       , &TcoSettings::quant      , minQuant, maxQuant, _l(""), 1,
        _l("quant"), 2,
        IDFF_enc_qual        , &TcoSettings::qual       , 0,        100, _l(""), 1,
        _l("qual"), 85,

        IDFF_enc_codecId , &TcoSettings::codecId         , 1, 10000, _l(""), 1,
        _l("codecId"), CODEC_ID_MJPEG,
        IDFF_enc_fourcc  , (TintVal)&TcoSettings::fourcc , 1,    1, _l(""), 1,
        _l("fourcc"), FOURCC_MJPG,

        IDFF_enc_interlacing     , &TcoSettings::interlacing     , 0,  0, _l(""), 1,
        _l("interlacing"), 0,
        IDFF_enc_interlacing_tff , &TcoSettings::interlacing_tff , 0,  0, _l(""), 1,
        _l("interlacing_tff"), 0,
        IDFF_enc_gray            , &TcoSettings::gray            , 0,  0, _l(""), 1,
        _l("gray"), 0,

        IDFF_enc_huffyuv_csp  , &TcoSettings::huffyuv_csp , 0, 1, _l(""), 1,
        _l("huffyuv_csp"), 1,
        IDFF_enc_huffyuv_pred , &TcoSettings::huffyuv_pred, 0, 2, _l(""), 1,
        _l("huffyuv_pred"), 1,
        IDFF_enc_huffyuv_ctx  , &TcoSettings::huffyuv_ctx , 0, 1, _l(""), 1,
        _l("huffyuv_ctx"), 0,

        IDFF_enc_ljpeg_csp  , &TcoSettings::ljpeg_csp , 0, 0, _l(""), 1,
        _l("ljpeg_csp"), FOURCC_YV12,

        IDFF_enc_ffv1_coder  , &TcoSettings::ffv1_coder  , 0, 1, _l(""), 1,
        _l("ffv1_coder"), 0,
        IDFF_enc_ffv1_context, &TcoSettings::ffv1_context, 0, 10, _l(""), 1,
        _l("ffv1_context"), 0,
        IDFF_enc_ffv1_key_interval, &TcoSettings::ffv1_key_interval, 1, 500, _l(""), 1,
        _l("ffv1_key_interval"), 10,
        IDFF_enc_ffv1_csp    , &TcoSettings::ffv1_csp    , 1, 1, _l(""), 1,
        _l("ffv1_csp"), FOURCC_YV12,

        IDFF_enc_dv_profile  , &TcoSettings::dv_profile  , DV_PROFILE_AUTO, countof(dv_profiles) - 1, _l(""), 1,
        _l("dv_profile"), DV_PROFILE_AUTO,

        IDFF_enc_forceIncsp, &TcoSettings::forceIncsp , 0, 0, _l(""), 1,
        _l("forceIncsp"), 0,
        IDFF_enc_incsp     , &TcoSettings::incspFourcc, 1, 1, _l(""), 1,
        _l("incsp"), FOURCC_YV12,
        IDFF_enc_isProc    , &TcoSettings::isProc     , 0, 0, _l(""), 1,
        _l("isProc"), 0,
        IDFF_enc_flip      , &TcoSettings::flip       , 0, 0, _l(""), 1,
        _l("flip"), 0,
        IDFF_enc_dropFrames, &TcoSettings::dropFrames , 0, 0, _l(""), 1,
        _l("dropFrames"), 0,

        IDFF_enc_storeAVI       , &TcoSettings::storeAVI       , 0, 0, _l(""), 1,
        _l("storeAVI"), 1,
        IDFF_enc_storeExt       , &TcoSettings::storeExt       , 0, 0, _l(""), 1,
        _l("storeExt"), 0,
        IDFF_enc_muxer          , &TcoSettings::muxer          , 0, 4, _l(""), 1,
        _l("muxer"), Tmuxer::MUXER_FILE,

        IDFF_enc_q_i_min          , &TcoSettings::q_i_min          , minQuant, maxQuant, _l(""), 1,
        _l("q_i_min"), 2,
        IDFF_enc_q_i_max          , &TcoSettings::q_i_max          , minQuant, maxQuant, _l(""), 1,
        _l("q_i_max"), 31,
        IDFF_enc_i_quant_factor   , &TcoSettings::i_quant_factor   , -3100, 3100, _l(""), 1,
        _l("i_quant_factor"), -80,
        IDFF_enc_i_quant_offset   , &TcoSettings::i_quant_offset   , -3100, 3100, _l(""), 1,
        _l("i_quant_offset"), 0,
        IDFF_enc_dct_algo         , &TcoSettings::dct_algo         ,    0,   4, _l(""), 1,
        _l("dct_algo"), 0,

        IDFF_enc_ff1_vratetol       , &TcoSettings::ff1_vratetol       , 1, 1024 * 10, _l(""), 1,
        _l("ff1_vratetol"), 1024,
        IDFF_enc_ff1_vqcomp         , &TcoSettings::ff1_vqcomp         , 0, 100, _l(""), 1,
        _l("ff1_vqcomp"), 50,
        IDFF_enc_ff1_vqblur1        , &TcoSettings::ff1_vqblur1        , 0, 100, _l(""), 1,
        _l("ff1_vqblur1"), 50,
        IDFF_enc_ff1_vqblur2        , &TcoSettings::ff1_vqblur2        , 0, 100, _l(""), 1,
        _l("ff1_vqblur2"), 50,
        IDFF_enc_ff1_vqdiff         , &TcoSettings::ff1_vqdiff         , 0, 31, _l(""), 1,
        _l("ff1_vqdiff"), 3,
        IDFF_enc_ff1_rc_squish      , &TcoSettings::ff1_rc_squish      , 0,  0, _l(""), 1,
        _l("ff1_rc_squish"), 0,
        IDFF_enc_ff1_rc_max_rate1000, &TcoSettings::ff1_rc_max_rate1000, 1,  1, _l(""), 1,
        _l("ff1_rc_max_rate1000"), 0,
        IDFF_enc_ff1_rc_min_rate1000, &TcoSettings::ff1_rc_min_rate1000, 1,  1, _l(""), 1,
        _l("ff1_rc_min_rate1000"), 0,
        IDFF_enc_ff1_rc_buffer_size , &TcoSettings::ff1_rc_buffer_size , 1,  1, _l(""), 1,
        _l("ff1_rc_buffer_size"), 0,

        IDFF_enc_is_lavc_nr                  , &TcoSettings::is_lavc_nr                  , 0, 0, _l(""), 1,
        _l("is_lavc_nr"), 0,
        IDFF_enc_lavc_nr                     , &TcoSettings::lavc_nr                     , 0, 10000, _l(""), 1,
        _l("lavc_nr"), 100,
        IDFF_enc_raw_fourcc, (TintVal)&TcoSettings::raw_fourcc, 0, 0, _l(""), 1,
        _l("raw_fourcc"), FOURCC_RGB2,
        0,
    };
    addOptions(iopts);
    setOnChange(IDFF_enc_forceIncsp, this, &TcoSettings::onIncspChange);
    setOnChange(IDFF_enc_incsp, this, &TcoSettings::onIncspChange);

    static const TcreateParamList1 listHuffYUVcaps(huffYUVcsps);
    setParamList(IDFF_enc_huffyuv_csp, &listHuffYUVcaps);
    static const TcreateParamList1 listHuffYUVpreds(huffYUVpreds);
    setParamList(IDFF_enc_huffyuv_pred, &listHuffYUVpreds);
    static const TcreateParamList1 listFFV1coders(ffv1coders);
    setParamList(IDFF_enc_ffv1_coder, &listFFV1coders);
    static const TcreateParamList1 listFFV1contexts(ffv1contexts);
    setParamList(IDFF_enc_ffv1_context, &listFFV1contexts);
    static const TcreateParamList2<TcspFcc> listFFV1csp(ffv1csps, &TcspFcc::name);
    setParamList(IDFF_enc_ffv1_csp, &listFFV1csp);
    static const TcreateParamList1 listMuxer(Tmuxer::muxers);
    setParamList(IDFF_enc_muxer, &listMuxer);
}
Beispiel #8
0
TsubtitlesSettings::TsubtitlesSettings(TintStrColl *Icoll, TfilterIDFFs *filters, int Ifiltermode): TfilterSettingsVideo(sizeof(*this), Icoll, filters, &idffs), font(Icoll), filtermode(Ifiltermode)
{
    deepcopy = true;
    memset(flnm, 0, sizeof(flnm));
    half = 0;
    static const TintOptionT<TsubtitlesSettings> iopts[] = {
        IDFF_isSubtitles            , &TsubtitlesSettings::is                      , 0, 0, _l(""), 1,
        _l("isSubtitles"), 0,
        IDFF_showSubtitles          , &TsubtitlesSettings::show                    , 0, 0, _l(""), 1,
        _l("showSubtitles"), 1,
        IDFF_orderSubtitles         , &TsubtitlesSettings::order                   , 1, 1, _l(""), 1,
        _l("orderSubtitles"), 0,
        IDFF_fullSubtitles          , &TsubtitlesSettings::full                    , 0, 0, _l(""), 1,
        _l("fullSubtitles"), 0,
        IDFF_subAutoFlnm            , &TsubtitlesSettings::autoFlnm                , 0, 0, _l(""), 1,
        _l("subAutoFlnm"), 1,
        IDFF_subPosX                , &TsubtitlesSettings::posX                    , 0, 100, _l(""), 1,
        _l("subPosX"), 50,
        IDFF_subPosY                , &TsubtitlesSettings::posY                    , 0, 100, _l(""), 1,
        _l("subPosY"), 93,
        IDFF_subAlign               , &TsubtitlesSettings::align                   , 0, 3, _l(""), 1,
        _l("subAlign"), ALIGN_FFDSHOW,
        IDFF_subIsExpand            , &TsubtitlesSettings::isExpand                , 0, 0, _l(""), 1,
        _l("subIsExpand"), 0,
        IDFF_subExpand              , &TsubtitlesSettings::expandCode              , 1, 1, _l(""), 1,
        _l("subExpand"), 1,
        IDFF_subDelay               , &TsubtitlesSettings::delay                   , 1, 1, _l("Subtitles delay"), 1,
        _l("subDelay"), delayDef,
        IDFF_subSpeed               , &TsubtitlesSettings::speed                   , 1, INT_MAX / 2, _l(""), 1,
        _l("subSpeed"), speedDef,
        IDFF_subSpeed2              , &TsubtitlesSettings::speed2                  , 1, INT_MAX / 2, _l(""), 1,
        _l("subSpeed2"), speedDef,
        IDFF_subStereoscopic        , &TsubtitlesSettings::stereoscopic            , 0, 0, _l(""), 1,
        _l("subStereoscopic"), 0,
        IDFF_subStereoscopicPar     , &TsubtitlesSettings::stereoscopicPar         , -100, 100, _l(""), 1,
        _l("subStereoscopicPar"), 0,
        IDFF_subDefLang             , &TsubtitlesSettings::deflang                 , 1, 1, _l(""), 1,
        _l("subDefLang"), 0,
        IDFF_subDefLang2            , &TsubtitlesSettings::deflang2                , 1, 1, _l(""), 1,
        _l("subDefLang2"), 0,
        IDFF_subVobsubAA            , &TsubtitlesSettings::vobsubAA                , 0, 4, _l(""), 1,
        _l("subVobsubAA"), 4,
        IDFF_subVobsubAAswgauss     , &TsubtitlesSettings::vobsubAAswgauss         , 1, 2000, _l(""), 1,
        _l("subVobsubAAswgauss"), 700,
        IDFF_subVobsubChangePosition, &TsubtitlesSettings::vobsubChangePosition    , 0, 0, _l(""), 1,
        _l("subVobsubChangePosition"), 0,
        IDFF_subImgScale            , &TsubtitlesSettings::subimgscale             , 0x10, 0x300, _l(""), 1,
        _l("subImgScale"), 0x100,
        IDFF_subLinespacing         , &TsubtitlesSettings::linespacing             , 0, 200, _l(""), 1,
        _l("subLinespacing"), 100,
        IDFF_subIsMinDuration       , &TsubtitlesSettings::isMinDuration           , 0, 0, _l(""), 1,
        _l("subIsMinDuration"), 0,
        IDFF_subMinDurationType     , &TsubtitlesSettings::minDurationType         , 0, 2, _l(""), 1,
        _l("subMinDurationType"), 1,
        IDFF_subMinDurationSub      , &TsubtitlesSettings::minDurationSubtitle     , 0, 3600000, _l(""), 1,
        _l("subMinDurationSubtitle"), 3000,
        IDFF_subMinDurationLine     , &TsubtitlesSettings::minDurationLine         , 0, 3600000, _l(""), 1,
        _l("subMinDurationLine"), 1500,
        IDFF_subMinDurationChar     , &TsubtitlesSettings::minDurationChar         , 0, 3600000, _l(""), 1,
        _l("subMinDurationChar"), 30,

        IDFF_subOpacity             , &TsubtitlesSettings::opacity                 , 0, 256, _l(""), 1,
        _l("subOpacity"), 256,
        IDFF_subSplitBorder         , &TsubtitlesSettings::textMargin              , 0, 4096, _l(""), 1,
        _l("subSplitBorder"), 20,
        IDFF_subCC                  , &TsubtitlesSettings::cc                      , 0, 0, _l(""), 1,
        _l("subCC"), 1,
        IDFF_subWordWrap            , &TsubtitlesSettings::wordWrap                , 0, 2, _l(""), 1,
        _l("subWordWrap"), 0,
        IDFF_subExtendedTags        , &TsubtitlesSettings::extendedTags            , 0, 0, _l(""), 1,
        _l("subExtendedTags"), 1,
        IDFF_subSSA                 , &TsubtitlesSettings::subSSA                  , 0, 0, _l(""), 1,
        _l("subSSA"), 1,
        IDFF_subSSAOverridePlacement, &TsubtitlesSettings::SSAOverridePlacement    , 0, 0, _l(""), 1,
        _l("subSSAOverridePlacement"), 0,
        IDFF_subSSAMaintainInside   , &TsubtitlesSettings::SSAMaintainInside       , 0, 0, _l(""), 1,
        _l("subSSAMaintainInside"), 0,
        IDFF_subSSAUseMovieDimensions, &TsubtitlesSettings::SSAUseMovieDimensions  , 0, 0, _l(""), 1,
        _l("subSSAUseMovieDimensions"), 0,
        IDFF_subPGS                  , &TsubtitlesSettings::pgs                    , 0, 0, _l(""), 1,
        _l("subPGS"), 1,
        IDFF_subFiles                , &TsubtitlesSettings::isSubFiles             , 0, 0, _l(""), 1,
        _l("subFiles"), 1,
        IDFF_subText                 , &TsubtitlesSettings::isSubText              , 0, 0, _l(""), 1,
        _l("subText"), 1,
        0
    };
    addOptions(iopts);
    static const TstrOption sopts[] = {
        IDFF_subFilename            , (TstrVal)&TsubtitlesSettings::flnm           , MAX_PATH, 0 , _l(""), 1,
        _l("subFlnm"), _l(""),
        IDFF_subTempFilename        , (TstrVal)&TsubtitlesSettings::tempflnm       , MAX_PATH, 0 , _l(""), 1,
        NULL, _l(""),
        0
    };
    addOptions(sopts);
    tempflnm[0] = 0;

    static const TcreateParamList2<Tlang> listLang(langs, &Tlang::desc);
    setParamList(IDFF_subDefLang, &listLang);
    setParamList(IDFF_subDefLang2, &listLang);
    static const TcreateParamList1 listVobsubAA(vobsubAAs);
    setParamList(IDFF_subVobsubAA, &listVobsubAA);
    static const TcreateParamList1 listAlign(alignments);
    setParamList(IDFF_subAlign, &listAlign);
    static const TcreateParamList1 listDurations(durations);
    setParamList(IDFF_subMinDurationType, &listDurations);
    static const TcreateParamList1 listWordWraps(wordWraps);
    setParamList(IDFF_subWordWrap, &listWordWraps);
}
Beispiel #9
0
TdeinterlaceSettings::TdeinterlaceSettings(TintStrColl *Icoll, TfilterIDFFs *filters): TfilterSettingsVideo(sizeof(*this), Icoll, filters, &idffs)
{
    memset(dscalerFlnm, 0, sizeof(dscalerFlnm));
    memset(dscalerCfg, 0, sizeof(dscalerCfg));
    half = 0;
    static const TintOptionT<TdeinterlaceSettings> iopts[] = {
        IDFF_isDeinterlace            , &TdeinterlaceSettings::is                       , 0, 0, _l(""), 1,
        _l("isDeinterlace"), 0,
        IDFF_showDeinterlace          , &TdeinterlaceSettings::show                     , 0, 0, _l(""), 1,
        _l("showDeinterlace"), 1,
        IDFF_orderDeinterlace         , &TdeinterlaceSettings::order                    , 1, 1, _l(""), 1,
        _l("orderDeinterlace"), 0,
        IDFF_fullDeinterlace          , &TdeinterlaceSettings::full                     , 0, 0, _l(""), 1,
        _l("fullDeinterlace"), 0,
        IDFF_deinterlaceAlways        , &TdeinterlaceSettings::deinterlaceAlways        , 0, 0, _l(""), 1,
        _l("deinterlaceAlways"), 0,
        IDFF_swapFields               , &TdeinterlaceSettings::swapfields               , 0, 0, _l(""), 1,
        _l("swapFields"), 0,
        IDFF_deinterlaceMethod        , &TdeinterlaceSettings::cfgId                    , 0, 14, _l(""), 1,
        _l("deinterlaceMethod"), cfgIdDef,
        IDFF_tomocompSE               , &TdeinterlaceSettings::tomsmocompSE             , 0, 30, _l(""), 1,
        _l("tomocompSE"), 3,
        IDFF_tomocompVF               , &TdeinterlaceSettings::tomsmocompVF             , 0, 0, _l(""), 1,
        _l("tomocompVF"), 0,
        IDFF_frameRateDoublerThreshold, &TdeinterlaceSettings::frameRateDoublerThreshold, 0, 255, _l(""), 1,
        _l("frameRateDoublerThreshold"), 255,
        IDFF_frameRateDoublerSE       , &TdeinterlaceSettings::frameRateDoublerSE       , 0, 10, _l(""), 1,
        _l("frameRateDoublerSE"), 3,
        IDFF_kernelDeintThreshold     , &TdeinterlaceSettings::kernelThreshold          , 0, 255, _l(""), 1,
        _l("kernelDeintThreshold"), 10,
        IDFF_kernelDeintSharp         , &TdeinterlaceSettings::kernelSharp              , 0, 0, _l(""), 1,
        _l("kernelDeintSharp"), 0,
        IDFF_kernelDeintTwoway        , &TdeinterlaceSettings::kernelTwoway             , 0, 0, _l(""), 1,
        _l("kernelDeintTwoway"), 0,
        IDFF_kernelDeintMap           , &TdeinterlaceSettings::kernelMap                , 0, 0, _l(""), 1,
        _l("kernelDeintMap"), 0,
        IDFF_kernelDeintLinked        , &TdeinterlaceSettings::kernelLinked             , 0, 0, _l(""), 1,
        _l("kernelDeintLinked"), 0,
        IDFF_dgbobMode                , &TdeinterlaceSettings::dgbobMode                , 0, 2, _l(""), 1,
        _l("dgbobMode"), 1,
        IDFF_dgbobThreshold           , &TdeinterlaceSettings::dgbobThreshold           , 0, 60, _l(""), 1,
        _l("dgbobThreshold"), 12,
        IDFF_dgbobAP                  , &TdeinterlaceSettings::dgbobAP                  , 0, 0, _l(""), 1,
        _l("dgbobAP"), 0,
        IDFF_yadifMode                , &TdeinterlaceSettings::yadifMode                , 0, 3, _l(""), 1,
        _l("yadifMode"), 0,
        IDFF_yadifFieldOrder          , &TdeinterlaceSettings::yadifFieldOrder          , -1, 1, _l(""), 1,
        _l("yadifParity"), -1,
        0
    };
    addOptions(iopts);
    static const TstrOption sopts[] = {
        IDFF_dscalerDIflnm, (TstrVal)&TdeinterlaceSettings::dscalerFlnm, MAX_PATH, 0, _l(""), 1,
        _l("dscalerDIflnm"), _l(""),
        IDFF_dscalerDIcfg , (TstrVal)&TdeinterlaceSettings::dscalerCfg , 512     , 0, _l(""), 1,
        _l("dscalerDIcfg"), _l(""),
        0
    };
    addOptions(sopts);

    static const TcreateParamList2<TmethodProps> listMethod(methodProps, &TmethodProps::name);
    setParamList(IDFF_deinterlaceMethod, &listMethod);
    static const TcreateParamList2<TframerateDoublerSEs> listSE(frameRateDoublerSEs, &TframerateDoublerSEs::name);
    setParamList(IDFF_frameRateDoublerSE, &listSE);
    static const TcreateParamList1 listDGbobMode(dgbobModes);
    setParamList(IDFF_dgbobMode, &listDGbobMode);
    static const TcreateParamList2<TframerateDoublerSEs> listYadifParity(yadifParitySEs, &TframerateDoublerSEs::name);
    setParamList(IDFF_yadifFieldOrder, &listYadifParity);
}
Beispiel #10
0
TmixerSettings::TmixerSettings(TintStrColl *Icoll, TfilterIDFFs *filters): TfilterSettingsAudio(sizeof(*this), Icoll, filters, &idffs)
{
    static const TintOptionT<TmixerSettings> iopts[] = {
        IDFF_isMixer          , &TmixerSettings::is             , 0, 0, _l(""), 1,
        _l("isMixer"), 0,
        IDFF_showMixer        , &TmixerSettings::show           , 0, 0, _l(""), 1,
        _l("showMixer"), 1,
        IDFF_orderMixer       , &TmixerSettings::order          , 1, 1, _l(""), 1,
        _l("orderMixer"), 0,
        IDFF_mixerOut         , &TmixerSettings::out            , 0, 24, _l(""), 1,
        _l("mixerOut"), 1,
        IDFF_normalizeMatrix  , &TmixerSettings::normalizeMatrix, 0, 0, _l(""), 1,
        _l("mixerNormalizeMatrix"), 1,
        IDFF_mixerExpandStereo, &TmixerSettings::expandStereo   , 0, 0, _l(""), 1,
        _l("mixerExpandStereo2"), 0,
        IDFF_mixerVoiceControl, &TmixerSettings::voiceControl   , 0, 0, _l(""), 1,
        _l("mixerVoiceControl2"), 0,
        IDFF_customMatrix     , &TmixerSettings::customMatrix   , 0, 0, _l(""), 1,
        _l("mixerCustomMatrix"), 0,
        IDFF_mixerMatrix00    , &TmixerSettings::matrix00       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix00"), 100000,
        IDFF_mixerMatrix01    , &TmixerSettings::matrix01       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix02"), 0,
        IDFF_mixerMatrix02    , &TmixerSettings::matrix02       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix01"), 0,
        IDFF_mixerMatrix03    , &TmixerSettings::matrix03       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix05"), 0,
        IDFF_mixerMatrix04    , &TmixerSettings::matrix04       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix03"), 0,
        IDFF_mixerMatrix05    , &TmixerSettings::matrix05       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix04"), 0,
        IDFF_mixerMatrix06    , &TmixerSettings::matrix06       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix06"), 0,
        IDFF_mixerMatrix07    , &TmixerSettings::matrix07       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix07"), 0,
        IDFF_mixerMatrix08    , &TmixerSettings::matrix08       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix08"), 0,
        IDFF_mixerMatrix10    , &TmixerSettings::matrix10       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix20"), 0,
        IDFF_mixerMatrix11    , &TmixerSettings::matrix11       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix22"), 100000,
        IDFF_mixerMatrix12    , &TmixerSettings::matrix12       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix21"), 0,
        IDFF_mixerMatrix13    , &TmixerSettings::matrix13       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix25"), 0,
        IDFF_mixerMatrix14    , &TmixerSettings::matrix14       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix23"), 0,
        IDFF_mixerMatrix15    , &TmixerSettings::matrix15       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix24"), 0,
        IDFF_mixerMatrix16    , &TmixerSettings::matrix16       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix26"), 0,
        IDFF_mixerMatrix17    , &TmixerSettings::matrix17       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix27"), 0,
        IDFF_mixerMatrix18    , &TmixerSettings::matrix18       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix28"), 0,
        IDFF_mixerMatrix20    , &TmixerSettings::matrix20       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix10"), 0,
        IDFF_mixerMatrix21    , &TmixerSettings::matrix21       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix12"), 0,
        IDFF_mixerMatrix22    , &TmixerSettings::matrix22       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix11"), 100000,
        IDFF_mixerMatrix23    , &TmixerSettings::matrix23       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix15"), 0,
        IDFF_mixerMatrix24    , &TmixerSettings::matrix24       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix13"), 0,
        IDFF_mixerMatrix25    , &TmixerSettings::matrix25       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix14"), 0,
        IDFF_mixerMatrix26    , &TmixerSettings::matrix26       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix16"), 0,
        IDFF_mixerMatrix27    , &TmixerSettings::matrix27       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix17"), 0,
        IDFF_mixerMatrix28    , &TmixerSettings::matrix28       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix18"), 0,
        IDFF_mixerMatrix30    , &TmixerSettings::matrix30       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix50"), 0,
        IDFF_mixerMatrix31    , &TmixerSettings::matrix31       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix52"), 0,
        IDFF_mixerMatrix32    , &TmixerSettings::matrix32       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix51"), 0,
        IDFF_mixerMatrix33    , &TmixerSettings::matrix33       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix55"), 100000,
        IDFF_mixerMatrix34    , &TmixerSettings::matrix34       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix53"), 0,
        IDFF_mixerMatrix35    , &TmixerSettings::matrix35       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix54"), 0,
        IDFF_mixerMatrix36    , &TmixerSettings::matrix36       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix56"), 0,
        IDFF_mixerMatrix37    , &TmixerSettings::matrix37       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix57"), 0,
        IDFF_mixerMatrix38    , &TmixerSettings::matrix38       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix58"), 0,
        IDFF_mixerMatrix40    , &TmixerSettings::matrix40       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix30"), 0,
        IDFF_mixerMatrix41    , &TmixerSettings::matrix41       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix32"), 0,
        IDFF_mixerMatrix42    , &TmixerSettings::matrix42       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix31"), 0,
        IDFF_mixerMatrix43    , &TmixerSettings::matrix43       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix35"), 0,
        IDFF_mixerMatrix44    , &TmixerSettings::matrix44       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix33"), 100000,
        IDFF_mixerMatrix45    , &TmixerSettings::matrix45       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix34"), 0,
        IDFF_mixerMatrix46    , &TmixerSettings::matrix46       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix36"), 0,
        IDFF_mixerMatrix47    , &TmixerSettings::matrix47       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix37"), 0,
        IDFF_mixerMatrix48    , &TmixerSettings::matrix48       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix38"), 0,
        IDFF_mixerMatrix50    , &TmixerSettings::matrix50       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix40"), 0,
        IDFF_mixerMatrix51    , &TmixerSettings::matrix51       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix42"), 0,
        IDFF_mixerMatrix52    , &TmixerSettings::matrix52       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix41"), 0,
        IDFF_mixerMatrix53    , &TmixerSettings::matrix53       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix45"), 0,
        IDFF_mixerMatrix54    , &TmixerSettings::matrix54       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix43"), 0,
        IDFF_mixerMatrix55    , &TmixerSettings::matrix55       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix44"), 100000,
        IDFF_mixerMatrix56    , &TmixerSettings::matrix56       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix46"), 0,
        IDFF_mixerMatrix57    , &TmixerSettings::matrix57       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix47"), 0,
        IDFF_mixerMatrix58    , &TmixerSettings::matrix58       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix48"), 0,
        IDFF_mixerMatrix60    , &TmixerSettings::matrix60       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix60"), 0,
        IDFF_mixerMatrix61    , &TmixerSettings::matrix61       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix62"), 0,
        IDFF_mixerMatrix62    , &TmixerSettings::matrix62       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix61"), 0,
        IDFF_mixerMatrix63    , &TmixerSettings::matrix63       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix65"), 0,
        IDFF_mixerMatrix64    , &TmixerSettings::matrix64       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix63"), 0,
        IDFF_mixerMatrix65    , &TmixerSettings::matrix65       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix64"), 0,
        IDFF_mixerMatrix66    , &TmixerSettings::matrix66       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix66"), 100000,
        IDFF_mixerMatrix67    , &TmixerSettings::matrix67       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix67"), 0,
        IDFF_mixerMatrix68    , &TmixerSettings::matrix68       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix68"), 0,
        IDFF_mixerMatrix70    , &TmixerSettings::matrix70       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix70"), 0,
        IDFF_mixerMatrix71    , &TmixerSettings::matrix71       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix72"), 0,
        IDFF_mixerMatrix72    , &TmixerSettings::matrix72       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix71"), 0,
        IDFF_mixerMatrix73    , &TmixerSettings::matrix73       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix75"), 0,
        IDFF_mixerMatrix74    , &TmixerSettings::matrix74       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix73"), 0,
        IDFF_mixerMatrix75    , &TmixerSettings::matrix75       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix74"), 0,
        IDFF_mixerMatrix76    , &TmixerSettings::matrix76       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix76"), 0,
        IDFF_mixerMatrix77    , &TmixerSettings::matrix77       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix77"), 100000,
        IDFF_mixerMatrix78    , &TmixerSettings::matrix78       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix78"), 0,
        IDFF_mixerMatrix80    , &TmixerSettings::matrix80       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix80"), 0,
        IDFF_mixerMatrix81    , &TmixerSettings::matrix81       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix82"), 0,
        IDFF_mixerMatrix82    , &TmixerSettings::matrix82       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix81"), 0,
        IDFF_mixerMatrix83    , &TmixerSettings::matrix83       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix85"), 0,
        IDFF_mixerMatrix84    , &TmixerSettings::matrix84       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix83"), 0,
        IDFF_mixerMatrix85    , &TmixerSettings::matrix85       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix84"), 0,
        IDFF_mixerMatrix86    , &TmixerSettings::matrix86       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix86"), 0,
        IDFF_mixerMatrix87    , &TmixerSettings::matrix87       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix87"), 0,
        IDFF_mixerMatrix88    , &TmixerSettings::matrix88       , -4 * 100000, 4 * 100000, _l(""), 1,
        _l("mixerMatrix88"), 100000,
        IDFF_mixerClev        , &TmixerSettings::clev           , 0, 3200, _l(""), 1,
        _l("mixerClev"), 100,
        IDFF_mixerSlev        , &TmixerSettings::slev           , 0, 3200, _l(""), 1,
        _l("mixerSlev"), 100,
        IDFF_mixerLFElev      , &TmixerSettings::lfelev         , 0, 3200, _l(""), 1,
        _l("mixerLFElev"), 100,
        IDFF_headphone_dim    , &TmixerSettings::headphone_dim  , 0, 100, _l(""), 1,
        _l("headphone_dim"), 10,
        0
    };
    addOptions(iopts);
    static const TcreateParamList2<TchConfig> listMixerOut(chConfigs, &TchConfig::name);
    setParamList(IDFF_mixerOut, &listMixerOut);
}
Beispiel #11
0
TlevelsSettings::TlevelsSettings(TintStrColl *Icoll, TfilterIDFFs *filters): TfilterSettingsVideo(sizeof(*this), Icoll, filters, &idffs)
{
    static const TintOptionT<TlevelsSettings> iopts[] = {
        IDFF_isLevels       , &TlevelsSettings::is      , 0, 0, _l(""), 1,
        _l("isLevels"), 0,
        IDFF_showLevels     , &TlevelsSettings::show    , 0, 0, _l(""), 1,
        _l("showLevels"), 1,
        IDFF_orderLevels    , &TlevelsSettings::order   , 1, 1, _l(""), 1,
        _l("orderLevels"), 0,
        IDFF_fullLevels     , &TlevelsSettings::full    , 0, 0, _l(""), 1,
        _l("fullLevels"), 0,
        IDFF_halfLevels     , &TlevelsSettings::half    , 0, 0, _l(""), 1,
        _l("halfLevels"), 0,
        IDFF_levelsMode     , &TlevelsSettings::mode    , 0, 6, _l(""), 1,
        _l("levelsMode"), 0,
        IDFF_levelsForceRGB , &TlevelsSettings::forceRGB, 0, 0, _l(""), 1,
        _l("levelsForceRGB"), 0,
        IDFF_levelsGamma    , &TlevelsSettings::gamma   , 1, 400, _l(""), 1,
        _l("levelsGamma"), 100,
        IDFF_levelsPosterize, &TlevelsSettings::posterize, 2, 255, _l(""), 1,
        _l("levelsPosterize"), 255,
        IDFF_levelsYmaxDelta, &TlevelsSettings::YmaxDelta, 1, 255, _l(""), 1,
        _l("YmaxDelta"), 20,
        IDFF_levelsYthreshold, &TlevelsSettings::Ythreshold, 1, 255, _l(""), 1,
        _l("Ythreshold"), 10,
        IDFF_levelsYtemporal, &TlevelsSettings::Ytemporal, 1, 10, _l(""), 1,
        _l("Ytemporal"), 3,
        IDFF_levelsInMin    , &TlevelsSettings::inMin   , -3, -3, _l(""), 1,
        _l("levelsInMin"), 0,
        IDFF_levelsInMax    , &TlevelsSettings::inMax   , -3, -3, _l(""), 1,
        _l("levelsInMax"), 255,
        IDFF_levelsOutMin   , &TlevelsSettings::outMin  , -3, -3, _l(""), 1,
        _l("levelsOutMin"), 0,
        IDFF_levelsOutMax   , &TlevelsSettings::outMax  , -3, -3, _l(""), 1,
        _l("levelsOutMax"), 255,
        IDFF_levelsOnlyLuma , &TlevelsSettings::onlyLuma, 0, 0, _l(""), 1,
        _l("levelsOnlyLuma"), 0,
        IDFF_levelsFullY    , &TlevelsSettings::fullY   , 0, 0, _l(""), 1,
        _l("levelsFullY"), 0,
        IDFF_levelsInAuto   , &TlevelsSettings::inAuto  , 0, 0, _l(""), 1,
        _l("levelsInAuto"), 0,
        IDFF_levelsNumPoints, &TlevelsSettings::numPoints , 2, 10, _l(""), 1,
        _l("levelsNumPoints"), 2,
        IDFF_levelsPoint0x  , &TlevelsSettings::point0x   , 0, 255, _l(""), 1,
        _l("levelsPoint0x"), 0,
        IDFF_levelsPoint0y  , &TlevelsSettings::point0y   , 0, 255, _l(""), 1,
        _l("levelsPoint0y"), 0,
        IDFF_levelsPoint1x  , &TlevelsSettings::point1x   , 0, 255, _l(""), 1,
        _l("levelsPoint1x"), 255,
        IDFF_levelsPoint1y  , &TlevelsSettings::point1y   , 0, 255, _l(""), 1,
        _l("levelsPoint1y"), 255,
        IDFF_levelsPoint2x  , &TlevelsSettings::point2x   , 0, 255, _l(""), 1,
        _l("levelsPoint2x"), 0,
        IDFF_levelsPoint2y  , &TlevelsSettings::point2y   , 0, 255, _l(""), 1,
        _l("levelsPoint2y"), 0,
        IDFF_levelsPoint3x  , &TlevelsSettings::point3x   , 0, 255, _l(""), 1,
        _l("levelsPoint3x"), 0,
        IDFF_levelsPoint3y  , &TlevelsSettings::point3y   , 0, 255, _l(""), 1,
        _l("levelsPoint3y"), 0,
        IDFF_levelsPoint4x  , &TlevelsSettings::point4x   , 0, 255, _l(""), 1,
        _l("levelsPoint4x"), 0,
        IDFF_levelsPoint4y  , &TlevelsSettings::point4y   , 0, 255, _l(""), 1,
        _l("levelsPoint4y"), 0,
        IDFF_levelsPoint5x  , &TlevelsSettings::point5x   , 0, 255, _l(""), 1,
        _l("levelsPoint5x"), 0,
        IDFF_levelsPoint5y  , &TlevelsSettings::point5y   , 0, 255, _l(""), 1,
        _l("levelsPoint5y"), 0,
        IDFF_levelsPoint6x  , &TlevelsSettings::point6x   , 0, 255, _l(""), 1,
        _l("levelsPoint6x"), 0,
        IDFF_levelsPoint6y  , &TlevelsSettings::point6y   , 0, 255, _l(""), 1,
        _l("levelsPoint6y"), 0,
        IDFF_levelsPoint7x  , &TlevelsSettings::point7x   , 0, 255, _l(""), 1,
        _l("levelsPoint7x"), 0,
        IDFF_levelsPoint7y  , &TlevelsSettings::point7y   , 0, 255, _l(""), 1,
        _l("levelsPoint7y"), 0,
        IDFF_levelsPoint8x  , &TlevelsSettings::point8x   , 0, 255, _l(""), 1,
        _l("levelsPoint8x"), 0,
        IDFF_levelsPoint8y  , &TlevelsSettings::point8y   , 0, 255, _l(""), 1,
        _l("levelsPoint8y"), 0,
        IDFF_levelsPoint9x  , &TlevelsSettings::point9x   , 0, 255, _l(""), 1,
        _l("levelsPoint9x"), 0,
        IDFF_levelsPoint9y  , &TlevelsSettings::point9y   , 0, 255, _l(""), 1,
        _l("levelsPoint9y"), 0,
        0
    };
    addOptions(iopts);

    static const TcreateParamList1 listMode(modes);
    setParamList(IDFF_levelsMode, &listMode);
}