Miam-Player  0.8.0
A nice music player
AVOutput_p.h
Go to the documentation of this file.
1 /******************************************************************************
2  QtAV: Multimedia framework based on Qt and FFmpeg
3  Copyright (C) 2012-2013 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 QTAV_AVOUTPUT_P_H
23 #define QTAV_AVOUTPUT_P_H
24 
25 #include <QtCore/QList>
26 #include <QtCore/QMutex>
27 #include <QtCore/QWaitCondition>
28 #include <QtAV/QtAV_Global.h>
29 
30 namespace QtAV {
31 
32 class AVOutput;
33 class AVDecoder;
34 class Filter;
35 class VideoFilterContext;
36 class Statistics;
37 class OutputSet;
39 {
40 public:
42  paused(false)
43  , available(true)
44  , statistics(0)
45  , filter_context(0)
46  {}
47  virtual ~AVOutputPrivate();
48 
49  bool paused;
50  bool available;
51  QMutex mutex; //pause
52  QWaitCondition cond; //pause
53 
54  //paintEvent is in main thread, copy it(only dynamic information) is better.
55  //the static data are copied from AVPlayer when open
56  Statistics *statistics; //do not own the ptr. just use AVPlayer's statistics ptr
57  VideoFilterContext *filter_context; //create internally by the renderer with correct type
58  QList<Filter*> filters;
59  QList<Filter*> pending_uninstall_filters;
60  QList<OutputSet*> output_sets;
61 };
62 
63 } //namespace QtAV
64 #endif // QTAV_AVOUTPUT_P_H
QMutex mutex
Definition: AVOutput_p.h:51
Statistics * statistics
Definition: AVOutput_p.h:56
QList< Filter * > filters
Definition: AVOutput_p.h:58
QList< OutputSet * > output_sets
Definition: AVOutput_p.h:60
#define Q_AV_PRIVATE_EXPORT
Definition: QtAV_Global.h:43
Definition: AVOutput_p.h:38
Definition: FilterContext.h:41
QWaitCondition cond
Definition: AVOutput_p.h:52
VideoFilterContext * filter_context
Definition: AVOutput_p.h:57
bool available
Definition: AVOutput_p.h:50
QList< Filter * > pending_uninstall_filters
Definition: AVOutput_p.h:59
bool paused
Definition: AVOutput_p.h:49
Definition: dptr.h:123
Definition: Statistics.h:35
AVOutputPrivate()
Definition: AVOutput_p.h:41
AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize...
Definition: AudioDecoder.h:31