Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
654d8a72
Commit
654d8a72
authored
Sep 26, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used direct rendering for chroma conversion in "vout display".
parent
fbedc7c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/video_output/display.c
src/video_output/display.c
+12
-12
No files found.
src/video_output/display.c
View file @
654d8a72
...
@@ -47,14 +47,14 @@ static void SplitterClose(vout_display_t *vd);
...
@@ -47,14 +47,14 @@ static void SplitterClose(vout_display_t *vd);
*****************************************************************************/
*****************************************************************************/
static
picture_t
*
VideoBufferNew
(
filter_t
*
filter
)
static
picture_t
*
VideoBufferNew
(
filter_t
*
filter
)
{
{
vout_display_t
*
vd
=
(
vout_display_t
*
)
filter
->
p_owner
;
const
video_format_t
*
fmt
=
&
filter
->
fmt_out
.
video
;
const
video_format_t
*
fmt
=
&
filter
->
fmt_out
.
video
;
picture_t
*
picture
=
picture_New
(
fmt
->
i_chroma
,
assert
(
vd
->
fmt
.
i_chroma
==
fmt
->
i_chroma
&&
fmt
->
i_width
,
fmt
->
i_height
,
vd
->
fmt
.
i_width
==
fmt
->
i_width
&&
fmt
->
i_aspect
);
vd
->
fmt
.
i_height
==
fmt
->
i_height
);
if
(
!
picture
)
msg_Err
(
filter
,
"Failed to allocate picture"
);
return
vout_display_Get
(
vd
);
return
picture
;
}
}
static
void
VideoBufferDelete
(
filter_t
*
filter
,
picture_t
*
picture
)
static
void
VideoBufferDelete
(
filter_t
*
filter
,
picture_t
*
picture
)
{
{
...
@@ -62,12 +62,11 @@ static void VideoBufferDelete(filter_t *filter, picture_t *picture)
...
@@ -62,12 +62,11 @@ static void VideoBufferDelete(filter_t *filter, picture_t *picture)
picture_Release
(
picture
);
picture_Release
(
picture
);
}
}
static
int
FilterAllocationInit
(
filter_t
*
filter
,
void
*
data
)
static
int
FilterAllocationInit
(
filter_t
*
filter
,
void
*
vd
)
{
{
VLC_UNUSED
(
data
);
filter
->
pf_vout_buffer_new
=
VideoBufferNew
;
filter
->
pf_vout_buffer_new
=
VideoBufferNew
;
filter
->
pf_vout_buffer_del
=
VideoBufferDelete
;
filter
->
pf_vout_buffer_del
=
VideoBufferDelete
;
filter
->
p_owner
=
vd
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
@@ -75,6 +74,7 @@ static void FilterAllocationClean(filter_t *filter)
...
@@ -75,6 +74,7 @@ static void FilterAllocationClean(filter_t *filter)
{
{
filter
->
pf_vout_buffer_new
=
NULL
;
filter
->
pf_vout_buffer_new
=
NULL
;
filter
->
pf_vout_buffer_del
=
NULL
;
filter
->
pf_vout_buffer_del
=
NULL
;
filter
->
p_owner
=
NULL
;
}
}
/*****************************************************************************
/*****************************************************************************
...
@@ -379,7 +379,7 @@ static void VoutDisplayCreateRender(vout_display_t *vd)
...
@@ -379,7 +379,7 @@ static void VoutDisplayCreateRender(vout_display_t *vd)
osys
->
filters
=
filter_chain_New
(
vd
,
"video filter2"
,
false
,
osys
->
filters
=
filter_chain_New
(
vd
,
"video filter2"
,
false
,
FilterAllocationInit
,
FilterAllocationInit
,
FilterAllocationClean
,
NULL
);
FilterAllocationClean
,
vd
);
assert
(
osys
->
filters
);
/* TODO critical */
assert
(
osys
->
filters
);
/* TODO critical */
/* */
/* */
...
@@ -849,8 +849,7 @@ picture_t *vout_FilterDisplay(vout_display_t *vd, picture_t *picture)
...
@@ -849,8 +849,7 @@ picture_t *vout_FilterDisplay(vout_display_t *vd, picture_t *picture)
{
{
vout_display_owner_sys_t
*
osys
=
vd
->
owner
.
sys
;
vout_display_owner_sys_t
*
osys
=
vd
->
owner
.
sys
;
if
(
!
osys
->
filters
)
assert
(
osys
->
filters
);
return
picture
;
return
filter_chain_VideoFilter
(
osys
->
filters
,
picture
);
return
filter_chain_VideoFilter
(
osys
->
filters
,
picture
);
}
}
...
@@ -1137,6 +1136,7 @@ static void SplitterPrepare(vout_display_t *vd, picture_t *picture)
...
@@ -1137,6 +1136,7 @@ static void SplitterPrepare(vout_display_t *vd, picture_t *picture)
for (int i = 0; i < sys->count; i++) {
for (int i = 0; i < sys->count; i++) {
/* */
/* */
/* FIXME now vout_FilterDisplay already return a direct buffer FIXME */
sys->picture[i] = vout_FilterDisplay(sys->display[i], sys->picture[i]);
sys->picture[i] = vout_FilterDisplay(sys->display[i], sys->picture[i]);
if (!sys->picture[i])
if (!sys->picture[i])
continue;
continue;
...
...
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