summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h
index ab432a0..2f5bf86 100644
--- a/noncore/multimedia/opieplayer2/lib.h
+++ b/noncore/multimedia/opieplayer2/lib.h
@@ -1,30 +1,30 @@
1/* 1/*
2                This file is part of the Opie Project 2 This file is part of the Opie Project
3 3
4              Copyright (c) 2002 Max Reiss <harlekin@handhelds.org> 4 Copyright (c) 2002 Max Reiss <harlekin@handhelds.org>
5 Copyright (c) 2002 LJP <> 5 Copyright (c) 2002 LJP <>
6 Copyright (c) 2002 Holger Freyther <zecke@handhelds.org> 6 Copyright (c) 2002 Holger Freyther <zecke@handhelds.org>
7 =. 7 =.
8 .=l. 8 .=l.
9           .>+-= 9 .>+-=
10 _;:,     .>    :=|. This program is free software; you can 10_;:, .> :=|. This program is free software; you can
11.> <`_,   >  .   <= redistribute it and/or modify it under 11.> <`_, > . <= redistribute it and/or modify it under
12:`=1 )Y*s>-.--   : the terms of the GNU General Public 12:`=1 )Y*s>-.-- : the terms of the GNU General Public
13.="- .-=="i,     .._ License as published by the Free Software 13.="- .-=="i, .._ License as published by the Free Software
14 - .   .-<_>     .<> Foundation; either version 2 of the License, 14- . .-<_> .<> Foundation; either version 2 of the License,
15     ._= =}       : or (at your option) any later version. 15 ._= =} : or (at your option) any later version.
16    .%`+i>       _;_. 16 .%`+i> _;_.
17    .i_,=:_.      -<s. This program is distributed in the hope that 17 .i_,=:_. -<s. This program is distributed in the hope that
18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 18 + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
19    : ..    .:,     . . . without even the implied warranty of 19 : .. .:, . . . without even the implied warranty of
20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 20 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 21 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU
22..}^=.=       =       ; Library General Public License for more 22..}^=.= = ; Library General Public License for more
23++=   -.     .`     .: details. 23++= -. .` .: details.
24 :     =  ...= . :.=- 24: = ...= . :.=-
25 -.   .:....=;==+<; You should have received a copy of the GNU 25-. .:....=;==+<; You should have received a copy of the GNU
26  -_. . .   )=.  = Library General Public License along with 26 -_. . . )=. = Library General Public License along with
27    --        :-=` this library; see the file COPYING.LIB. 27 -- :-=` this library; see the file COPYING.LIB.
28 If not, write to the Free Software Foundation, 28 If not, write to the Free Software Foundation,
29 Inc., 59 Temple Place - Suite 330, 29 Inc., 59 Temple Place - Suite 330,
30 Boston, MA 02111-1307, USA. 30 Boston, MA 02111-1307, USA.
@@ -65,6 +65,7 @@ namespace XINE {
65 65
66 void resize ( const QSize &s ); 66 void resize ( const QSize &s );
67 67
68 int setfile(const QString& fileName);
68 int play( const QString& fileName, 69 int play( const QString& fileName,
69 int startPos = 0, 70 int startPos = 0,
70 int start_time = 0 ); 71 int start_time = 0 );
@@ -190,14 +191,14 @@ namespace XINE {
190 bool m_video:1; 191 bool m_video:1;
191 XineVideoWidget *m_wid; 192 XineVideoWidget *m_wid;
192 xine_t *m_xine; 193 xine_t *m_xine;
193 xine_stream_t *m_stream; 194 xine_stream_t *m_stream;
194 xine_cfg_entry_t *m_config; 195 xine_cfg_entry_t *m_config;
195 xine_vo_driver_t *m_videoOutput; 196 xine_vo_driver_t *m_videoOutput;
196 xine_ao_driver_t* m_audioOutput; 197 xine_ao_driver_t* m_audioOutput;
197 xine_event_queue_t *m_queue; 198 xine_event_queue_t *m_queue;
198 199
199 void handleXineEvent( const xine_event_t* t ); 200 void handleXineEvent( const xine_event_t* t );
200 void handleXineEvent( int type, int data, const char* name ); 201 void handleXineEvent( int type, int data, const char* name );
201 void drawFrame( uint8_t* frame, int width, int height, int bytes ); 202 void drawFrame( uint8_t* frame, int width, int height, int bytes );
202 // C -> C++ bridge for the event system 203 // C -> C++ bridge for the event system
203 static void xine_event_handler( void* user_data, const xine_event_t* t); 204 static void xine_event_handler( void* user_data, const xine_event_t* t);