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
6b45f45e
Commit
6b45f45e
authored
Apr 06, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subpicture: replace plain text by text_segment list
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
3696f331
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
include/vlc_subpicture.h
include/vlc_subpicture.h
+1
-0
src/misc/subpicture.c
src/misc/subpicture.c
+2
-2
src/video_output/video_epg.c
src/video_output/video_epg.c
+1
-1
src/video_output/video_text.c
src/video_output/video_text.c
+1
-1
No files found.
include/vlc_subpicture.h
View file @
6b45f45e
...
...
@@ -64,6 +64,7 @@ struct subpicture_region_t
int
i_align
;
/**< alignment within a region */
int
i_alpha
;
/**< transparency */
text_segment_t
*
p_text
;
/**< subtitle text, made of a list of segments */
char
*
psz_text
;
/**< text string comprising this region */
char
*
psz_html
;
/**< HTML version of subtitle (NULL = use psz_text) */
text_style_t
*
p_style
;
/**< a description of the text style formatting */
...
...
src/misc/subpicture.c
View file @
6b45f45e
...
...
@@ -248,7 +248,7 @@ void subpicture_region_Delete( subpicture_region_t *p_region )
free
(
p_region
->
fmt
.
p_palette
);
free
(
p_region
->
psz
_text
);
text_segment_ChainDelete
(
p_region
->
p
_text
);
free
(
p_region
->
psz_html
);
if
(
p_region
->
p_style
)
text_style_Delete
(
p_region
->
p_style
);
...
...
@@ -304,7 +304,7 @@ subpicture_region_t* subpicture_region_Copy( subpicture_region_t *p_region_src )
p_region_dst
->
i_align
=
p_region_src
->
i_align
;
p_region_dst
->
i_alpha
=
p_region_src
->
i_alpha
;
p_region_dst
->
p
sz_text
=
p_region_src
->
psz_text
?
strdup
(
p_region_src
->
psz_text
)
:
NULL
;
p_region_dst
->
p
_text
=
text_segment_Copy
(
p_region_src
->
p_text
)
;
p_region_dst
->
psz_html
=
p_region_src
->
psz_html
?
strdup
(
p_region_src
->
psz_html
)
:
NULL
;
if
(
p_region_src
->
p_style
!=
NULL
)
{
p_region_dst
->
p_style
=
text_style_New
();
...
...
src/video_output/video_epg.c
View file @
6b45f45e
...
...
@@ -113,7 +113,7 @@ static subpicture_region_t * vout_OSDEpgText(const char *text,
return
NULL
;
/* Set subpicture parameters */
region
->
p
sz_text
=
strdup
(
text
);
region
->
p
_text
=
text_segment_New
(
text
);
region
->
i_align
=
0
;
region
->
i_x
=
x
;
region
->
i_y
=
y
;
...
...
src/video_output/video_text.c
View file @
6b45f45e
...
...
@@ -74,7 +74,7 @@ static void OSDTextUpdate(subpicture_t *subpic,
if
(
!
r
)
return
;
r
->
p
sz_text
=
strdup
(
sys
->
text
);
r
->
p
_text
=
text_segment_New
(
sys
->
text
);
const
float
margin_ratio
=
0
.
04
;
const
int
margin_h
=
margin_ratio
*
fmt_dst
->
i_visible_width
;
...
...
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