diff --git a/src/LibVLCpp/VLCMediaPlayer.cpp b/src/LibVLCpp/VLCMediaPlayer.cpp index 367d8d48a6712684164a31675c55c7ceb0222dbe..41a1a5b684ae4728bc18dc567390525f4826541f 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 &toWait, const QList &cancel, CheckEventCallback callback ) diff --git a/src/LibVLCpp/VLCMediaPlayer.h b/src/LibVLCpp/VLCMediaPlayer.h index 9004d50f5e2daffa2c2346e2392586dc2207830d..240fc0dec49e33f7f0992622619a3d901aba601b 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.