Miam-Player  0.8.0
A nice music player
Frame_p.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 (from 2013)
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 QTAV_FRAME_P_H
23 #define QTAV_FRAME_P_H
24 
25 #include <QtAV/QtAV_Global.h>
26 #include <QtCore/QVector>
27 #include <QtCore/QVariant>
28 #include <QtCore/QSharedData>
29 
30 namespace QtAV {
31 
32 class Frame;
33 class FramePrivate : public QSharedData
34 {
35  Q_DISABLE_COPY(FramePrivate)
36 public:
38  : timestamp(0)
39  {}
40  virtual ~FramePrivate() {}
41 
42  QVector<uchar*> planes; //slice
43  QVector<int> line_sizes; //stride
44  QVariantMap metadata;
45  QByteArray data;
46  qreal timestamp;
47 };
48 
49 } //namespace QtAV
50 
51 #endif // QTAV_Frame_P_H
QVector< uchar * > planes
Definition: Frame_p.h:42
QByteArray data
Definition: Frame_p.h:45
QVector< int > line_sizes
Definition: Frame_p.h:43
FramePrivate()
Definition: Frame_p.h:37
qreal timestamp
Definition: Frame_p.h:46
AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize...
Definition: AudioDecoder.h:31
Definition: Frame_p.h:33
QVariantMap metadata
Definition: Frame_p.h:44
virtual ~FramePrivate()
Definition: Frame_p.h:40