Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLMC
Commits
3b630cf3
Commit
3b630cf3
authored
Sep 18, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged Workflow with VideoFrame types.
parent
2ad30d49
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
+10
-5
src/EffectsEngine/VideoFrame.h
src/EffectsEngine/VideoFrame.h
+1
-1
src/Workflow/ClipWorkflow.cpp
src/Workflow/ClipWorkflow.cpp
+3
-0
src/Workflow/ClipWorkflow.h
src/Workflow/ClipWorkflow.h
+2
-1
src/Workflow/TrackWorkflow.cpp
src/Workflow/TrackWorkflow.cpp
+1
-1
src/Workflow/TrackWorkflow.h
src/Workflow/TrackWorkflow.h
+3
-2
No files found.
src/EffectsEngine/VideoFrame.h
View file @
3b630cf3
...
...
@@ -27,7 +27,7 @@ struct VideoFrame
{
~
VideoFrame
();
VideoFrame
();
VideoFrame
(
quint32
nboctets
)
VideoFrame
(
quint32
nboctets
)
;
VideoFrame
(
quint8
*
tocopy
,
quint32
nboctets
);
VideoFrame
(
VideoFrame
const
&
);
VideoFrame
&
operator
=
(
VideoFrame
const
&
tocopy
);
...
...
src/Workflow/ClipWorkflow.cpp
View file @
3b630cf3
...
...
@@ -25,6 +25,7 @@
#include "vlmc.h"
#include "ClipWorkflow.h"
#include "Pool.hpp"
#include "VideoFrame.h"
ClipWorkflow
::
ClipWorkflow
(
Clip
::
Clip
*
clip
)
:
m_clip
(
clip
),
...
...
@@ -35,6 +36,8 @@ ClipWorkflow::ClipWorkflow( Clip::Clip* clip ) :
m_state
(
ClipWorkflow
::
Stopped
),
m_fullSpeedRender
(
false
)
{
m_frame
=
new
VideoFrame
(
VIDEOHEIGHT
*
VIDEOWIDTH
*
4
);
// m_backBuffer = new unsigned char[VIDEOHEIGHT * VIDEOWIDTH * 4];
m_stateLock
=
new
QReadWriteLock
;
m_requiredStateLock
=
new
QMutex
;
m_waitCond
=
new
QWaitCondition
;
...
...
src/Workflow/ClipWorkflow.h
View file @
3b630cf3
...
...
@@ -31,12 +31,13 @@
#include <QReadWriteLock>
#include <QMutex>
#include "WaitCondition.hpp"
#include <QObject>
#include <QQueue>
#include "Clip.h"
#include "WaitCondition.hpp"
#include "VLCMediaPlayer.h"
#include "LightVideoFrame.h"
class
ClipWorkflow
:
public
QObject
{
...
...
src/Workflow/TrackWorkflow.cpp
View file @
3b630cf3
...
...
@@ -479,7 +479,7 @@ void TrackWorkflow::clipWorkflowRenderCompleted( ClipWorkflow* cw )
//s qDebug() << "Track render not completed yet";
}
unsigned
char
*
TrackWorkflow
::
getSynchroneOutput
()
VideoFrame
*
TrackWorkflow
::
getSynchroneOutput
()
{
return
m_synchroneRenderBuffer
;
}
...
...
src/Workflow/TrackWorkflow.h
View file @
3b630cf3
...
...
@@ -32,6 +32,7 @@
#include <QDomElement>
#include "ClipWorkflow.h"
#include "VideoFrame.h"
//TODO: REMOVE THIS
#ifndef FPS
...
...
@@ -72,7 +73,7 @@ class TrackWorkflow : public QObject
/**
* Returns the output that has been computed in synchrone mode.
*/
unsigned
char
*
getSynchroneOutput
();
VideoFrame
*
getSynchroneOutput
();
//FIXME: this won't be reliable as soon as we change the fps from the configuration
static
const
unsigned
int
nbFrameBeforePreload
=
60
;
...
...
@@ -119,7 +120,7 @@ class TrackWorkflow : public QObject
QAtomicInt
m_nbClipToUnpause
;
QAtomicInt
m_nbClipToRender
;
unsigned
char
*
m_synchroneRenderBuffer
;
VideoFrame
*
m_synchroneRenderBuffer
;
TrackType
m_trackType
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment