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
fd32a7c3
Commit
fd32a7c3
authored
Apr 23, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No functionnal changes (vout).
parent
f0fe302b
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
135 additions
and
194 deletions
+135
-194
src/video_output/video_output.c
src/video_output/video_output.c
+103
-153
src/video_output/vout_internal.h
src/video_output/vout_internal.h
+15
-19
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+9
-9
src/video_output/vout_pictures.c
src/video_output/vout_pictures.c
+0
-13
src/video_output/vout_wrapper.c
src/video_output/vout_wrapper.c
+8
-0
No files found.
src/video_output/video_output.c
View file @
fd32a7c3
This diff is collapsed.
Click to expand it.
src/video_output/vout_internal.h
View file @
fd32a7c3
...
...
@@ -66,18 +66,31 @@ struct vout_thread_sys_t
bool
b_picture_empty
;
vlc_cond_t
picture_wait
;
struct
{
mtime_t
clock
;
mtime_t
timestamp
X
;
mtime_t
date
;
mtime_t
timestamp
;
int
qtype
;
bool
is_interlaced
;
picture_t
*
decoded
;
}
displayed
;
struct
{
bool
is_requested
;
mtime_t
last
;
mtime_t
timestamp
;
}
step
;
struct
{
bool
is_on
;
mtime_t
date
;
}
pause
;
struct
{
bool
show
;
mtime_t
timeout
;
int
position
;
char
*
value
;
}
title
;
/* */
vlc_mutex_t
vfilter_lock
;
/**< video filter2 lock */
...
...
@@ -89,10 +102,6 @@ struct vout_thread_sys_t
/* Statistics */
vout_statistic_t
statistic
;
/* Pause */
bool
b_paused
;
mtime_t
i_pause_date
;
/* Filter chain */
bool
b_first_vout
;
/* True if it is the first vout of the filter chain */
char
*
psz_filter_chain
;
...
...
@@ -105,13 +114,6 @@ struct vout_thread_sys_t
/* Snapshot interface */
vout_snapshot_t
snapshot
;
/* Show media title on videoutput */
bool
b_title_show
;
mtime_t
i_title_timeout
;
int
i_title_position
;
char
*
psz_title
;
/* Subpicture unit */
spu_t
*
p_spu
;
...
...
@@ -158,12 +160,6 @@ struct vout_thread_sys_t
/* */
void
vout_IntfInit
(
vout_thread_t
*
);
/* DO NOT use vout_UsePictureLocked unless you are in src/video_ouput
*
* This function supposes that you call it with picture_lock taken.
*/
void
vout_UsePictureLocked
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
);
/* */
int
vout_OpenWrapper
(
vout_thread_t
*
,
const
char
*
);
void
vout_CloseWrapper
(
vout_thread_t
*
);
...
...
src/video_output/vout_intf.c
View file @
fd32a7c3
...
...
@@ -175,12 +175,12 @@ void vout_IntfInit( vout_thread_t *p_vout )
var_Create
(
p_vout
,
"mouse-hide-timeout"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
p_vout
->
p
->
b_title_
show
=
var_CreateGetBool
(
p_vout
,
"video-title-show"
);
p_vout
->
p
->
i_title_timeout
=
(
mtime_t
)
var_CreateGetInteger
(
p_vout
,
"video-title-timeout"
);
p_vout
->
p
->
i_title_position
=
var_CreateGetInteger
(
p_vout
,
"video-title-position"
);
p_vout
->
p
->
psz_titl
e
=
NULL
;
p_vout
->
p
->
title
.
show
=
var_CreateGetBool
(
p_vout
,
"video-title-show"
);
p_vout
->
p
->
title
.
timeout
=
var_CreateGetInteger
(
p_vout
,
"video-title-timeout"
);
p_vout
->
p
->
title
.
position
=
var_CreateGetInteger
(
p_vout
,
"video-title-position"
);
p_vout
->
p
->
title
.
valu
e
=
NULL
;
var_AddCallback
(
p_vout
,
"video-title-show"
,
TitleShowCallback
,
NULL
);
var_AddCallback
(
p_vout
,
"video-title-timeout"
,
TitleTimeoutCallback
,
NULL
);
...
...
@@ -923,7 +923,7 @@ static int TitleShowCallback( vlc_object_t *p_this, char const *psz_cmd,
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_data
);
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_this
;
p_vout
->
p
->
b_title_
show
=
newval
.
b_bool
;
p_vout
->
p
->
title
.
show
=
newval
.
b_bool
;
return
VLC_SUCCESS
;
}
...
...
@@ -932,7 +932,7 @@ static int TitleTimeoutCallback( vlc_object_t *p_this, char const *psz_cmd,
{
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_data
);
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_this
;
p_vout
->
p
->
i_title_
timeout
=
(
mtime_t
)
newval
.
i_int
;
p_vout
->
p
->
title
.
timeout
=
(
mtime_t
)
newval
.
i_int
;
return
VLC_SUCCESS
;
}
...
...
@@ -942,6 +942,6 @@ static int TitlePositionCallback( vlc_object_t *p_this, char const *psz_cmd,
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_data
);
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_this
;
p_vout
->
p
->
i_title_
position
=
newval
.
i_int
;
p_vout
->
p
->
title
.
position
=
newval
.
i_int
;
return
VLC_SUCCESS
;
}
src/video_output/vout_pictures.c
View file @
fd32a7c3
...
...
@@ -44,12 +44,6 @@
#include "vout_pictures.h"
#include "vout_internal.h"
static
void
tracep
(
const
char
*
msg
,
picture_t
*
picture
)
{
//fprintf(stderr, "########## %s === picture=%p::%d\n", msg,
// picture, picture ? picture->i_refcount : -1);
}
/**
* Display a picture
*
...
...
@@ -60,8 +54,6 @@ void vout_DisplayPicture( vout_thread_t *p_vout, picture_t *p_pic )
{
vlc_mutex_lock
(
&
p_vout
->
p
->
picture_lock
);
tracep
(
"vout_DisplayPicture"
,
p_pic
);
p_pic
->
p_next
=
NULL
;
picture_fifo_Push
(
p_vout
->
p
->
decoder_fifo
,
p_pic
);
...
...
@@ -97,7 +89,6 @@ picture_t *vout_CreatePicture( vout_thread_t *p_vout,
picture_Reset
(
p_pic
);
p_pic
->
p_next
=
NULL
;
// FIXME put it in picture_Reset ?
}
tracep
(
"vout_CreatePicture"
,
p_pic
);
vlc_mutex_unlock
(
&
p_vout
->
p
->
picture_lock
);
return
p_pic
;
...
...
@@ -108,7 +99,6 @@ void vout_DropPicture( vout_thread_t *p_vout, picture_t *p_pic )
{
vlc_mutex_lock
(
&
p_vout
->
p
->
picture_lock
);
tracep
(
"vout_DropPicture"
,
p_pic
);
picture_Release
(
p_pic
);
vlc_cond_signal
(
&
p_vout
->
p
->
picture_wait
);
...
...
@@ -117,7 +107,6 @@ void vout_DropPicture( vout_thread_t *p_vout, picture_t *p_pic )
void
vout_DestroyPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
)
{
tracep
(
"vout_DestroyPicture"
,
p_pic
);
vout_DropPicture
(
p_vout
,
p_pic
);
}
...
...
@@ -131,7 +120,6 @@ void vout_DestroyPicture( vout_thread_t *p_vout, picture_t *p_pic )
void
vout_LinkPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
)
{
vlc_mutex_lock
(
&
p_vout
->
p
->
picture_lock
);
tracep
(
"vout_LinkPicture"
,
p_pic
);
picture_Hold
(
p_pic
);
vlc_mutex_unlock
(
&
p_vout
->
p
->
picture_lock
);
}
...
...
@@ -144,7 +132,6 @@ void vout_LinkPicture( vout_thread_t *p_vout, picture_t *p_pic )
void
vout_UnlinkPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
)
{
vlc_mutex_lock
(
&
p_vout
->
p
->
picture_lock
);
tracep
(
"vout_UnlinkPicture"
,
p_pic
);
picture_Release
(
p_pic
);
vlc_cond_signal
(
&
p_vout
->
p
->
picture_wait
);
...
...
src/video_output/vout_wrapper.c
View file @
fd32a7c3
...
...
@@ -160,6 +160,13 @@ int vout_InitWrapper(vout_thread_t *vout)
vout
->
fmt_out
.
i_visible_width
=
source
.
i_width
;
vout
->
fmt_out
.
i_height
=
vout
->
fmt_out
.
i_visible_height
=
source
.
i_height
;
if
(
source
.
i_sar_num
>
0
&&
source
.
i_sar_den
>
0
)
{
vlc_ureduce
(
&
vout
->
fmt_out
.
i_sar_num
,
&
vout
->
fmt_out
.
i_sar_den
,
source
.
i_sar_num
,
source
.
i_sar_den
,
0
);
}
else
{
vout
->
fmt_out
.
i_sar_num
=
1
;
vout
->
fmt_out
.
i_sar_den
=
1
;
}
vout
->
fmt_out
.
i_sar_num
=
source
.
i_sar_num
;
vout
->
fmt_out
.
i_sar_den
=
source
.
i_sar_den
;
vout
->
fmt_out
.
i_x_offset
=
0
;
...
...
@@ -167,6 +174,7 @@ int vout_InitWrapper(vout_thread_t *vout)
vout
->
fmt_out
.
i_rmask
=
source
.
i_rmask
;
vout
->
fmt_out
.
i_gmask
=
source
.
i_gmask
;
vout
->
fmt_out
.
i_bmask
=
source
.
i_bmask
;
video_format_FixRgb
(
&
vout
->
fmt_out
);
if
(
vout
->
fmt_in
.
i_visible_width
!=
source
.
i_visible_width
||
vout
->
fmt_in
.
i_visible_height
!=
source
.
i_visible_height
||
...
...
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