]> git.tdb.fi Git - xinema.git/blob - source/xineengine.h
Move the language select buttons to the bottom of the page
[xinema.git] / source / xineengine.h
1 #ifndef XINEENGINE_H_
2 #define XINEENGINE_H_
3
4 #include <pthread.h>
5 #include <sigc++/trackable.h>
6 #include <xine.h>
7 #include <msp/graphics/window.h>
8
9 class XineStream;
10
11 class XineEngine: public sigc::trackable
12 {
13 private:
14         Msp::Graphics::Window &window;
15         xine_t *engine;
16         xine_audio_port_t *audio_driver;
17         x11_visual_t visual;
18         xine_video_port_t *video_driver;
19         Msp::Graphics::Window::Event *pending_expose;
20         std::list<XineStream *> streams;
21
22 public:
23         XineEngine(Msp::Graphics::Window &);
24         ~XineEngine();
25
26         xine_t *get_engine() { return engine; }
27         xine_audio_port_t *get_audio_driver() { return audio_driver; }
28         xine_video_port_t *get_video_driver() { return video_driver; }
29
30         void add_stream(XineStream &);
31         void remove_stream(XineStream &);
32
33         void tick();
34
35 private:
36         void window_exposed(unsigned, unsigned, unsigned, unsigned, const Msp::Graphics::Window::Event &);
37
38         static void dest_size_cb(void *, int, int, double, int *, int *, double *);
39         static void frame_output_cb(void *, int, int, double, int *, int *, int *, int *, double *, int *, int *);
40 };
41
42 #endif