~ubuntu-branches/ubuntu/utopic/libavg/utopic

« back to all changes in this revision

Viewing changes to src/player/VideoBase.h

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2010-05-02 23:50:04 UTC
  • mfrom: (1.1.4 upstream) (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100502235004-i6u38zelbi2k12ii
Tags: 1.0.1-1
* new upstream release (Closes: #565512)
* Remove patches that have been merged upstream.
* Add a patch that avoids building tests by default.
* Remove .py extension from two more scripts in /usr/bin .
* Add 2 example files to /usr/share/doc/python-libavg/examples/ .
* Describe a workaround for bug #579937 in README.Debian.
* Install debian/libavg.pth into /usr/share/pyshared/ .
  (Closes: #575551)
* Add get-orig-source target to debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
//  libavg - Media Playback Engine. 
3
 
//  Copyright (C) 2003-2008 Ulrich von Zadow
4
 
//
5
 
//  This library is free software; you can redistribute it and/or
6
 
//  modify it under the terms of the GNU Lesser General Public
7
 
//  License as published by the Free Software Foundation; either
8
 
//  version 2 of the License, or (at your option) any later version.
9
 
//
10
 
//  This library is distributed in the hope that it will be useful,
11
 
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
//  Lesser General Public License for more details.
14
 
//
15
 
//  You should have received a copy of the GNU Lesser General Public
16
 
//  License along with this library; if not, write to the Free Software
17
 
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
 
//
19
 
//  Current versions can be found at www.libavg.de
20
 
//
21
 
 
22
 
#ifndef _VideoBase_H_
23
 
#define _VideoBase_H_
24
 
 
25
 
#include "RasterNode.h"
26
 
 
27
 
#include "../base/Rect.h"
28
 
 
29
 
#include <string>
30
 
 
31
 
class ISurface;
32
 
 
33
 
namespace avg {
34
 
 
35
 
class VideoBase : public RasterNode
36
 
{
37
 
    public:
38
 
        static NodeDefinition getNodeDefinition();
39
 
        
40
 
        virtual ~VideoBase ();
41
 
        void setRenderingEngines(DisplayEngine * pDisplayEngine, AudioEngine * pAudioEngine);
42
 
        void disconnect();
43
 
        
44
 
        void play();
45
 
        void stop();
46
 
        void pause();
47
 
        virtual double getFPS() = 0;
48
 
        
49
 
        virtual void render (const DRect& Rect);
50
 
        virtual std::string dump (int indent = 0);
51
 
        
52
 
    protected:        
53
 
        VideoBase (Player * pPlayer);
54
 
        typedef enum VideoState {Unloaded, Paused, Playing};
55
 
        virtual VideoState getVideoState() const;
56
 
        void setFrameAvailable(bool bAvailable);
57
 
        virtual void changeVideoState(VideoState NewVideoState);
58
 
   
59
 
    private:
60
 
        void renderToBackbuffer();
61
 
        void open();
62
 
 
63
 
        virtual bool renderToSurface(ISurface * pSurface) = 0;
64
 
        virtual void open(YCbCrMode ycbcrMode) = 0;
65
 
        virtual void close() = 0;
66
 
        virtual PixelFormat getPixelFormat() = 0;
67
 
 
68
 
        VideoState m_VideoState;
69
 
 
70
 
        bool m_bFrameAvailable;
71
 
        bool m_bFirstFrameDecoded;
72
 
};
73
 
 
74
 
}
75
 
 
76
 
#endif 
77