Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

ffmpegengineinformation.cpp Example File
ffmpeg/ffmpegengineinformation.cpp

    /****************************************************************************
    **
    ** This file is part of the Qt Extended Opensource Package.
    **
    ** Copyright (C) 2009 Trolltech ASA.
    **
    ** $QT_EXTENDED_DUAL_LICENSE$
    **
    ****************************************************************************/

    #include "ffmpegurisessionbuilder.h"

    #include "ffmpegengineinformation.h"

    namespace ffmpeg
    {

    class EngineInformationPrivate
    {
    public:
        Engine*                     engine;
        QMediaSessionBuilderList    sessionBuilders;
    };

    /*!
        \class ffmpeg::EngineInformation
        \internal
    */

    EngineInformation::EngineInformation(Engine* engine):
        d(new EngineInformationPrivate)
    {
        d->engine = engine;
        d->sessionBuilders.append(new UriSessionBuilder(engine));
    }

    EngineInformation::~EngineInformation()
    {
        delete d;
    }

    QString EngineInformation::name() const
    {
        return "FFMPEG";
    }

    QString EngineInformation::version() const
    {
        return "0.1";
    }

    int EngineInformation::idleTime() const
    {
        return -1;
    }

    bool EngineInformation::hasExclusiveDeviceAccess() const
    {
    #ifdef HAVE_OSS
        return true;
    #else
        return false;
    #endif
    }

    QMediaSessionBuilderList EngineInformation::sessionBuilders() const
    {
        return d->sessionBuilders;
    }

    }   // ns ffmpeg


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3