[vlmc-devel] VLCMediaPlayer: Add binding to vmem related functions

Hugo Beauzée-Luyssen git at videolan.org
Sat Feb 15 23:54:48 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Feb 16 00:22:17 2014 +0200| [0d04715a2a0874904886ab57d33fd0373cb06d36] | committer: Hugo Beauzée-Luyssen

VLCMediaPlayer: Add binding to vmem related functions

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=0d04715a2a0874904886ab57d33fd0373cb06d36
---

 src/LibVLCpp/VLCMediaPlayer.cpp |   10 ++++++++++
 src/LibVLCpp/VLCMediaPlayer.h   |    6 ++++++
 2 files changed, 16 insertions(+)

diff --git a/src/LibVLCpp/VLCMediaPlayer.cpp b/src/LibVLCpp/VLCMediaPlayer.cpp
index 367d8d4..41a1a5b 100644
--- a/src/LibVLCpp/VLCMediaPlayer.cpp
+++ b/src/LibVLCpp/VLCMediaPlayer.cpp
@@ -360,6 +360,16 @@ void MediaPlayer::disableTitle()
     libvlc_media_player_set_video_title_display( *this, libvlc_position_disable, 0 );
 }
 
+void MediaPlayer::setupVmemCallbacks(libvlc_video_lock_cb lock, libvlc_video_unlock_cb unlock, libvlc_video_display_cb display, void *data)
+{
+    libvlc_video_set_callbacks( *this, lock, unlock, display, data );
+}
+
+void MediaPlayer::setupVmem(const char *chroma, unsigned int width, unsigned int height, unsigned int pitch)
+{
+    libvlc_video_set_format( *this, chroma, width, height, pitch );
+}
+
 void
 MediaPlayer::configureWaitForEvent( const QList<int> &toWait, const QList<int> &cancel,
                                     CheckEventCallback callback )
diff --git a/src/LibVLCpp/VLCMediaPlayer.h b/src/LibVLCpp/VLCMediaPlayer.h
index 9004d50..240fc0d 100644
--- a/src/LibVLCpp/VLCMediaPlayer.h
+++ b/src/LibVLCpp/VLCMediaPlayer.h
@@ -31,6 +31,8 @@
 
 #include "VLCpp.hpp"
 
+#include "vlc/vlc.h"
+
 struct  libvlc_media_player_t;
 struct  libvlc_event_t;
 struct  libvlc_event_manager_t;
@@ -83,6 +85,10 @@ namespace   LibVLCpp
         void                                setKeyInput( bool enabled );
         void                                setAudioOutput(const char* module);
         void                                disableTitle();
+        void                                setupVmemCallbacks( libvlc_video_lock_cb lock, libvlc_video_unlock_cb unlock,
+                                                        libvlc_video_display_cb display, void* data );
+        void                                setupVmem( const char* chroma, unsigned int width,
+                                                       unsigned int height, unsigned int pitch );
 
         /**
          * @brief configure the usage of waitForEvent.



More information about the Vlmc-devel mailing list