Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c9c15222
Commit
c9c15222
authored
Jul 19, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix positioning of subpicture regions in osdmenu.
parent
e62911ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/video_filter/osdmenu.c
modules/video_filter/osdmenu.c
+5
-5
No files found.
modules/video_filter/osdmenu.c
View file @
c9c15222
...
@@ -144,7 +144,7 @@ vlc_module_end();
...
@@ -144,7 +144,7 @@ vlc_module_end();
*****************************************************************************/
*****************************************************************************/
struct
filter_sys_t
struct
filter_sys_t
{
{
int
position
;
/* relative positioning of SPU images */
int
i_position
;
/* relative positioning of SPU images */
int
i_x
;
/* absolute positioning of SPU images */
int
i_x
;
/* absolute positioning of SPU images */
int
i_y
;
/* absolute positioning of SPU images */
int
i_y
;
/* absolute positioning of SPU images */
mtime_t
i_last_date
;
/* last mdate SPU object has been sent to SPU subsytem */
mtime_t
i_last_date
;
/* last mdate SPU object has been sent to SPU subsytem */
...
@@ -192,7 +192,7 @@ static int CreateFilter ( vlc_object_t *p_this )
...
@@ -192,7 +192,7 @@ static int CreateFilter ( vlc_object_t *p_this )
p_sys
->
i_x
=
var_CreateGetIntegerCommand
(
p_this
,
OSD_CFG
"x"
);
p_sys
->
i_x
=
var_CreateGetIntegerCommand
(
p_this
,
OSD_CFG
"x"
);
p_sys
->
i_y
=
var_CreateGetIntegerCommand
(
p_this
,
OSD_CFG
"y"
);
p_sys
->
i_y
=
var_CreateGetIntegerCommand
(
p_this
,
OSD_CFG
"y"
);
p_sys
->
position
=
var_CreateGetIntegerCommand
(
p_this
,
OSD_CFG
"position"
);
p_sys
->
i_
position
=
var_CreateGetIntegerCommand
(
p_this
,
OSD_CFG
"position"
);
p_sys
->
i_alpha
=
var_CreateGetIntegerCommand
(
p_this
,
OSD_CFG
"alpha"
);
p_sys
->
i_alpha
=
var_CreateGetIntegerCommand
(
p_this
,
OSD_CFG
"alpha"
);
/* in micro seconds - divide by 2 to match user expectations */
/* in micro seconds - divide by 2 to match user expectations */
...
@@ -402,7 +402,7 @@ static subpicture_region_t *create_picture_region( filter_t *p_filter, subpictur
...
@@ -402,7 +402,7 @@ static subpicture_region_t *create_picture_region( filter_t *p_filter, subpictur
p_region
->
i_x
=
0
;
p_region
->
i_x
=
0
;
p_region
->
i_y
=
0
;
p_region
->
i_y
=
0
;
p_region
->
i_align
=
SUBPICTURE_ALIGN_LEFT
;
p_region
->
i_align
=
p_filter
->
p_sys
->
i_position
;
#if 0
#if 0
msg_Dbg( p_filter, "SPU picture region position (%d,%d) (%d,%d) [%p]",
msg_Dbg( p_filter, "SPU picture region position (%d,%d) (%d,%d) [%p]",
p_region->i_x, p_region->i_y,
p_region->i_x, p_region->i_y,
...
@@ -441,7 +441,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t i_date )
...
@@ -441,7 +441,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t i_date )
p_spu
->
b_absolute
=
VLC_TRUE
;
p_spu
->
b_absolute
=
VLC_TRUE
;
else
else
p_spu
->
b_absolute
=
p_sys
->
b_absolute
;
p_spu
->
b_absolute
=
p_sys
->
b_absolute
;
p_spu
->
i_flags
=
p_sys
->
position
;
p_spu
->
i_flags
=
p_sys
->
i_
position
;
/* Determine the duration of the subpicture */
/* Determine the duration of the subpicture */
if
(
p_sys
->
i_end_date
>
0
)
if
(
p_sys
->
i_end_date
>
0
)
...
@@ -587,7 +587,7 @@ static int OSDMenuCallback( vlc_object_t *p_this, char const *psz_var,
...
@@ -587,7 +587,7 @@ static int OSDMenuCallback( vlc_object_t *p_this, char const *psz_var,
{
{
if
(
newval
.
i_int
==
pi_pos_values
[
i
]
)
if
(
newval
.
i_int
==
pi_pos_values
[
i
]
)
{
{
p_sys
->
position
=
newval
.
i_int
%
11
;
p_sys
->
i_
position
=
newval
.
i_int
%
11
;
break
;
break
;
}
}
}
}
...
...
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