<html><head></head><body>It's "really about" providing an OpenGL context and a surface. While I agree that "output" is not the best of name, "surface" does not strike me as much of an improvement - compare "glcontext" or "glsurface".<br><br><div class="gmail_quote">Le 25 janvier 2019 17:47:00 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> 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">It's really about surface rendering<hr> doc/libvlc/sdl_opengl_player.cpp | 4 ++--<br> include/vlc/libvlc_media_player.h | 16 ++++++++--------<br> lib/libvlc.sym | 2 +-<br> lib/media_player.c | 2 +-<br> 4 files changed, 12 insertions(+), 12 deletions(-)<br><br>diff --git a/doc/libvlc/sdl_opengl_player.cpp b/doc/libvlc/sdl_opengl_player.cpp<br>index d34b99b268..10a01c2a17 100644<br>--- a/doc/libvlc/sdl_opengl_player.cpp<br>+++ b/doc/libvlc/sdl_opengl_player.cpp<br>@@ -16,7 +16,7 @@<br> #include <vlc/vlc.h><br> <br> /*<br>- * This program show how to use libvlc_video_set_output_callbacks API.<br>+ * This program show how to use libvlc_video_set_surface_callbacks API.<br> *<br> * The main idea is to set up libvlc to render into FBO, and to use a<br> * triple buffer mechanism to share textures between VLC and the rendering<br>@@ -79,7 +79,7 @@ public:<br> return false;<br> }<br> // Define the opengl rendering callbacks<br>- libvlc_video_set_output_callbacks(m_mp, libvlc_video_engine_opengl,<br>+ libvlc_video_set_surface_callbacks(m_mp, libvlc_video_engine_opengl,<br> setup, cleanup, resize, swap,<br> make_current, get_proc_address,<br> this);<br>diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h<br>index 2e4aff7a2b..e75d7a3534 100644<br>--- a/include/vlc/libvlc_media_player.h<br>+++ b/include/vlc/libvlc_media_player.h<br>@@ -459,7 +459,7 @@ void libvlc_video_set_format_callbacks( libvlc_media_player_t *mp,<br> /**<br> * Callback prototype called to initialize user data.<br> *<br>- * \param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN]<br>+ * \param opaque private pointer passed to the @a libvlc_video_set_surface_callbacks() [IN]<br> * \return true on success<br> * \version LibVLC 4.0.0 or later<br> */<br>@@ -469,7 +469,7 @@ typedef bool (*libvlc_video_setup_cb)(void* opaque);<br> /**<br> * Callback prototype called to release user data<br> *<br>- * \param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN]<br>+ * \param opaque private pointer passed to the @a libvlc_video_set_surface_callbacks() [IN]<br> * \version LibVLC 4.0.0 or later<br> */<br> typedef void (*libvlc_video_cleanup_cb)(void* opaque);<br>@@ -477,7 +477,7 @@ typedef void (*libvlc_video_cleanup_cb)(void* opaque);<br> /**<br> * Callback prototype called on video size changes<br> *<br>- * \param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN]<br>+ * \param opaque private pointer passed to the @a libvlc_video_set_surface_callbacks() [IN]<br> * \param width video width in pixel [IN]<br> * \param height video height in pixel [IN]<br> * \version LibVLC 4.0.0 or later<br>@@ -488,7 +488,7 @@ typedef void (*libvlc_video_update_output_cb)(void* opaque, unsigned width, unsi<br> /**<br> * Callback prototype called after performing drawing calls.<br> *<br>- * \param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN]<br>+ * \param opaque private pointer passed to the @a libvlc_video_set_surface_callbacks() [IN]<br> * \version LibVLC 4.0.0 or later<br> */<br> typedef void (*libvlc_video_swap_cb)(void* opaque);<br>@@ -496,7 +496,7 @@ typedef void (*libvlc_video_swap_cb)(void* opaque);<br> /**<br> * Callback prototype to set up the OpenGL context for rendering<br> *<br>- * \param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN]<br>+ * \param opaque private pointer passed to the @a libvlc_video_set_surface_callbacks() [IN]<br> * \param enter true to set the context as current, false to unset it [IN]<br> * \return true on success<br> * \version LibVLC 4.0.0 or later<br>@@ -506,7 +506,7 @@ typedef bool (*libvlc_video_makeCurrent_cb)(void* opaque, bool enter);<br> /**<br> * Callback prototype to load opengl functions<br> *<br>- * \param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN]<br>+ * \param opaque private pointer passed to the @a libvlc_video_set_surface_callbacks() [IN]<br> * \param fct_name name of the opengl function to load<br> * \return a pointer to the named OpenGL function the NULL otherwise<br> * \version LibVLC 4.0.0 or later<br>@@ -515,7 +515,7 @@ typedef void* (*libvlc_video_getProcAddress_cb)(void* opaque, const char* fct_na<br> <br> /**<br> * Enumeration of the Video engine to be used on output.<br>- * can be passed to @a libvlc_video_set_output_callbacks<br>+ * can be passed to @a libvlc_video_set_surface_callbacks<br> */<br> typedef enum libvlc_video_engine_t {<br> libvlc_video_engine_opengl,<br>@@ -543,7 +543,7 @@ typedef enum libvlc_video_engine_t {<br> * \version LibVLC 4.0.0 or later<br> */<br> LIBVLC_API<br>-int libvlc_video_set_output_callbacks( libvlc_media_player_t *mp,<br>+int libvlc_video_set_surface_callbacks( libvlc_media_player_t *mp,<br> libvlc_video_engine_t engine,<br> libvlc_video_setup_cb setup_cb,<br> libvlc_video_cleanup_cb cleanup_cb,<br>diff --git a/lib/libvlc.sym b/lib/libvlc.sym<br>index 285cf4f7af..e948b57120 100644<br>--- a/lib/libvlc.sym<br>+++ b/lib/libvlc.sym<br>@@ -246,7 +246,7 @@ libvlc_video_set_crop_geometry<br> libvlc_video_set_deinterlace<br> libvlc_video_set_format<br> libvlc_video_set_format_callbacks<br>-libvlc_video_set_output_callbacks<br>+libvlc_video_set_surface_callbacks<br> libvlc_video_set_key_input<br> libvlc_video_set_logo_int<br> libvlc_video_set_logo_string<br>diff --git a/lib/media_player.c b/lib/media_player.c<br>index 4079efd4b0..5b42feba37 100644<br>--- a/lib/media_player.c<br>+++ b/lib/media_player.c<br>@@ -1160,7 +1160,7 @@ void libvlc_video_set_format( libvlc_media_player_t *mp, const char *chroma,<br> var_SetInteger( mp, "vmem-pitch", pitch );<br> }<br> <br>-int libvlc_video_set_output_callbacks( libvlc_media_player_t *mp,<br>+int libvlc_video_set_surface_callbacks( libvlc_media_player_t *mp,<br> libvlc_video_engine_t engine,<br> libvlc_video_setup_cb setup_cb,<br> libvlc_video_cleanup_cb cleanup_cb,</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>