MythTV  master
visual.h
Go to the documentation of this file.
1 // Copyright (c) 2000-2001 Brad Hughes <bhughes@trolltech.com>
2 //
3 // Use, modification and distribution is allowed without limitation,
4 // warranty, or liability of any kind.
5 //
6 
7 #ifndef VISUAL_H
8 #define VISUAL_H
9 
10 #include <QMutex>
11 
12 class Decoder;
13 class AudioOutput;
14 namespace MythTV
15 {
16 class Visual
17 {
18 public:
19  Visual() { ; }
20  virtual ~Visual() { ; }
21 
22  virtual void add(const void *b, unsigned long b_len, unsigned long w, int c, int p) = 0;
23  virtual void prepare() = 0;
24 
25  QMutex *mutex() { return &m_mtx; }
26 
27 
28 private:
29  QMutex m_mtx;
30 };
31 };
32 
33 #endif // VISUAL_H
MythTV::Visual::prepare
virtual void prepare()=0
MythTV::Visual
Definition: visual.h:17
AudioOutput
Definition: audiooutput.h:26
Decoder
Definition: decoder.h:66
MythTV
Definition: output.h:25
hardwareprofile.config.p
p
Definition: config.py:33
MythTV::Visual::mutex
QMutex * mutex()
Definition: visual.h:25
MythTV::Visual::~Visual
virtual ~Visual()
Definition: visual.h:20
MythTV::Visual::Visual
Visual()
Definition: visual.h:19
MythTV::Visual::m_mtx
QMutex m_mtx
Definition: visual.h:29
MythTV::Visual::add
virtual void add(const void *b, unsigned long b_len, unsigned long w, int c, int p)=0