Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 9 |
1 files changed, 8 insertions, 1 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 | |||
@@ -57,12 +57,13 @@ extern "C" { | |||
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) { |
@@ -89,13 +90,13 @@ Lib::Lib(XineVideoWidget* widget) { | |||
89 | m_audioOutput= xine_load_audio_output_plugin( m_config, "oss") ; | 90 | m_audioOutput= xine_load_audio_output_plugin( m_config, "oss") ; |
90 | m_videoOutput = ::init_video_out_plugin( m_config, NULL ); | 91 | m_videoOutput = ::init_video_out_plugin( m_config, NULL ); |
91 | if (m_wid != 0 ) { | 92 | if (m_wid != 0 ) { |
92 | printf("!0\n" ); | 93 | printf("!0\n" ); |
93 | resize ( m_wid-> size ( )); | 94 | resize ( m_wid-> size ( )); |
94 | ::null_set_mode( m_videoOutput, qt_screen->depth(), qt_screen->pixelType() ); | 95 | ::null_set_mode( m_videoOutput, qt_screen->depth(), qt_screen->pixelType() ); |
95 | m_wid-> setImage ( new QImage ( Resource::loadImage(""))); | 96 | m_wid-> setImage ( new QImage ( Resource::loadImage("") ) ); |
96 | m_wid->repaint(); | 97 | m_wid->repaint(); |
97 | } | 98 | } |
98 | null_display_handler( m_videoOutput, | 99 | null_display_handler( m_videoOutput, |
99 | xine_display_frame, | 100 | xine_display_frame, |
100 | this ); | 101 | this ); |
101 | 102 | ||
@@ -200,12 +201,18 @@ void Lib::showVideoFullScreen( bool fullScreen ) { | |||
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 | } |