<html><head></head><body>A float ratio would seem more natural than an integer percentage.<br><br><div class="gmail_quote">Le 19 avril 2020 11:14:32 GMT+03:00, Mark Lee <mark.lee@capricasoftware.co.uk> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><hr> include/vlc/libvlc_media_player.h | 9 +++++++++<br> lib/libvlc.sym | 1 +<br> lib/video.c | 11 +++++++++++<br> 3 files changed, 21 insertions(+)<br><br>diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h<br>index 5e0255a10a..8ebe37d4fa 100644<br>--- a/include/vlc/libvlc_media_player.h<br>+++ b/include/vlc/libvlc_media_player.h<br>@@ -1544,6 +1544,15 @@ LIBVLC_API int libvlc_video_set_spu( libvlc_media_player_t *p_mi, int i_spu );<br> */<br> LIBVLC_API int64_t libvlc_video_get_spu_delay( libvlc_media_player_t *p_mi );<br> <br>+/**<br>+ * Set the subtitle text scale.<br>+ *<br>+ * \param p_mi media player<br>+ * \param scale scale factor in the range [10;500] (default: 100)<br>+ * \version LibVLC 4.0.0 or later<br>+ */<br>+LIBVLC_API void libvlc_video_set_spu_text_scale( libvlc_media_player_t *p_mi, unsigned scale );<br>+<br> /**<br> * Set the subtitle delay. This affects the timing of when the subtitle will<br> * be displayed. Positive values result in subtitles being displayed later,<br>diff --git a/lib/libvlc.sym b/lib/libvlc.sym<br>index 67e4dcf748..5623ec87d5 100644<br>--- a/lib/libvlc.sym<br>+++ b/lib/libvlc.sym<br>@@ -248,6 +248,7 @@ libvlc_video_set_mouse_input<br> libvlc_video_set_scale<br> libvlc_video_set_spu<br> libvlc_video_set_spu_delay<br>+libvlc_video_set_spu_text_scale<br> libvlc_video_set_teletext<br> libvlc_video_set_track<br> libvlc_video_take_snapshot<br>diff --git a/lib/video.c b/lib/video.c<br>index 6f8e6d7f59..8a020c3dd7 100644<br>--- a/lib/video.c<br>+++ b/lib/video.c<br>@@ -362,6 +362,17 @@ int libvlc_video_set_spu_delay( libvlc_media_player_t *p_mi,<br> return 0;<br> }<br> <br>+void libvlc_video_set_spu_text_scale( libvlc_media_player_t *p_mi,<br>+ unsigned scale)<br>+{<br>+ vlc_player_t *player = p_mi->player;<br>+ vlc_player_Lock(player);<br>+<br>+ vlc_player_SetSubtitleTextScale(player, scale);<br>+<br>+ vlc_player_Unlock(player);<br>+}<br>+<br> static void libvlc_video_set_crop(libvlc_media_player_t *mp,<br> const char *geometry)<br> {</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>