[vlc-commits] api: allow to change A/R on the fly.
Francois Cartegnie
git at videolan.org
Mon Dec 30 15:42:10 CET 2013
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Dec 28 23:36:24 2013 +0100| [86dde348a747c8a4347651962f4511c335b8a89d] | committer: Francois Cartegnie
api: allow to change A/R on the fly.
ASF allows specifying a new aspect ratio while playing back.
Triggering change using the "aspect-ratio" variable can't work
for unknown A/R as the variable is "Checked" type.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86dde348a747c8a4347651962f4511c335b8a89d
---
include/vlc_vout.h | 3 +++
src/libvlccore.sym | 1 +
src/video_output/video_output.c | 6 ++++++
3 files changed, 10 insertions(+)
diff --git a/include/vlc_vout.h b/include/vlc_vout.h
index 2d6c180..b39e49b 100644
--- a/include/vlc_vout.h
+++ b/include/vlc_vout.h
@@ -145,6 +145,9 @@ VLC_API int vout_GetSnapshot( vout_thread_t *p_vout,
video_format_t *p_fmt,
const char *psz_format, mtime_t i_timeout );
+VLC_API void vout_ChangeAspectRatio( vout_thread_t *p_vout,
+ unsigned int i_num, unsigned int i_den );
+
/* */
VLC_API picture_t * vout_GetPicture( vout_thread_t * );
VLC_API void vout_PutPicture( vout_thread_t *, picture_t * );
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 7943300..f9c36cb 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -593,6 +593,7 @@ vlm_MessageDelete
vlm_MessageNew
vlm_MessageSimpleNew
vlm_New
+vout_ChangeAspectRatio
vout_Close
vout_GetPicture
vout_PutPicture
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index f9e52cd..6739d4c 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -487,6 +487,12 @@ int vout_GetSnapshot(vout_thread_t *vout,
return VLC_SUCCESS;
}
+void vout_ChangeAspectRatio( vout_thread_t *p_vout,
+ unsigned int i_num, unsigned int i_den )
+{
+ vout_ControlChangeSampleAspectRatio( p_vout, i_num, i_den );
+}
+
/* vout_Control* are usable by anyone at anytime */
void vout_ControlChangeFullscreen(vout_thread_t *vout, bool fullscreen)
{
More information about the vlc-commits
mailing list