-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathWorkflowFileRenderer.h
73 lines (61 loc) · 2.61 KB
/
WorkflowFileRenderer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*****************************************************************************
* WorkflowFileRenderer.h: Output the workflow to a file
*****************************************************************************
* Copyright (C) 2008-2010 VideoLAN
*
* Authors: Hugo Beauzee-Luyssen <[email protected]>
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef WORKFLOWFILERENDERER_H
#define WORKFLOWFILERENDERER_H
#include "Workflow/MainWorkflow.h"
#include "WorkflowRenderer.h"
#include "WorkflowFileRendererDialog.h"
#include <QTime>
class WorkflowFileRenderer : public WorkflowRenderer
{
Q_OBJECT
Q_DISABLE_COPY( WorkflowFileRenderer )
public:
WorkflowFileRenderer();
virtual ~WorkflowFileRenderer();
static int lock( void* datas, qint64 *dts, qint64 *pts, quint32 *flags,
size_t *bufferSize, void **buffer );
static void unlock( void* datas, size_t size, void* buff );
void run();
virtual float getFps() const;
private:
void setupDialog( quint32 width, quint32 height );
private:
QString m_outputFileName;
WorkflowFileRendererDialog* m_dialog;
QImage* m_image;
QTime m_time;
protected:
virtual void* getLockCallback();
virtual void* getUnlockCallback();
virtual quint32 width() const;
virtual quint32 height() const;
private slots:
void stop();
void cancelButtonClicked();
void __frameChanged( qint64 frame,
MainWorkflow::FrameChangedReason reason );
void __endReached();
signals:
void imageUpdated( const uchar* image );
};
#endif // WORKFLOWFILERENDERER_H