Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
c3c2933d
Commit
c3c2933d
authored
May 25, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Functionnal Clip workflow
The Main/Tracks workflow remains really basic...
parent
0c4baed4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
src/Workflow/ClipWorkflow.cpp
src/Workflow/ClipWorkflow.cpp
+8
-9
src/gui/RenderPreviewWidget.cpp
src/gui/RenderPreviewWidget.cpp
+2
-2
No files found.
src/Workflow/ClipWorkflow.cpp
View file @
c3c2933d
...
...
@@ -64,16 +64,13 @@ void ClipWorkflow::lock( ClipWorkflow* clipWorkflow, void** pp_ret )
void
ClipWorkflow
::
unlock
(
ClipWorkflow
*
clipWorkflow
)
{
qDebug
()
<<
"Outputing debug image"
;
QImage
dbgImg
(
clipWorkflow
->
m_buffer
,
VIDEOWIDTH
,
VIDEOHEIGHT
,
QImage
::
Format_RGB32
);
qDebug
()
<<
dbgImg
.
isNull
()
<<
"<<<<<<<<<<"
;
dbgImg
.
save
(
"/home/chouquette/Desktop/test.png"
);
// qDebug() << "Outputing debug image";
QMutexLocker
lock
(
clipWorkflow
->
m_condMutex
);
{
QWriteLocker
lock2
(
clipWorkflow
->
m_mutex
);
clipWorkflow
->
m_renderComplete
=
true
;
}
qDebug
()
<<
"Frame rendered, sleeping mode"
;
//
qDebug() << "Frame rendered, sleeping mode";
clipWorkflow
->
m_waitCond
->
wait
(
clipWorkflow
->
m_condMutex
);
}
...
...
@@ -86,13 +83,15 @@ void ClipWorkflow::initialize()
m_clip
->
getParent
()
->
getVLCMedia
()
->
setDataCtx
(
this
);
m_clip
->
getParent
()
->
getVLCMedia
()
->
setLockCallback
(
reinterpret_cast
<
LibVLCpp
::
Media
::
lockCallback
>
(
&
ClipWorkflow
::
lock
)
);
m_clip
->
getParent
()
->
getVLCMedia
()
->
setUnlockCallback
(
reinterpret_cast
<
LibVLCpp
::
Media
::
unlockCallback
>
(
&
ClipWorkflow
::
unlock
)
);
m_clip
->
getParent
()
->
getVLCMedia
()
->
addOption
(
":vmem-chroma=RV32"
);
m_clip
->
getParent
()
->
getVLCMedia
()
->
addOption
(
":vmem-pitch=4"
);
m_clip
->
getParent
()
->
getVLCMedia
()
->
addOption
(
":vmem-chroma=RV24"
);
sprintf
(
buffer
,
":vmem-width=%i"
,
VIDEOWIDTH
);
sprintf
(
buffer
,
":vmem-width=%i"
,
VIDEOWIDTH
);
m_clip
->
getParent
()
->
getVLCMedia
()
->
addOption
(
buffer
);
sprintf
(
buffer
,
":vmem-height=%i"
,
VIDEOHEIGHT
);
sprintf
(
buffer
,
":vmem-height=%i"
,
VIDEOHEIGHT
);
m_clip
->
getParent
()
->
getVLCMedia
()
->
addOption
(
buffer
);
sprintf
(
buffer
,
"vmem-pitch=%i"
,
VIDEOWIDTH
*
3
);
m_clip
->
getParent
()
->
getVLCMedia
()
->
addOption
(
buffer
);
}
...
...
src/gui/RenderPreviewWidget.cpp
View file @
c3c2933d
...
...
@@ -57,14 +57,14 @@ RenderPreviewWidget::~RenderPreviewWidget()
void
*
RenderPreviewWidget
::
lock
(
void
*
datas
)
{
qDebug
()
<<
"Locking invmem"
;
//
qDebug() << "Locking invmem";
RenderPreviewWidget
*
self
=
reinterpret_cast
<
RenderPreviewWidget
*>
(
datas
);
return
self
->
m_mainWorkflow
->
getOutput
();
}
void
RenderPreviewWidget
::
unlock
(
void
*
)
{
qDebug
()
<<
"Unlocking invmem"
;
//
qDebug() << "Unlocking invmem";
}
void
RenderPreviewWidget
::
startPreview
(
Media
*
)
...
...
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