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
5f00387d
Commit
5f00387d
authored
May 23, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed OSD EPG and build it directly at the display size.
As a side effect it is now build at the display size.
parent
9b34074c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
src/video_output/video_epg.c
src/video_output/video_epg.c
+14
-9
No files found.
src/video_output/video_epg.c
View file @
5f00387d
...
@@ -48,7 +48,7 @@ static subpicture_region_t * vout_OSDEpgSlider(int x, int y,
...
@@ -48,7 +48,7 @@ static subpicture_region_t * vout_OSDEpgSlider(int x, int y,
video_format_Init
(
&
fmt
,
VLC_CODEC_YUVA
);
video_format_Init
(
&
fmt
,
VLC_CODEC_YUVA
);
fmt
.
i_width
=
fmt
.
i_visible_width
=
width
;
fmt
.
i_width
=
fmt
.
i_visible_width
=
width
;
fmt
.
i_height
=
fmt
.
i_visible_height
=
height
;
fmt
.
i_height
=
fmt
.
i_visible_height
=
height
;
fmt
.
i_sar_num
=
0
;
fmt
.
i_sar_num
=
1
;
fmt
.
i_sar_den
=
1
;
fmt
.
i_sar_den
=
1
;
region
=
subpicture_region_New
(
&
fmt
);
region
=
subpicture_region_New
(
&
fmt
);
...
@@ -102,7 +102,7 @@ static subpicture_region_t * vout_OSDEpgText(const char *text,
...
@@ -102,7 +102,7 @@ static subpicture_region_t * vout_OSDEpgText(const char *text,
/* Create a new subpicture region */
/* Create a new subpicture region */
video_format_Init
(
&
fmt
,
VLC_CODEC_TEXT
);
video_format_Init
(
&
fmt
,
VLC_CODEC_TEXT
);
fmt
.
i_sar_num
=
0
;
fmt
.
i_sar_num
=
1
;
fmt
.
i_sar_den
=
1
;
fmt
.
i_sar_den
=
1
;
region
=
subpicture_region_New
(
&
fmt
);
region
=
subpicture_region_New
(
&
fmt
);
...
@@ -228,15 +228,20 @@ static void OSDEpgUpdate(subpicture_t *subpic,
...
@@ -228,15 +228,20 @@ static void OSDEpgUpdate(subpicture_t *subpic,
mtime_t
ts
)
mtime_t
ts
)
{
{
subpicture_updater_sys_t
*
sys
=
subpic
->
updater
.
p_sys
;
subpicture_updater_sys_t
*
sys
=
subpic
->
updater
.
p_sys
;
VLC_UNUSED
(
fmt_
dst
);
VLC_UNUSED
(
ts
);
VLC_UNUSED
(
fmt_
src
);
VLC_UNUSED
(
ts
);
subpic
->
i_original_picture_width
=
fmt_src
->
i_width
;
video_format_t
fmt
=
*
fmt_dst
;
subpic
->
i_original_picture_height
=
fmt_src
->
i_height
;
fmt
.
i_width
=
fmt
.
i_width
*
fmt
.
i_sar_num
/
fmt
.
i_sar_den
;
fmt
.
i_visible_width
=
fmt
.
i_visible_width
*
fmt
.
i_sar_num
/
fmt
.
i_sar_den
;
fmt
.
i_x_offset
=
fmt
.
i_x_offset
*
fmt
.
i_sar_num
/
fmt
.
i_sar_den
;
subpic
->
i_original_picture_width
=
fmt
.
i_width
;
subpic
->
i_original_picture_height
=
fmt
.
i_height
;
subpic
->
p_region
=
vout_BuildOSDEpg
(
sys
->
epg
,
subpic
->
p_region
=
vout_BuildOSDEpg
(
sys
->
epg
,
fmt
_src
->
i_x_offset
,
fmt
.
i_x_offset
,
fmt
_src
->
i_y_offset
,
fmt
.
i_y_offset
,
fmt
_src
->
i_visible_width
,
fmt
.
i_visible_width
,
fmt
_src
->
i_visible_height
);
fmt
.
i_visible_height
);
}
}
static
void
OSDEpgDestroy
(
subpicture_t
*
subpic
)
static
void
OSDEpgDestroy
(
subpicture_t
*
subpic
)
...
...
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