diff options
| author | Arno <am@disconnect.de> | 2013-09-14 07:28:19 +0200 | 
|---|---|---|
| committer | Arno <am@disconnect.de> | 2013-09-14 07:28:19 +0200 | 
| commit | 19a7e82de5decb45caf07acc0d1161b1f05cb15b (patch) | |
| tree | ba036f290965b58482abf8b415200457341f2e89 /framecache.h | |
| parent | c115772c658ba1138d05ef6604bc36d4b6d96867 (diff) | |
| download | SheMov-19a7e82de5decb45caf07acc0d1161b1f05cb15b.tar.gz SheMov-19a7e82de5decb45caf07acc0d1161b1f05cb15b.tar.bz2 SheMov-19a7e82de5decb45caf07acc0d1161b1f05cb15b.zip | |
Get rid of FrameCache
Diffstat (limited to 'framecache.h')
| -rw-r--r-- | framecache.h | 72 | 
1 files changed, 0 insertions, 72 deletions
| diff --git a/framecache.h b/framecache.h deleted file mode 100644 index 867eda7..0000000 --- a/framecache.h +++ /dev/null @@ -1,72 +0,0 @@ -/* -  This program is free software; you can redistribute it and/or -  modify it under the terms of the GNU General Public License -  as published by the Free Software Foundation; either version -  2 of the License, or (at your option) any later version. -*/ - -#ifndef FRAMECACHE_H -#define FRAMECACHE_H - -#include <QThread> -#include <QPair> -#include <QHash> -#include <QPair> -#include <QQueue> -#include <QString> - -class QSemaphore; -class QMutex; -class FrameCacheGenerator; - -class FrameCache : public QObject { -    Q_OBJECT -    public: -        explicit FrameCache(QObject *parent = 0); -        ~FrameCache(); -        const QPixmap entry(const QString &sourcePath, const QString &when = QString()); -        const QString entryPath(const QString &sourcePath, const QString &when); - -    public slots: -        void rebuild(); - -    private: -        QHash<QPair<QString, QString>, QString> *mFrameCache; -        QQueue<QPair<QString, QString> > *mDataQueue; -        QString mCacheFile; -        qint32 mMagic; -        QSemaphore *mSemFree; -        QSemaphore *mSemUsed; -        QMutex *mCacheMx; -        FrameCacheGenerator *mGenerator; -        QString mWhen; -}; - -class FrameCacheGenerator : public QThread { -    Q_OBJECT -    public: -        explicit FrameCacheGenerator(QObject *parent = 0); -        void init(QSemaphore *set, QSemaphore *get, QMutex *cachemx, QQueue<QPair<QString, QString> > *data, QHash<QPair<QString, QString>, QString> *cache); -        const QString cacheFile() const { return mCacheFile; } -        const QString cacheDir() const { return mCacheDir; } -        void readConfig(); - -    public slots: -        void run(); - -    private: -        bool grabFrame(const QString &sourceFile, QString when); -        QSemaphore *mSemFree; -        QSemaphore *mSemUsed; -        QMutex *mCacheMx; -        QQueue<QPair<QString, QString> > *mDataQueue; -        QHash<QPair<QString, QString>, QString> *mFrameCache; -        QString mCacheDir; -        QString mCacheFile; -        QString mFfMpegPath; -        const QString mCacheSubDir; -        const QString mCacheFileName; - -}; - -#endif // FRAMECACHE_H | 
