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 Commercial Package.
    **
    ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    **
    ** $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 Nokia Trademarks
Qt Extended 4.4.3