Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp index b2143a0..748ae1f 100644 --- a/noncore/multimedia/opieplayer2/lib.cpp +++ b/noncore/multimedia/opieplayer2/lib.cpp | |||
@@ -51,24 +51,25 @@ typedef void (*display_xine_frame_t) (void *user_data, uint8_t* frame, | |||
51 | 51 | ||
52 | extern "C" { | 52 | extern "C" { |
53 | vo_driver_t* init_video_out_plugin( config_values_t* conf, void* video); | 53 | vo_driver_t* init_video_out_plugin( config_values_t* conf, void* video); |
54 | int null_is_showing_video( vo_driver_t* self ); | 54 | int null_is_showing_video( vo_driver_t* self ); |
55 | void null_set_show_video( vo_driver_t* self, int show ); | 55 | void null_set_show_video( vo_driver_t* self, int show ); |
56 | int null_is_fullscreen( vo_driver_t* self ); | 56 | int null_is_fullscreen( vo_driver_t* self ); |
57 | void null_set_fullscreen( vo_driver_t* self, int screen ); | 57 | void null_set_fullscreen( vo_driver_t* self, int screen ); |
58 | int null_is_scaling( vo_driver_t* self ); | 58 | int null_is_scaling( vo_driver_t* self ); |
59 | void null_set_scaling( vo_driver_t* self, int scale ); | 59 | void null_set_scaling( vo_driver_t* self, int scale ); |
60 | void null_set_gui_width( vo_driver_t* self, int width ); | 60 | void null_set_gui_width( vo_driver_t* self, int width ); |
61 | void null_set_gui_height( vo_driver_t* self, int height ); | 61 | void null_set_gui_height( vo_driver_t* self, int height ); |
62 | void null_set_mode( vo_driver_t* self, int depth, int rgb ); | 62 | void null_set_mode( vo_driver_t* self, int depth, int rgb ); |
63 | void null_set_videoGamma( vo_driver_t* self , int value ); | ||
63 | void null_display_handler(vo_driver_t* self, display_xine_frame_t t, void* user_data); | 64 | void null_display_handler(vo_driver_t* self, display_xine_frame_t t, void* user_data); |
64 | } | 65 | } |
65 | 66 | ||
66 | using namespace XINE; | 67 | using namespace XINE; |
67 | 68 | ||
68 | Lib::Lib(XineVideoWidget* widget) { | 69 | Lib::Lib(XineVideoWidget* widget) { |
69 | m_video = false; | 70 | m_video = false; |
70 | m_wid = widget; | 71 | m_wid = widget; |
71 | printf("Lib"); | 72 | printf("Lib"); |
72 | QCString str( getenv("HOME") ); | 73 | QCString str( getenv("HOME") ); |
73 | str += "/Settings/opiexine.cf"; | 74 | str += "/Settings/opiexine.cf"; |
74 | // get the configuration | 75 | // get the configuration |
@@ -194,24 +195,30 @@ void Lib::setShowVideo( bool video ) { | |||
194 | bool Lib::isShowingVideo() { | 195 | bool Lib::isShowingVideo() { |
195 | return ::null_is_showing_video( m_videoOutput ); | 196 | return ::null_is_showing_video( m_videoOutput ); |
196 | } | 197 | } |
197 | void Lib::showVideoFullScreen( bool fullScreen ) { | 198 | void Lib::showVideoFullScreen( bool fullScreen ) { |
198 | ::null_set_fullscreen( m_videoOutput, fullScreen ); | 199 | ::null_set_fullscreen( m_videoOutput, fullScreen ); |
199 | } | 200 | } |
200 | bool Lib::isVideoFullScreen() { | 201 | bool Lib::isVideoFullScreen() { |
201 | return ::null_is_fullscreen( m_videoOutput ); | 202 | return ::null_is_fullscreen( m_videoOutput ); |
202 | } | 203 | } |
203 | void Lib::setScaling( bool scale ) { | 204 | void Lib::setScaling( bool scale ) { |
204 | ::null_set_scaling( m_videoOutput, scale ); | 205 | ::null_set_scaling( m_videoOutput, scale ); |
205 | } | 206 | } |
207 | |||
208 | void Lib::setGamma( int value ) { | ||
209 | //qDebug( QString( "%1").arg(value) ); | ||
210 | ::null_set_videoGamma( m_videoOutput, value ); | ||
211 | } | ||
212 | |||
206 | bool Lib::isScaling() { | 213 | bool Lib::isScaling() { |
207 | return ::null_is_scaling( m_videoOutput ); | 214 | return ::null_is_scaling( m_videoOutput ); |
208 | } | 215 | } |
209 | void Lib::xine_event_handler( void* user_data, xine_event_t* t ) { | 216 | void Lib::xine_event_handler( void* user_data, xine_event_t* t ) { |
210 | ((Lib*)user_data)->handleXineEvent( t ); | 217 | ((Lib*)user_data)->handleXineEvent( t ); |
211 | } | 218 | } |
212 | void Lib::xine_display_frame( void* user_data, uint8_t *frame, | 219 | void Lib::xine_display_frame( void* user_data, uint8_t *frame, |
213 | int width, int height, int bytes ) { | 220 | int width, int height, int bytes ) { |
214 | 221 | ||
215 | ((Lib*)user_data)->drawFrame( frame, width, height, bytes ); | 222 | ((Lib*)user_data)->drawFrame( frame, width, height, bytes ); |
216 | } | 223 | } |
217 | void Lib::drawFrame( uint8_t* frame, int width, int height, int bytes ) { | 224 | void Lib::drawFrame( uint8_t* frame, int width, int height, int bytes ) { |