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
5d3932a3
Commit
5d3932a3
authored
Jan 09, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set text scale only once per subpicture.
parent
cb77eb08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+4
-4
No files found.
src/video_output/vout_subpictures.c
View file @
5d3932a3
...
@@ -260,7 +260,7 @@ static filter_t *SpuRenderCreateAndLoadScale( vlc_object_t *p_obj,
...
@@ -260,7 +260,7 @@ static filter_t *SpuRenderCreateAndLoadScale( vlc_object_t *p_obj,
static
void
SpuRenderText
(
spu_t
*
p_spu
,
bool
*
pb_rerender_text
,
static
void
SpuRenderText
(
spu_t
*
p_spu
,
bool
*
pb_rerender_text
,
subpicture_region_t
*
p_region
,
subpicture_region_t
*
p_region
,
int
i_min_scale_ratio
,
mtime_t
render_date
)
mtime_t
render_date
)
{
{
filter_t
*
p_text
=
p_spu
->
p
->
p_text
;
filter_t
*
p_text
=
p_spu
->
p
->
p_text
;
...
@@ -290,7 +290,6 @@ static void SpuRenderText( spu_t *p_spu, bool *pb_rerender_text,
...
@@ -290,7 +290,6 @@ static void SpuRenderText( spu_t *p_spu, bool *pb_rerender_text,
*/
*/
var_SetTime
(
p_text
,
"spu-elapsed"
,
render_date
);
var_SetTime
(
p_text
,
"spu-elapsed"
,
render_date
);
var_SetBool
(
p_text
,
"text-rerender"
,
false
);
var_SetBool
(
p_text
,
"text-rerender"
,
false
);
var_SetInteger
(
p_text
,
"scale"
,
i_min_scale_ratio
);
if
(
p_text
->
pf_render_html
&&
p_region
->
psz_html
)
if
(
p_text
->
pf_render_html
&&
p_region
->
psz_html
)
{
{
...
@@ -738,9 +737,8 @@ static void SpuRenderRegion( spu_t *p_spu,
...
@@ -738,9 +737,8 @@ static void SpuRenderRegion( spu_t *p_spu,
/* Render text region */
/* Render text region */
if
(
p_region
->
fmt
.
i_chroma
==
VLC_CODEC_TEXT
)
if
(
p_region
->
fmt
.
i_chroma
==
VLC_CODEC_TEXT
)
{
{
const
int
i_min_scale_ratio
=
SCALE_UNIT
;
/* FIXME what is the right value? (scale_size is not) */
SpuRenderText
(
p_spu
,
&
b_restore_text
,
p_region
,
SpuRenderText
(
p_spu
,
&
b_restore_text
,
p_region
,
i_min_scale_ratio
,
render_date
);
render_date
);
/* Check if the rendering has failed ... */
/* Check if the rendering has failed ... */
if
(
p_region
->
fmt
.
i_chroma
==
VLC_CODEC_TEXT
)
if
(
p_region
->
fmt
.
i_chroma
==
VLC_CODEC_TEXT
)
...
@@ -1108,6 +1106,8 @@ static subpicture_t *SpuRenderSubpictures( spu_t *p_spu,
...
@@ -1108,6 +1106,8 @@ static subpicture_t *SpuRenderSubpictures( spu_t *p_spu,
p_sys
->
p_text
->
fmt_out
.
video
.
i_height
=
p_sys
->
p_text
->
fmt_out
.
video
.
i_height
=
p_sys
->
p_text
->
fmt_out
.
video
.
i_visible_height
=
i_render_height
;
p_sys
->
p_text
->
fmt_out
.
video
.
i_visible_height
=
i_render_height
;
var_SetInteger
(
p_sys
->
p_text
,
"scale"
,
SCALE_UNIT
);
}
}
/* Compute scaling from picture to source size */
/* Compute scaling from picture to source size */
...
...
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