Skip to content

Commit

Permalink
move non-public headers
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Nov 4, 2014
1 parent 6c7a4f6 commit 6d13c53
Show file tree
Hide file tree
Showing 35 changed files with 50 additions and 48 deletions.
2 changes: 1 addition & 1 deletion qml/QQuickItemRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <QtAV/FactoryDefine.h>
#include <QtAV/AVPlayer.h>
#include <QtAV/VideoRendererTypes.h> //it declares a factory we need
#include <QtAV/prepost.h>
#include "QtAV/private/prepost.h"
#include "QmlAV/QmlAVPlayer.h"
#include "QmlAV/SGVideoNode.h"

Expand Down
2 changes: 1 addition & 1 deletion src/AVCompat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
******************************************************************************/

#include "QtAV/private/AVCompat.h"
#include "QtAV/private/prepost.h"
#include "QtAV/version.h"
#include "QtAV/prepost.h"

void ffmpeg_version_print()
{
Expand Down
10 changes: 5 additions & 5 deletions src/AVDemuxThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/

#include <QtAV/AVDemuxThread.h>
#include <QtAV/AVDemuxer.h>
#include <QtAV/AVDecoder.h>
#include <QtAV/Packet.h>
#include <QtAV/AVThread.h>
#include "AVDemuxThread.h"
#include "QtAV/AVDemuxer.h"
#include "QtAV/AVDecoder.h"
#include "QtAV/Packet.h"
#include "AVThread.h"
#include <QtCore/QTimer>
#include <QtCore/QEventLoop>
#include "utils/Logger.h"
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/AVPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@
#include "QtAV/AVDemuxer.h"
#include "QtAV/AudioFormat.h"
#include "QtAV/AudioResampler.h"
#include "QtAV/AudioThread.h"
#include "QtAV/Packet.h"
#include "QtAV/AudioDecoder.h"
#include "QtAV/VideoRenderer.h"
#include "QtAV/AVClock.h"
#include "QtAV/VideoCapture.h"
#include "QtAV/VideoDecoderTypes.h"
#include "QtAV/VideoThread.h"
#include "QtAV/AVDemuxThread.h"
#include "QtAV/VideoCapture.h"
#include "QtAV/AudioOutputTypes.h"
#include "filter/FilterManager.h"
#include "output/OutputSet.h"
#include "output/video/VideoOutputEventFilter.h"
#include "AudioThread.h"
#include "VideoThread.h"
#include "AVDemuxThread.h"
#include "QtAV/private/AVCompat.h"
#include "utils/Logger.h"

Expand Down
4 changes: 2 additions & 2 deletions src/AVThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/

#include "QtAV/AVThread.h"
#include "QtAV/private/AVThread_p.h"
#include "AVThread.h"
#include "AVThread_p.h"
#include "QtAV/AVOutput.h"
#include "QtAV/Filter.h"
#include "output/OutputSet.h"
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions src/QtAV/private/AVThread_p.h → src/AVThread_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#include <QtCore/QMutex>
#include <QtCore/QMutexLocker>
#include <QtCore/QWaitCondition>
#include "QtAV/AVThread.h" //PacketQueue
#include "QtAV/Packet.h"
#include "utils/BlockingQueue.h"
//#include "AVThread.h" //PacketQueue

class QRunnable;
namespace QtAV {
Expand Down Expand Up @@ -62,7 +64,7 @@ class AVThreadPrivate : public DPtrPrivate<AVThread>
bool demux_end;
volatile bool stop; //true when packets is empty and demux is end.
AVClock *clock;
PacketQueue packets;
BlockingQueue<Packet, QQueue> packets;
AVDecoder *dec;
OutputSet *outputSet;
QMutex mutex;
Expand Down
2 changes: 1 addition & 1 deletion src/AudioResamplerFF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "QtAV/AudioResampler.h"
#include "QtAV/private/AudioResampler_p.h"
#include "QtAV/private/AVCompat.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include "utils/Logger.h"

namespace QtAV {
Expand Down
2 changes: 1 addition & 1 deletion src/AudioResamplerLibav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "QtAV/AudioResampler.h"
#include "QtAV/private/AudioResampler_p.h"
#include "QtAV/private/AVCompat.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include "utils/Logger.h"

namespace QtAV {
Expand Down
4 changes: 2 additions & 2 deletions src/AudioThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/

#include "QtAV/AudioThread.h"
#include "QtAV/private/AVThread_p.h"
#include "AudioThread.h"
#include "AVThread_p.h"
#include "QtAV/AudioDecoder.h"
#include "QtAV/Packet.h"
#include "QtAV/AudioFormat.h"
Expand Down
2 changes: 1 addition & 1 deletion src/QtAV/AudioThread.h → src/AudioThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef QAV_AUDIOTHREAD_H
#define QAV_AUDIOTHREAD_H

#include <QtAV/AVThread.h>
#include "AVThread.h"

namespace QtAV {

Expand Down
2 changes: 1 addition & 1 deletion src/ImageConverterFF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "QtAV/private/ImageConverter_p.h"
#include "QtAV/private/AVCompat.h"
#include "QtAV/private/mkid.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include "utils/Logger.h"

namespace QtAV {
Expand Down
2 changes: 1 addition & 1 deletion src/ImageConverterIPP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "QtAV/private/ImageConverter_p.h"
#include "QtAV/private/AVCompat.h"
#include "QtAV/private/mkid.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"

#if QTAV_HAVE(IPP)
#include <ipp.h>
Expand Down
4 changes: 2 additions & 2 deletions src/QtAV/FactoryDefine.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* We define the id in MyClassTypes.cpp because MyClassSubA may not be compiled(e.g. platform dependent features), but the id must be defined.
* 1. create a source file MyClassSubA.cpp and implement the required members
* 2. In MyClassSubA.cpp, add the following lines
* #include "QtAV/prepost.h" //for PRE_FUNC_ADD()
* #include "QtAV/private/prepost.h" //for PRE_FUNC_ADD()
* //we don't want to depend on MyClassTypes.h, so extern
* extern MyClassId MyClassId_SubA;
* FACTORY_REGISTER_ID_AUTO(MyClass, SubA, "SubA's name")
Expand All @@ -66,7 +66,7 @@
* just create MyClassSubA.cpp with the content:
*
* #include "MyClass.h"
* #include "QtAV/prepost.h" //for PRE_FUNC_ADD()
* #include "QtAV/private/prepost.h" //for PRE_FUNC_ADD()
* MyClassId MyClassId_SubA = some_value; //it can be used somewhere else as "extern"
* FACTORY_REGISTER_ID_AUTO(MyClass, SubA, "SubA's name")
* void RegisterMyClassSubA_Man() //call it when you need as "extern"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/VideoThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/

#include "QtAV/VideoThread.h"
#include "QtAV/private/AVThread_p.h"
#include "VideoThread.h"
#include "AVThread_p.h"
#include "QtAV/Packet.h"
#include "QtAV/AVClock.h"
#include "QtAV/VideoCapture.h"
Expand Down
2 changes: 1 addition & 1 deletion src/QtAV/VideoThread.h → src/VideoThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#ifndef QTAV_VIDEOTHREAD_H
#define QTAV_VIDEOTHREAD_H

#include <QtAV/AVThread.h>
#include "AVThread.h"
#include <QtCore/QSize>

namespace QtAV {
Expand Down
2 changes: 1 addition & 1 deletion src/codec/video/VideoDecoderCUDA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "QtAV/VideoDecoder.h"
#include "QtAV/private/VideoDecoder_p.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include <QtCore/QQueue>
#if QTAV_HAVE(DLLAPI_CUDA)
#include "dllapi.h"
Expand Down
2 changes: 1 addition & 1 deletion src/codec/video/VideoDecoderCedarv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "QtAV/private/VideoDecoder_p.h"
#include "QtAV/Packet.h"
#include "QtAV/private/AVCompat.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include <libavcodec/avcodec.h>
extern "C"
{
Expand Down
2 changes: 1 addition & 1 deletion src/codec/video/VideoDecoderDXVA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "QtAV/private/VideoDecoderFFmpegHW_p.h"
#include "QtAV/Packet.h"
#include "QtAV/private/AVCompat.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include "utils/GPUMemCopy.h"
#include "utils/Logger.h"

Expand Down
2 changes: 1 addition & 1 deletion src/codec/video/VideoDecoderFFmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "QtAV/private/VideoDecoder_p.h"
#include "QtAV/Packet.h"
#include "QtAV/private/AVCompat.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include "utils/Logger.h"

/*!
Expand Down
2 changes: 1 addition & 1 deletion src/codec/video/VideoDecoderVAAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ extern "C" {
#include "QtAV/SurfaceInterop.h"
#include "QtAV/private/AVCompat.h"
#include "utils/GPUMemCopy.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include "vaapi/vaapi_helper.h"
#include "vaapi/SurfaceInteropVAAPI.h"
#include "utils/Logger.h"
Expand Down
2 changes: 1 addition & 1 deletion src/codec/video/VideoDecoderVDA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "QtAV/private/VideoDecoderFFmpegHW_p.h"
#include "utils/GPUMemCopy.h"
#include "QtAV/private/AVCompat.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include <assert.h>

#ifdef __cplusplus
Expand Down
12 changes: 6 additions & 6 deletions src/libQtAV.pro
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ SOURCES += \
SDK_HEADERS *= \
QtAV/QtAV.h \
QtAV/dptr.h \
QtAV/prepost.h \
QtAV/QtAV_Global.h \
QtAV/AudioResampler.h \
QtAV/AudioResamplerTypes.h \
Expand Down Expand Up @@ -366,13 +365,13 @@ SDK_HEADERS *= \
SDK_PRIVATE_HEADERS *= \
QtAV/private/factory.h \
QtAV/private/mkid.h \
QtAV/private/prepost.h \
QtAV/private/singleton.h \
QtAV/private/PlayerSubtitle.h \
QtAV/private/SubtitleProcessor.h \
QtAV/private/AVCompat.h \
QtAV/private/AudioOutput_p.h \
QtAV/private/AudioResampler_p.h \
QtAV/private/AVThread_p.h \
QtAV/private/AVDecoder_p.h \
QtAV/private/AVOutput_p.h \
QtAV/private/Filter_p.h \
Expand All @@ -390,6 +389,11 @@ HEADERS *= \
$$SDK_HEADERS \
$$SDK_PRIVATE_HEADERS \
QAVIOContext.h \
AVDemuxThread.h \
AVThread.h \
AVThread_p.h \
AudioThread.h \
VideoThread.h \
filter/FilterManager.h \
subtitle/CharsetDetector.h \
subtitle/PlainText.h \
Expand All @@ -398,10 +402,6 @@ HEADERS *= \
utils/Logger.h \
utils/SharedPtr.h \
output/OutputSet.h \
QtAV/AVDemuxThread.h \
QtAV/AVThread.h \
QtAV/AudioThread.h \
QtAV/VideoThread.h \
QtAV/ColorTransform.h


Expand Down
2 changes: 1 addition & 1 deletion src/output/audio/AudioOutputDSound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "QtAV/AudioOutput.h"
#include "QtAV/private/AudioOutput_p.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include <QtCore/QLibrary>
#include <QtCore/QVector>

Expand Down
2 changes: 1 addition & 1 deletion src/output/audio/AudioOutputOpenAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "QtAV/AudioOutput.h"
#include "QtAV/private/AudioOutput_p.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include <QtCore/QVector>

#if defined(HEADER_OPENAL_PREFIX)
Expand Down
2 changes: 1 addition & 1 deletion src/output/audio/AudioOutputOpenSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "QtAV/private/AudioOutput_p.h"
#include <QtCore/QThread>
#include <SLES/OpenSLES.h>
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include "utils/Logger.h"

namespace QtAV {
Expand Down
2 changes: 1 addition & 1 deletion src/output/audio/AudioOutputPortAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "QtAV/AudioOutput.h"
#include "QtAV/private/AudioOutput_p.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include <portaudio.h>
#include <QtCore/QString>
#include "utils/Logger.h"
Expand Down
2 changes: 1 addition & 1 deletion src/output/video/Direct2DRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <QResizeEvent>
#include <QtCore/QLibrary>
#include "QtAV/private/VideoRenderer_p.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"

//#define CINTERFACE //http://rxlib.ru/faqs/faqc_en/15596.html
//#include <windows.h>
Expand Down
2 changes: 1 addition & 1 deletion src/output/video/GDIRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <windows.h> //GetDC()
#include <gdiplus.h>
#include <QResizeEvent>
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include "utils/Logger.h"

#define USE_GRAPHICS 0
Expand Down
2 changes: 1 addition & 1 deletion src/output/video/VideoRendererTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "QtAV/VideoRendererTypes.h"
#include <cstdio>
#include <cstdlib>
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"

// TODO: move to an internal header
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) || defined(QT_WIDGETS_LIB)
Expand Down
2 changes: 1 addition & 1 deletion src/output/video/XVRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <sys/shm.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xvlib.h>
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"

#include "utils/Logger.h"

Expand Down
2 changes: 1 addition & 1 deletion src/subtitle/SubtitleProcessorFFmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <string>
#include "QtAV/private/SubtitleProcessor.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include "QtAV/AVDemuxer.h"
#include "QtAV/Packet.h"
#include "QtAV/private/AVCompat.h"
Expand Down
2 changes: 1 addition & 1 deletion src/subtitle/SubtitleProcessorLibASS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" {
#include <ass/ass.h>
}
#include "QtAV/private/SubtitleProcessor.h"
#include "QtAV/prepost.h"
#include "QtAV/private/prepost.h"
#include "QtAV/Packet.h"
#include "PlainText.h"
#include "utils/Logger.h"
Expand Down

0 comments on commit 6d13c53

Please sign in to comment.