Beispiel #1
0
Twinamp2settings::Twinamp2settings(TintStrColl *Icoll, TfilterIDFFs *filters): TfilterSettingsAudio(sizeof(*this), Icoll, filters, &idffs)
{
    memset(flnm, 0, sizeof(flnm));
    memset(modulename, 0, sizeof(modulename));
    static const TintOptionT<Twinamp2settings> iopts[] = {
        IDFF_isWinamp2    , &Twinamp2settings::is    , 0, 0, _l(""), 1,
        _l("isWinamp2"), 0,
        IDFF_showWinamp2  , &Twinamp2settings::show  , 0, 0, _l(""), 1,
        _l("showWinamp2"), 1,
        IDFF_orderWinamp2 , &Twinamp2settings::order , 1, 1, _l(""), 1,
        _l("orderWinamp2"), 0,
        IDFF_winamp32bit  , &Twinamp2settings::winamp32bit, 0, 0, _l(""), 1,
        _l("winamp32bit"), 0,
        0
    };
    addOptions(iopts);
    static const TstrOption sopts[] = {
        IDFF_winamp2flnm                     , (TstrVal)&Twinamp2settings::flnm                     , MAX_PATH                     , 0 , _l(""), 1,
        _l("winamp2flnm"), _l(""),
        IDFF_winamp2filtername               , (TstrVal)&Twinamp2settings::modulename               , 256                          , 0 , _l(""), 1,
        _l("winamp2filtername"), _l(""),
        IDFF_winamp2allowMultichannelOnlyIn  , (TstrVal)&Twinamp2settings::allowMultichannelOnlyIn  , MAX_COMPATIBILITYLIST_LENGTH , 0 , _l(""), 1,
        _l("allowMultichannelOnlyIn"), _l("dsp_dfx.dll"),
        0
    };
    addOptions(sopts);
}
bool Kleo::SymCryptRunProcessBase::launch( const QByteArray & input, bool block ) {
  connect( this, SIGNAL(readyReadStandardOutput()),
           this, SLOT(slotReadyReadStandardOutput()) );
  connect( this, SIGNAL(readyReadStandardError()),
           this, SLOT(slotReadyReadStandardError()) );
  if ( block ) {
    KTemporaryFile tempfile;
    if ( tempfile.open() )
      tempfile.write( input );
    else
      return false;
    tempfile.flush();
    *this << "--input" << tempfile.fileName();
    addOptions();
    if(KProcess::execute() == -2)
        return false;
  } else {
    addOptions();
    KProcess::start();
    const bool ok = waitForStarted();
    if ( !ok )
      return ok;
    mInput = input;
    write( mInput );
    closeWriteChannel();
  }
  return true;
}
Beispiel #3
0
// we need the size (IsizeofthisAll) parameter from inheriting class:
// otherwise, if we would use the size of the base class, additional parameters that belongs to the
// inheriting class will be stored beyond the memory size that allocated for the base class,
// and thus the inheriting class parameters won't be copied during base class operations.
TOSDsettings::TOSDsettings(size_t IsizeofthisAll, TintStrColl *Icoll, TfilterIDFFs *filters):
    TfilterSettingsVideo(IsizeofthisAll, Icoll, filters, &idffs)
{
    full = 0;
    half = 0;
    static const TintOptionT<TOSDsettings> iopts[] = {
        IDFF_isOSD                     , &TOSDsettings::is            , 0, 0, _l(""), 1,
        _l("isOSD"), 0,
        IDFF_showOSD                   , &TOSDsettings::show          , 0, 0, _l(""), 1,
        _l("showOSD"), 1,
        IDFF_orderOSD                  , &TOSDsettings::order         , 1, 1, _l(""), 1,
        _l("orderOSD"), 0,
        IDFF_OSDisAutoHide            , &TOSDsettings::isAutoHide    , 0, 0, _l(""), 1,
        _l("OSDisAutoHide"), 0,
        IDFF_OSDdurationVisible       , &TOSDsettings::durationVisible, 1, 10000, _l(""), 1,
        _l("OSDdurationVisible"), 100,
        IDFF_OSDisSave                 , &TOSDsettings::isSave        , 0, 0, _l(""), 1,
        _l("OSDisSave"), 0,
        IDFF_OSDsaveOnly               , &TOSDsettings::saveOnly      , 0, 0, _l(""), 1,
        _l("OSDsaveOnly"), 0,
        0
    };
    addOptions(iopts);
    static const TstrOption sopts[] = {
        IDFF_OSDformat, (TstrVal)&TOSDsettings::format          , 1024     , 0 , _l(""), 1,
        _l("OSDformat"), _l(""),
        IDFF_OSDsaveFlnm   , (TstrVal)&TOSDsettings::saveFlnm   , MAX_PATH , 0 , _l(""), 1,
        _l("OSDsaveFlnm"), _l(""),
        0
    };
    addOptions(sopts);
}
Beispiel #4
0
TwarpsharpSettings::TwarpsharpSettings(TintStrColl *Icoll, TfilterIDFFs *filters): TfilterSettingsVideo(sizeof(*this), Icoll, filters, &idffs)
{
    static const TintOptionT<TwarpsharpSettings> iopts[] = {
        IDFF_isWarpsharp          , &TwarpsharpSettings::is                , 0, 0, _l(""), 1,
        _l("isWarpsharp"), 0,
        IDFF_showWarpsharp        , &TwarpsharpSettings::show              , 0, 0, _l(""), 1,
        _l("showWarpsharp"), 1,
        IDFF_orderWarpsharp       , &TwarpsharpSettings::order             , 1, 1, _l(""), 1,
        _l("orderWarpsharp"), 0,
        IDFF_fullWarpsharp        , &TwarpsharpSettings::full              , 0, 0, _l(""), 1,
        _l("fullWarpsharp"), 0,
        IDFF_halfWarpsharp        , &TwarpsharpSettings::half              , 0, 0, _l(""), 1,
        _l("halfWarpsharp"), 0,
        IDFF_warpsharpMethod      , &TwarpsharpSettings::method            , 0, 1, _l(""), 1,
        _l("warpsharpMethod"), 0,
        IDFF_warpsharpDepth       , &TwarpsharpSettings::warpsharpDepth    , 0, 255, _l(""), 1,
        _l("warpsharpDepth"), warpsharpDepthDef,
        IDFF_warpsharpThreshold   , &TwarpsharpSettings::warpsharpThreshold, 0, 255, _l(""), 1,
        _l("warpsharpThreshold"), warpsharpThresholdDef,
        IDFF_awarpsharpDepth      , &TwarpsharpSettings::awarpsharpDepth   , 0, 6400, _l(""), 1,
        _l("awarpsharpDepth"), 1600,
        IDFF_awarpsharpThresh     , &TwarpsharpSettings::awarpsharpThresh  , 0, 99, _l(""), 1,
        _l("awarpsharpThresh"), 50,
        IDFF_awarpsharpBlur       , &TwarpsharpSettings::awarpsharpBlur    , 0, 4, _l(""), 1,
        _l("awarpsharpBlur"), 2,
        IDFF_awarpsharpCM         , &TwarpsharpSettings::awarpsharpCM      , 0, 2, _l(""), 1,
        _l("awarpsharpCM"), 0,
        IDFF_awarpsharpBM         , &TwarpsharpSettings::awarpsharpBM      , 0, 2, _l(""), 1,
        _l("awarpsharpBM"), 2,
        0
    };
    addOptions(iopts);
}
void SelectPokemonMenu::populate(){

    addOptions();
    setContinueButton();
    setBackButton();

}
Beispiel #6
0
TeqSettings::TeqSettings(TintStrColl *Icoll, TfilterIDFFs *filters): TfilterSettingsAudio(sizeof(*this), Icoll, filters, &idffs)
{
    static const TintOptionT<TeqSettings> iopts[] = {
        IDFF_isEQ      , &TeqSettings::is    , 0, 0, _l(""), 1,
        _l("isEQ"), 0,
        IDFF_showEQ    , &TeqSettings::show  , 0, 0, _l(""), 1,
        _l("showEQ"), 1,
        IDFF_orderEQ   , &TeqSettings::order , 1, 1, _l(""), 1,
        _l("orderEQ"), 0,
        IDFF_eqSuper   , &TeqSettings::super , 0, 0, _l(""), 1,
        _l("eqSuper"), 0,
        IDFF_eq0       , &TeqSettings::eq0   , 0, 200, _l(""), 1,
        _l("eq0"), 100,
        IDFF_eq1       , &TeqSettings::eq1   , 0, 200, _l(""), 1,
        _l("eq1"), 100,
        IDFF_eq2       , &TeqSettings::eq2   , 0, 200, _l(""), 1,
        _l("eq2"), 100,
        IDFF_eq3       , &TeqSettings::eq3   , 0, 200, _l(""), 1,
        _l("eq3"), 100,
        IDFF_eq4       , &TeqSettings::eq4   , 0, 200, _l(""), 1,
        _l("eq4"), 100,
        IDFF_eq5       , &TeqSettings::eq5   , 0, 200, _l(""), 1,
        _l("eq5"), 100,
        IDFF_eq6       , &TeqSettings::eq6   , 0, 200, _l(""), 1,
        _l("eq6"), 100,
        IDFF_eq7       , &TeqSettings::eq7   , 0, 200, _l(""), 1,
        _l("eq7"), 100,
        IDFF_eq8       , &TeqSettings::eq8   , 0, 200, _l(""), 1,
        _l("eq8"), 100,
        IDFF_eq9       , &TeqSettings::eq9   , 0, 200, _l(""), 1,
        _l("eq9"), 100,
        IDFF_eqLowdb   , &TeqSettings::lowdb , -10000, 10000, _l(""), 1,
        _l("eqLowdb"), -1200,
        IDFF_eqHighdb  , &TeqSettings::highdb, -10000, 10000, _l(""), 1,
        _l("eqHighdb"), 1200,
        IDFF_eq0freq   , &TeqSettings::f0    , 100, 192000 * 100, _l(""), 1,
        _l("eq0freq"), int(F[0] * 100),
        IDFF_eq1freq   , &TeqSettings::f1    , 100, 192000 * 100, _l(""), 1,
        _l("eq1freq"), int(F[1] * 100),
        IDFF_eq2freq   , &TeqSettings::f2    , 100, 192000 * 100, _l(""), 1,
        _l("eq2freq"), int(F[2] * 100),
        IDFF_eq3freq   , &TeqSettings::f3    , 100, 192000 * 100, _l(""), 1,
        _l("eq3freq"), int(F[3] * 100),
        IDFF_eq4freq   , &TeqSettings::f4    , 100, 192000 * 100, _l(""), 1,
        _l("eq4freq"), int(F[4] * 100),
        IDFF_eq5freq   , &TeqSettings::f5    , 100, 192000 * 100, _l(""), 1,
        _l("eq5freq"), int(F[5] * 100),
        IDFF_eq6freq   , &TeqSettings::f6    , 100, 192000 * 100, _l(""), 1,
        _l("eq6freq"), int(F[6] * 100),
        IDFF_eq7freq   , &TeqSettings::f7    , 100, 192000 * 100, _l(""), 1,
        _l("eq7freq"), int(F[7] * 100),
        IDFF_eq8freq   , &TeqSettings::f8    , 100, 192000 * 100, _l(""), 1,
        _l("eq8freq"), int(F[8] * 100),
        IDFF_eq9freq   , &TeqSettings::f9    , 100, 192000 * 100, _l(""), 1,
        _l("eq9freq"), int(F[9] * 100),
        0
    };
    addOptions(iopts);
}
MessageStorePlugin::StoreOptions::StoreOptions(const std::string& name) :
    qpid::Options(name)
{
    addOptions()
        ("storage-provider", qpid::optValue(providerName, "PROVIDER"),
         "Name of the storage provider to use.")
        ;
}
Beispiel #8
0
	int Program::run(int argc, char **argv)
	{
		setLocale();
#ifdef WIN32
		auto command_line = po::split_winmain(ucsToUtf8(wstring(GetCommandLine())));
		command_line.erase(command_line.begin());
#else
		vector<string> command_line;
		command_line.resize(argc - 1);
		for (int i = 1; i < argc; i++) {
			command_line[i - 1] = argv[i];
		}
#endif
		auto command_name = getCommandName(command_line);
		if (!command_name.first) return EXIT_FAILURE;

		if (command_name.first && command_name.second == ""){
			printHelp();
			return EXIT_FAILURE;
		}
		auto command = findCommand(command_name.second.c_str());
		if (!command){
			cerr << program_name << ": " << "unknown command '" << command_name.second << "'" << "\n";
			printHelp();
			return EXIT_FAILURE;
		}

		try{
			po::options_description all_options, global_options, options, hidden_options;
			po::positional_options_description positional_options;
			string command_confirm;
			addGlobalOptions(global_options);
			hidden_options.add_options()
				("command",  po::value<string>(&command_confirm), "")
			;
			positional_options.add("command", 1);
			command->addOptions(options, hidden_options);
			command->addPositionalOptions(positional_options);
			all_options.add(global_options).add(options).add(hidden_options);
			auto parsed = po::command_line_parser(command_line).options(all_options).positional(positional_options).run();
			po::variables_map vm;
			po::store(parsed, vm);
			po::notify(vm);
			if (vm.count("help")) {
				printHelp(*command);
				return EXIT_SUCCESS;
			}
			if (!command->checkOptions(vm)){
				printHelp(*command);
				return EXIT_FAILURE;
			}
			return command->run();
		}catch(const exception &e){
			cerr << program_name << ": " << e.what() << "\n";
			return EXIT_FAILURE;
		}
	}
Beispiel #9
0
void TreeModel::setupModelData(TreeItem *parent)
{
    QList<TreeItem*> parents;
    parents << parent;
	m_numRows = 0;
	addOptions(parents);
	addLights(parents);
	qDebug()<<"row count "<<m_numRows;
}
Beispiel #10
0
Widget::Widget(QWidget *parent)
    : QWidget(parent)
{
    QVBoxLayout *layout = new QVBoxLayout;
    QSplitter *vsplit = new QSplitter(Qt::Vertical);
    layout->addWidget(vsplit);

    QSplitter *hsplit = new QSplitter;

    QVBoxLayout *settingsLayout = new QVBoxLayout;
    addVersions(settingsLayout);
    addProfiles(settingsLayout);
    addOptions(settingsLayout);
    addRenderableTypes(settingsLayout);
    hsplit->addWidget(widgetWithLayout(settingsLayout));

    QVBoxLayout *outputLayout = new QVBoxLayout;
    m_output = new QTextEdit;
    m_output->setReadOnly(true);
    outputLayout->addWidget(m_output);
    m_extensions = new QTextEdit;
    m_extensions->setReadOnly(true);
    outputLayout->addWidget(m_extensions);
    hsplit->addWidget(widgetWithLayout(outputLayout));

    hsplit->setStretchFactor(0, 4);
    hsplit->setStretchFactor(1, 6);
    vsplit->addWidget(hsplit);

    m_renderWindowLayout = new QVBoxLayout;
    vsplit->addWidget(widgetWithLayout(m_renderWindowLayout));
    vsplit->setStretchFactor(1, 5);

    m_renderWindowContainer = new QWidget;
    addRenderWindow();

    QString description;
    QTextStream str(&description);
    str << "Qt " << QT_VERSION_STR << ' ' << QGuiApplication::platformName();
    const char *openGlVariables[] =
        {"QT_ANGLE_PLATFORM", "QT_OPENGL", "QT_OPENGL_BUGLIST", "QT_OPENGL_DLL"};
    const size_t variableCount = sizeof(openGlVariables) / sizeof(openGlVariables[0]);
    for (size_t v = 0; v < variableCount; ++v) {
        if (qEnvironmentVariableIsSet(openGlVariables[v]))
            str << ' ' << openGlVariables[v] << '=' << qgetenv(openGlVariables[v]);
    }
    if (QCoreApplication::testAttribute(Qt::AA_UseOpenGLES))
        str << " Qt::AA_UseOpenGLES";
    if (QCoreApplication::testAttribute(Qt::AA_UseSoftwareOpenGL))
        str << " Qt::AA_UseSoftwareOpenGL";
    if (QCoreApplication::testAttribute(Qt::AA_UseDesktopOpenGL))
        str << " Qt::AA_UseSoftwareOpenGL";
    layout->addWidget(new QLabel(description));

    setLayout(layout);
}
Beispiel #11
0
 Args() : queue("test-queue"), messages(0), ignoreDuplicates(false), creditWindow(0), ackFrequency(1), browse(false)
 {
     addOptions()
         ("queue", qpid::optValue(queue, "QUEUE NAME"), "Queue from which to request messages")
         ("messages", qpid::optValue(messages, "N"), "Number of messages to receive; 0 means receive indefinitely")
         ("ignore-duplicates", qpid::optValue(ignoreDuplicates), "Detect and ignore duplicates (by checking 'sn' header)")
         ("credit-window", qpid::optValue(creditWindow, "N"), "Credit window (0 implies infinite window)")
         ("ack-frequency", qpid::optValue(ackFrequency, "N"), "Ack frequency (0 implies none of the messages will get accepted)")
         ("browse", qpid::optValue(browse), "Browse rather than consuming");
 }
Beispiel #12
0
SslOptions::SslOptions() : qpid::Options("SSL Settings"), 
                           certName(defaultCertName()),
                           exportPolicy(false)
{
    addOptions()
        ("ssl-use-export-policy", optValue(exportPolicy), "Use NSS export policy")
        ("ssl-cert-password-file", optValue(certPasswordFile, "PATH"), "File containing password to use for accessing certificate database")
        ("ssl-cert-db", optValue(certDbPath, "PATH"), "Path to directory containing certificate database")
        ("ssl-cert-name", optValue(certName, "NAME"), "Name of the certificate to use");
}
Beispiel #13
0
int MatchingApplication::match() {
    try{
        addOptions();
        processArguments();
        initConfiguration();

        // Cleaning
        if(w_)
            delete w_;
        if(g1_)
            delete g1_;
        if(g2_)
            delete g2_;
        if(gl1_)
            delete gl1_;
        if(gl2_)
            delete gl2_;
        w_ = 0;
        g1_ = g2_ = 0;
        gl1_ = gl2_ = 0;

        // Check number of arguments
        QStringList args = positionalArguments();
        if(args.size() != 2)
            Exception(QString("You must provide exactly two %1 (%2 given)").arg(isMultiMatching_?"directories":"graphs").arg(args.size()));

        // Loading weights and graphs
        w_ = new Weights(cfg_->substitution, cfg_->creation);
        if(isMultiMatching_) {
            gl1_ = new GraphList(QDir(args.at(0)), cfg_->ext);
            gl2_ = (args.at(0).compare(args.at(1)) == 0)? gl1_ : new GraphList(QDir(args.at(1)), cfg_->ext);
        } else {
            g1_ = new Graph(args.at(0));
            g2_ = new Graph(args.at(1));
        }
        initMatrix();
        QThreadPool::globalInstance()->setMaxThreadCount(cfg_->parallelInstances);

        // Running the matching(s)
        if(isMultiMatching_) {
            for(auto i : *gl1_)
                for(auto j : *gl2_)
                    if((gl1_ != gl2_) || (j->getIndex() > i->getIndex()))
                        queue_.enqueue(qMakePair(i,j));
        } else {
            queue_.enqueue(qMakePair(g1_, g2_));
        }
        populate();

        return exec();
    } catch(std::exception &e) {
        error(e);
    }
    return EXIT_FAILURE;
}
Beispiel #14
0
 Args() : workQueue("txshift-control"), source("txshift-1"), dest("txshift-2"), messages(0), jobs(0),
          quit(false), declareQueues(false)
 {
     addOptions()
         ("messages", qpid::optValue(messages, "N"), "Number of messages to shift")
         ("jobs", qpid::optValue(jobs, "N"), "Number of shift jobs to request")
         ("source", qpid::optValue(source, "QUEUE NAME"), "source queue from which messages will be shifted")
         ("dest", qpid::optValue(dest, "QUEUE NAME"), "dest queue to which messages will be shifted")
         ("work-queue", qpid::optValue(workQueue, "QUEUE NAME"), "work queue from which to take instructions")
         ("add-quit", qpid::optValue(quit), "add a 'quit' instruction to the queue (after any other jobs)")
         ("declare-queues", qpid::optValue(declareQueues), "issue a declare for all queues");
 }
Beispiel #15
0
 Args() : qpid::Options("Random data generator"),
          count(1), minSize(8), maxSize(4096),
          minChar(32), maxChar(126),//safely printable ascii chars
          help(false)
 {
     addOptions()
         ("count", qpid::optValue(count, "N"), "number of data strings to generate")
         ("min-size", qpid::optValue(minSize, "N"), "minimum size of data string")
         ("max-size", qpid::optValue(maxSize, "N"), "maximum size of data string")
         ("min-char", qpid::optValue(minChar, "N"), "minimum char value used in data string")
         ("max-char", qpid::optValue(maxChar, "N"), "maximum char value used in data string")
         ("help", qpid::optValue(help), "print this usage statement");
 }
 Options(const std::string& argv0=std::string())
     : qpid::Options("Options"),
       help(false),
       url("127.0.0.1"),
       timeout(0),
       forever(false),
       messages(0),
       ignoreDuplicates(false),
       verifySequence(false),
       checkRedelivered(false),
       capacity(1000),
       ackFrequency(100),
       tx(0),
       rollbackFrequency(0),
       printContent(true),
       printHeaders(false),
       failoverUpdates(false),
       log(argv0),
       reportTotal(false),
       reportEvery(0),
       reportHeader(true),
       receiveRate(0),
       noReplies(false)
 {
     addOptions()
         ("broker,b", qpid::optValue(url, "URL"), "url of broker to connect to")
         ("address,a", qpid::optValue(address, "ADDRESS"), "address to receive from")
         ("connection-options", qpid::optValue(connectionOptions, "OPTIONS"), "options for the connection")
         ("timeout", qpid::optValue(timeout, "TIMEOUT"), "timeout in seconds to wait before exiting")
         ("forever,f", qpid::optValue(forever), "ignore timeout and wait forever")
         ("messages,m", qpid::optValue(messages, "N"), "Number of messages to receive; 0 means receive indefinitely")
         ("ignore-duplicates", qpid::optValue(ignoreDuplicates), "Detect and ignore duplicates (by checking 'sn' header)")
         ("verify-sequence", qpid::optValue(verifySequence), "Verify there are no gaps in the message sequence (by checking 'sn' header)")
         ("check-redelivered", qpid::optValue(checkRedelivered), "Fails with exception if a duplicate is not marked as redelivered (only relevant when ignore-duplicates is selected)")
         ("capacity", qpid::optValue(capacity, "N"), "Pre-fetch window (0 implies no pre-fetch)")
         ("ack-frequency", qpid::optValue(ackFrequency, "N"), "Ack frequency (0 implies none of the messages will get accepted)")
         ("tx", qpid::optValue(tx, "N"), "batch size for transactions (0 implies transaction are not used)")
         ("rollback-frequency", qpid::optValue(rollbackFrequency, "N"), "rollback frequency (0 implies no transaction will be rolledback)")
         ("print-content", qpid::optValue(printContent, "yes|no"), "print out message content")
         ("print-headers", qpid::optValue(printHeaders, "yes|no"), "print out message headers")
         ("failover-updates", qpid::optValue(failoverUpdates), "Listen for membership updates distributed via amq.failover")
         ("report-total", qpid::optValue(reportTotal), "Report total throughput and latency statistics")
         ("report-every", qpid::optValue(reportEvery,"N"), "Report throughput and latency statistics every N messages.")
         ("report-header", qpid::optValue(reportHeader, "yes|no"), "Headers on report.")
         ("ready-address", qpid::optValue(readyAddress, "ADDRESS"), "send a message to this address when ready to receive")
         ("receive-rate", qpid::optValue(receiveRate,"N"), "Receive at rate of N messages/second. 0 means receive as fast as possible.")
         ("reply-to", qpid::optValue(replyto, "REPLY-TO"), "specify reply-to address on response messages")
         ("ignore-reply-to", qpid::optValue(noReplies), "Do not send replies even if reply-to is set")
         ("help", qpid::optValue(help), "print this usage statement");
     add(log);
 }
Beispiel #17
0
int main() {
	struct confModules *foo;
	int x;
	
	foo=newConfModules();
	addAlias(foo,"eth0","eepro100",CM_REPLACE);
	addAlias(foo,"eth0","tulip",CM_COMMENT);
	addOptions(foo,"eth0","debug=foo",0);
	addLine(foo,"alias parport_lowlevel parport_pc",CM_COMMENT);
	writeConfModules(foo,"foomod");
	printf("=%s=\n",getAlias(foo,"eth0"));
	printf("=%s=\n",getAlias(foo,"scuzzy_hostadapter"));
	freeConfModules(foo);
}
TdolbyDecoderSettings::TdolbyDecoderSettings(TintStrColl *Icoll,TfilterIDFFs *filters):TfilterSettingsAudio(sizeof(*this),Icoll,filters,&idffs)
{
    static const TintOptionT<TdolbyDecoderSettings> iopts[]= {
        IDFF_isDolbyDecoder    ,&TdolbyDecoderSettings::is   ,0,0,_l(""),1,
        _l("isDolbyDecoder"),0,
        IDFF_showDolbyDecoder  ,&TdolbyDecoderSettings::show ,0,0,_l(""),1,
        _l("showDolbyDecoder"),1,
        IDFF_orderDolbyDecoder ,&TdolbyDecoderSettings::order,1,1,_l(""),1,
        _l("orderDolbyDecoder"),0,
        IDFF_dolbyDecoderDelay ,&TdolbyDecoderSettings::delay,0,1000,_l(""),1,
        _l("dolbyDecoderDelay"),20,
        0
    };
    addOptions(iopts);
}
Beispiel #19
0
    DaemonOptions() : qpid::Options("Daemon options"), daemon(false), quit(false), check(false), wait(600), transport(TCP)
    {
        char *home = ::getenv("HOME");

        if (home == 0)
            piddir += "/tmp";
        else
            piddir += home;
        piddir += "/.qpidd";

        addOptions()
            ("daemon,d", pure_switch(daemon), "Run as a daemon. Logs to syslog by default in this mode.")
            ("transport", optValue(transport, "TRANSPORT"), "The transport for which to return the port")
            ("pid-dir", optValue(piddir, "DIR"), "Directory where port-specific PID file is stored")
            ("wait,w", optValue(wait, "SECONDS"), "Sets the maximum wait time to initialize or shutdown the daemon. If the daemon fails to initialize/shutdown, prints an error and returns 1")
            ("check,c", pure_switch(check), "Prints the daemon's process ID to stdout and returns 0 if the daemon is running, otherwise returns 1")
            ("quit,q", pure_switch(quit), "Tells the daemon to shut down");
    }
Beispiel #20
0
//====================================== TOSDsettingsVideo =======================================
TOSDsettingsVideo::TOSDsettingsVideo(TintStrColl *Icoll, TfilterIDFFs *filters):
    TOSDsettings(sizeof(*this), Icoll, filters),
    font(Icoll)
{
    deepcopy = true;
    linespace = 100;

    static const TintOptionT<TOSDsettingsVideo> iopts[] = {
        IDFF_OSDposX                   , &TOSDsettingsVideo::posX          , 0, 100, _l(""), 1,
        _l("OSDposX"), 0,
        IDFF_OSDposY                   , &TOSDsettingsVideo::posY          , 0, 100, _l(""), 1,
        _l("OSDposY"), 0,
        IDFF_OSD_userformat            , &TOSDsettingsVideo::userFormat    , 0, 100, _l(""), 1,
        _l("OSDuserFormat"), 3,
        0
    };
    addOptions(iopts);
}
TcropSettings::TcropSettings(TintStrColl *Icoll,TfilterIDFFs *filters):TfilterSettingsVideo(sizeof(*this),Icoll,filters,&idffs)
{
    half=0;
    static const TintOptionT<TcropSettings> iopts[]= {
        IDFF_isCropNzoom        ,&TcropSettings::is                 ,0,0,_l(""),1,
        _l("isCropNzoom"),0,
        IDFF_showCropNzoom      ,&TcropSettings::show               ,0,0,_l(""),1,
        _l("showCropNzoom"),1,
        IDFF_orderCropNzoom     ,&TcropSettings::order              ,1,1,_l(""),1,
        _l("orderCropNzoom"),0,
        IDFF_fullCropNzoom      ,&TcropSettings::full               ,1,1,_l(""),1,
        _l("fullCropNzoom"),1,
        IDFF_cropNzoomMode      ,&TcropSettings::mode               ,0,5,_l(""),1,
        _l("isZoom"),0,
        IDFF_magnificationX     ,&TcropSettings::magnificationX     ,0,100,_l(""),1,
        _l("magnificationX"),0,
        IDFF_magnificationY     ,&TcropSettings::magnificationY     ,0,100,_l(""),1,
        _l("magnificationY"),0,
        IDFF_magnificationLocked,&TcropSettings::magnificationLocked,0,0,_l(""),1,
        _l("magnificationLocked"),1,
        IDFF_cropLeft           ,&TcropSettings::cropLeft           ,0,2048,_l(""),1,
        _l("cropLeft"),0,
        IDFF_cropRight          ,&TcropSettings::cropRight          ,0,2048,_l(""),1,
        _l("cropRight"),0,
        IDFF_cropTop            ,&TcropSettings::cropTop            ,0,2048,_l(""),1,
        _l("cropTop"),0,
        IDFF_cropBottom         ,&TcropSettings::cropBottom         ,0,2048,_l(""),1,
        _l("cropBottom"),0,
        IDFF_panscanZoom        ,&TcropSettings::panscanZoom        ,0,100,_l(""),1,
        _l("panscanZoom"),0,
        IDFF_panscanX           ,&TcropSettings::panscanX           ,-100,100,_l(""),1,
        _l("panscanX"),0,
        IDFF_panscanY           ,&TcropSettings::panscanY           ,-100,100,_l(""),1,
        _l("panscanY"),0,
        IDFF_cropTolerance      ,&TcropSettings::cropTolerance      ,0,2048,_l(""),1,
        _l("cropTolerance"),30,
        IDFF_cropRefreshDelay   ,&TcropSettings::cropRefreshDelay   ,0,3600000,_l(""),1,
        _l("cropRefreshDelay"),5000,
        IDFF_cropStopScan       ,&TcropSettings::cropStopScan       ,0,3600000,_l(""),1,
        _l("cropStopScan"),100000,
        0
    };
    addOptions(iopts);
}
TlfeCrossoverSettings::TlfeCrossoverSettings(TintStrColl *Icoll, TfilterIDFFs *filters): TfilterSettingsAudio(sizeof(*this), Icoll, filters, &idffs)
{
    static const TintOptionT<TlfeCrossoverSettings> iopts[] = {
        IDFF_isLFEcrossover    , &TlfeCrossoverSettings::is    , 0, 0, _l(""), 1,
        _l("isLFEcrossover"), 0,
        IDFF_showLFEcrossover  , &TlfeCrossoverSettings::show  , 0, 0, _l(""), 1,
        _l("showLFEcrossover"), 1,
        IDFF_orderLFEcrossover , &TlfeCrossoverSettings::order , 1, 1, _l(""), 1,
        _l("orderLFEcrossover"), 0,
        IDFF_LFEcrossoverFreq  , &TlfeCrossoverSettings::freq  , 1, 300, _l(""), 1,
        _l("LFEcrossoverFreq"), 180,
        IDFF_LFEcrossoverGain  , &TlfeCrossoverSettings::gain  , -1000, 1000, _l(""), 1,
        _l("LFEcrossoverGain"), -200,
        IDFF_LFEcutLR          , &TlfeCrossoverSettings::cutLR , 0, 0, _l(""), 1,
        _l("IDFF_LFEcutLR"), 0,
        0
    };
    addOptions(iopts);
}
Beispiel #23
0
    Args() :
        key("test-queue"), sendEos(0), durable(false), ttl(0),
        reportTotal(false),
        reportEvery(0),
        reportHeader(true)
    {
        addOptions()
            ("exchange", qpid::optValue(destination, "EXCHANGE"), "Exchange to send messages to")
            ("routing-key", qpid::optValue(key, "KEY"), "Routing key to add to messages")
            ("send-eos", qpid::optValue(sendEos, "N"), "Send N EOS messages to mark end of input")
            ("durable", qpid::optValue(durable, "true|false"), "Mark messages as durable.")
	    ("ttl", qpid::optValue(ttl, "msecs"), "Time-to-live for messages, in milliseconds")
            ("lvq-match-value", qpid::optValue(lvqMatchValue, "KEY"), "The value to set for the LVQ match key property")
            ("lvq-match-file", qpid::optValue(lvqMatchFile, "FILE"), "A file containing values to set for the LVQ match key property")
            ("report-total", qpid::optValue(reportTotal), "Report total throughput statistics")
            ("report-every", qpid::optValue(reportEvery,"N"), "Report throughput statistics every N messages")
            ("report-header", qpid::optValue(reportHeader, "yes|no"), "Headers on report.")
            ;
    }
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 #25
0
int main( int argc, char* argv[] )
{
   QApplication app( argc, argv );
   QApplication::setApplicationName( "dialog" );

   QCommandLineParser argparse;
   argparse.setApplicationDescription( "A simple timed dialog box." );
   argparse.addHelpOption();
   addOptions( argparse );
   argparse.process( app );

   auto timeout = argparse.value("timeout").toInt();
   auto period = argparse.value("period").toInt();

   DialogBox dialogBox(
      argparse.value("window-title"),
      argparse.value("message"),
      period,
      timeout
      );

   return app.exec();
}
Beispiel #26
0
 void                    include         (const String& path)                            { addOptions(sprintf("-I\"%s\"", path.getPtr())); }
Beispiel #27
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 #28
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 #29
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 #30
0
 Options() : qpid::Options("AMQP 1.0 Options") {
     addOptions()
         ("domain", optValue(domain, "DOMAIN"), "Domain of this broker");
 }