Commit d4c9ec03 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

Workflow::Frame Add Frame( size_t size )

Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 911e0e22
......@@ -50,6 +50,18 @@ Frame::Frame( quint32 width, quint32 height ) :
m_buffer = new quint32[m_nbPixels];
}
Frame::Frame( size_t forcedSize ) :
OutputBuffer( VideoTrack ),
ptsDiff( 0 ),
m_width( 0 ),
m_height( 0 ),
m_size( forcedSize ),
m_nbPixels( 0 ),
m_pts( 0 )
{
m_buffer = new quint32[ ( forcedSize % 4 ) ? forcedSize / 4 + 1 : forcedSize / 4 ];
}
Frame::Frame(quint32 width, quint32 height, size_t forcedSize) :
OutputBuffer( VideoTrack ),
ptsDiff( 0 ),
......
......@@ -52,6 +52,7 @@ namespace Workflow
public:
explicit Frame();
Frame( quint32 width, quint32 height );
Frame( size_t forcedSize );
Frame( quint32 width, quint32 height, size_t forcedSize );
~Frame();
quint32 width() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment