Miam-Player  0.8.0
A nice music player
QPainterRenderer.h
Go to the documentation of this file.
1 /******************************************************************************
2  QtAV: Multimedia framework based on Qt and FFmpeg
3  Copyright (C) 2012-2016 Wang Bin <wbsecg1@gmail.com>
4 
5 * This file is part of QtAV
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Lesser General Public
9  License as published by the Free Software Foundation; either
10  version 2.1 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 ******************************************************************************/
21 
22 #ifndef QAV_QPAINTERRENDERER_H
23 #define QAV_QPAINTERRENDERER_H
24 
25 #include <QtAV/VideoRenderer.h>
26 #include <QtGui/QImage>
27 //TODO: not abstract.
28 namespace QtAV {
29 
30 class QPainterRendererPrivate;
32 {
34 public:
36  bool isSupported(VideoFormat::PixelFormat pixfmt) const Q_DECL_OVERRIDE;
37 protected:
38  bool preparePixmap(const VideoFrame& frame);
39  void drawBackground() Q_DECL_OVERRIDE;
40  //draw the current frame using the current paint engine. called by paintEvent()
41  void drawFrame() Q_DECL_OVERRIDE;
42 
44 };
45 
46 } //namespace QtAV
47 #endif // QAV_QPAINTERRENDERER_H
Definition: QPainterRenderer.h:31
#define Q_AV_EXPORT
Definition: QtAV_Global.h:40
#define DPTR_DECLARE_PRIVATE(Class)
Definition: dptr.h:107
PixelFormat
The PixelFormat enum 32 bit rgba format enum name indicates it&#39;s channel layout.
Definition: VideoFormat.h:51
Definition: VideoFrame.h:32
AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize...
Definition: AudioDecoder.h:31
#define Q_DECL_OVERRIDE
Definition: QtAV_Global.h:177
Definition: QPainterRenderer_p.h:32
Definition: VideoRenderer.h:51