QTfrontend/net/recorder.h
changeset 7376 48b79b3ca592
parent 7280 fd707afbc3a2
child 8092 08960209db8c
child 9080 9b42757d7e71
equal deleted inserted replaced
7373:d5ec4e4eb2d5 7376:48b79b3ca592
    32         Q_OBJECT
    32         Q_OBJECT
    33     public:
    33     public:
    34         HWRecorder(GameUIConfig * config, const QString & prefix);
    34         HWRecorder(GameUIConfig * config, const QString & prefix);
    35         virtual ~HWRecorder();
    35         virtual ~HWRecorder();
    36 
    36 
    37         void EncodeVideo(const QByteArray & record, int numFrames);
    37         void EncodeVideo(const QByteArray & record);
    38 
    38 
    39         VideoItem * item; // used by pagevideos
    39         VideoItem * item; // used by pagevideos
    40         QString name;
    40         QString name;
    41         QString prefix;
    41         QString prefix;
    42 
    42 
    49     signals:
    49     signals:
    50         void onProgress(float progress); // 0 < progress < 1
    50         void onProgress(float progress); // 0 < progress < 1
    51         void encodingFinished(bool success);
    51         void encodingFinished(bool success);
    52 
    52 
    53     private:
    53     private:
    54         int curFrame;
       
    55         int numFrames;
       
    56         bool finished;
    54         bool finished;
    57         GameUIConfig * config;
    55         GameUIConfig * config;
    58 };
    56 };
    59 
    57 
    60 #endif // RECORDER_H
    58 #endif // RECORDER_H