2
// libavg - Media Playback Engine.
3
// Copyright (C) 2003-2008 Ulrich von Zadow
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.
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.
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
19
// Current versions can be found at www.libavg.de
25
#include "RasterNode.h"
27
#include "../base/Rect.h"
35
class VideoBase : public RasterNode
38
static NodeDefinition getNodeDefinition();
40
virtual ~VideoBase ();
41
void setRenderingEngines(DisplayEngine * pDisplayEngine, AudioEngine * pAudioEngine);
47
virtual double getFPS() = 0;
49
virtual void render (const DRect& Rect);
50
virtual std::string dump (int indent = 0);
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);
60
void renderToBackbuffer();
63
virtual bool renderToSurface(ISurface * pSurface) = 0;
64
virtual void open(YCbCrMode ycbcrMode) = 0;
65
virtual void close() = 0;
66
virtual PixelFormat getPixelFormat() = 0;
68
VideoState m_VideoState;
70
bool m_bFrameAvailable;
71
bool m_bFirstFrameDecoded;