Commit 0d04715a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

VLCMediaPlayer: Add binding to vmem related functions

parent 579ece94
......@@ -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 )
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment