Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f2582ce7
Commit
f2582ce7
authored
Dec 12, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged vout_RenderWrapper/vout_DisplayWrapper directly into ThreadDisplayRenderPicture.
parent
f22ff68e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
43 deletions
+16
-43
src/video_output/video_output.c
src/video_output/video_output.c
+16
-4
src/video_output/vout_internal.h
src/video_output/vout_internal.h
+0
-2
src/video_output/vout_wrapper.c
src/video_output/vout_wrapper.c
+0
-37
No files found.
src/video_output/video_output.c
View file @
f2582ce7
...
...
@@ -873,6 +873,7 @@ static int ThreadDisplayPreparePicture(vout_thread_t *vout, bool reuse, bool is_
static
int
ThreadDisplayRenderPicture
(
vout_thread_t
*
vout
,
bool
is_forced
)
{
vout_thread_sys_t
*
sys
=
vout
->
p
;
vout_display_t
*
vd
=
vout
->
p
->
display
.
vd
;
picture_t
*
torender
=
picture_Hold
(
vout
->
p
->
displayed
.
current
);
...
...
@@ -955,8 +956,16 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
if
(
do_snapshot
)
vout_snapshot_Set
(
&
vout
->
p
->
snapshot
,
&
vd
->
source
,
direct
);
/* Render the direct buffer returned by vout_RenderPicture */
vout_RenderWrapper
(
vout
,
direct
,
NULL
);
/* Render the direct buffer */
assert
(
vout_IsDisplayFiltered
(
vd
)
==
!
sys
->
display
.
use_dr
);
vout_UpdateDisplaySourceProperties
(
vd
,
&
direct
->
format
);
if
(
sys
->
display
.
use_dr
)
{
vout_display_Prepare
(
vd
,
direct
,
NULL
);
}
else
{
sys
->
display
.
filtered
=
vout_FilterDisplay
(
vd
,
direct
);
if
(
sys
->
display
.
filtered
)
vout_display_Prepare
(
vd
,
sys
->
display
.
filtered
,
NULL
);
}
vout_chrono_Stop
(
&
vout
->
p
->
render
);
#if 0
...
...
@@ -979,8 +988,11 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
/* Display the direct buffer returned by vout_RenderPicture */
vout
->
p
->
displayed
.
date
=
mdate
();
vout_DisplayWrapper
(
vout
,
direct
,
NULL
);
vout_display_Display
(
vd
,
sys
->
display
.
filtered
?
sys
->
display
.
filtered
:
direct
,
NULL
);
sys
->
display
.
filtered
=
NULL
;
vout_statistic_Update
(
&
vout
->
p
->
statistic
,
1
,
0
);
...
...
src/video_output/vout_internal.h
View file @
f2582ce7
...
...
@@ -161,8 +161,6 @@ void vout_CloseWrapper(vout_thread_t *, vout_display_state_t *);
int
vout_InitWrapper
(
vout_thread_t
*
);
void
vout_EndWrapper
(
vout_thread_t
*
);
void
vout_ManageWrapper
(
vout_thread_t
*
);
void
vout_RenderWrapper
(
vout_thread_t
*
,
picture_t
*
,
subpicture_t
*
);
void
vout_DisplayWrapper
(
vout_thread_t
*
,
picture_t
*
,
subpicture_t
*
);
/* */
int
spu_ProcessMouse
(
spu_t
*
,
const
vlc_mouse_t
*
,
const
video_format_t
*
);
...
...
src/video_output/vout_wrapper.c
View file @
f2582ce7
...
...
@@ -204,43 +204,6 @@ void vout_ManageWrapper(vout_thread_t *vout)
}
}
/*****************************************************************************
* Render
*****************************************************************************/
void
vout_RenderWrapper
(
vout_thread_t
*
vout
,
picture_t
*
picture
,
subpicture_t
*
subpicture
)
{
vout_thread_sys_t
*
sys
=
vout
->
p
;
vout_display_t
*
vd
=
sys
->
display
.
vd
;
assert
(
vout_IsDisplayFiltered
(
vd
)
==
!
sys
->
display
.
use_dr
);
vout_UpdateDisplaySourceProperties
(
vd
,
&
picture
->
format
);
if
(
sys
->
display
.
use_dr
)
{
vout_display_Prepare
(
vd
,
picture
,
subpicture
);
}
else
{
sys
->
display
.
filtered
=
vout_FilterDisplay
(
vd
,
picture
);
if
(
sys
->
display
.
filtered
)
vout_display_Prepare
(
vd
,
sys
->
display
.
filtered
,
subpicture
);
}
}
/*****************************************************************************
*
*****************************************************************************/
void
vout_DisplayWrapper
(
vout_thread_t
*
vout
,
picture_t
*
picture
,
subpicture_t
*
subpicture
)
{
vout_thread_sys_t
*
sys
=
vout
->
p
;
vout_display_t
*
vd
=
sys
->
display
.
vd
;
vout_display_Display
(
vd
,
sys
->
display
.
filtered
?
sys
->
display
.
filtered
:
picture
,
subpicture
);
sys
->
display
.
filtered
=
NULL
;
}
#ifdef WIN32
static
int
Forward
(
vlc_object_t
*
object
,
char
const
*
var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
data
)
...
...
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