Skip to content

Commit

Permalink
less sdk headers
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Mar 25, 2016
1 parent b60398c commit ebf9a1c
Show file tree
Hide file tree
Showing 44 changed files with 211 additions and 407 deletions.
3 changes: 1 addition & 2 deletions qml/QmlAV/QmlAVPlayer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2013-2016 Wang Bin <[email protected]>
* This file is part of QtAV
Expand Down Expand Up @@ -27,7 +27,6 @@
#include <QtQml/QQmlParserStatus>
#include <QmlAV/MediaMetaData.h>
#include <QtAV/AVError.h>
#include <QtAV/CommonTypes.h>
#include <QtAV/VideoCapture.h>

namespace QtAV {
Expand Down
2 changes: 1 addition & 1 deletion src/AVDemuxThread.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV
Expand Down
3 changes: 1 addition & 2 deletions src/AVDemuxThread.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV
Expand All @@ -25,7 +25,6 @@
#include <QtCore/QMutex>
#include <QtCore/QThread>
#include <QtCore/QRunnable>
#include "QtAV/CommonTypes.h"
#include "PacketBuffer.h"

namespace QtAV {
Expand Down
2 changes: 1 addition & 1 deletion src/AVDemuxer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV
Expand Down
1 change: 0 additions & 1 deletion src/AVPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "QtAV/VideoRenderer.h"
#include "QtAV/AVClock.h"
#include "QtAV/VideoCapture.h"
#include "QtAV/VideoDecoderTypes.h"
#include "QtAV/VideoCapture.h"
#include "filter/FilterManager.h"
#include "output/OutputSet.h"
Expand Down
1 change: 0 additions & 1 deletion src/AVPlayerPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <limits>
#include "QtAV/AVDemuxer.h"
#include "QtAV/AVPlayer.h"
#include "QtAV/CommonTypes.h"
#include "AudioThread.h"
#include "VideoThread.h"
#include "AVDemuxThread.h"
Expand Down
3 changes: 1 addition & 2 deletions src/AudioFrame.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV
Expand All @@ -22,7 +22,6 @@
#include "QtAV/AudioFrame.h"
#include "QtAV/private/Frame_p.h"
#include "QtAV/AudioResampler.h"
#include "QtAV/AudioResamplerTypes.h"
#include "QtAV/private/AVCompat.h"
#include "utils/Logger.h"

Expand Down
12 changes: 6 additions & 6 deletions src/AudioResampler.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2012-2015 Wang Bin <[email protected]>
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV
Expand All @@ -23,11 +23,15 @@
#include "QtAV/AudioFormat.h"
#include "QtAV/private/AudioResampler_p.h"
#include "QtAV/private/factory.h"
#include "QtAV/private/mkid.h"
#include "utils/Logger.h"

namespace QtAV {
FACTORY_DEFINE(AudioResampler)

AudioResamplerId AudioResamplerId_FF = mkid::id32base36_6<'F', 'F', 'm', 'p', 'e', 'g'>::value;
AudioResamplerId AudioResamplerId_Libav = mkid::id32base36_5<'L', 'i', 'b', 'a', 'v'>::value;

extern bool RegisterAudioResamplerFF_Man();
extern bool RegisterAudioResamplerLibav_Man();
void AudioResampler::registerAll()
Expand All @@ -44,10 +48,6 @@ void AudioResampler::registerAll()
#endif
}

AudioResampler::AudioResampler()
{
}

AudioResampler::AudioResampler(AudioResamplerPrivate& d):DPTR_INIT(&d)
{
}
Expand Down
2 changes: 1 addition & 1 deletion src/AudioResamplerFF.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2015 Wang Bin <[email protected]>
* This file is part of QtAV
Expand Down
4 changes: 2 additions & 2 deletions src/AudioResamplerLibav.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2012-2015 Wang Bin <[email protected]>
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV
Expand Down
4 changes: 2 additions & 2 deletions src/AudioResamplerTemplate.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2012-2015 Wang Bin <[email protected]>
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV
Expand Down
30 changes: 0 additions & 30 deletions src/AudioResamplerTypes.cpp

This file was deleted.

12 changes: 6 additions & 6 deletions src/ColorTransform.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV (from 2014)
Expand All @@ -19,7 +19,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/

#include "QtAV/ColorTransform.h"
#include "ColorTransform.h"
#include <QtCore/qmath.h>

namespace QtAV {
Expand Down Expand Up @@ -77,7 +77,7 @@ static QMatrix4x4 ColorRangeYUV(ColorRange from, ColorRange to)
return QMatrix4x4();
static const qreal Y2 = 235, Y1 = 16, C2 = 240, C1 = 16;
static const qreal s = 255; //TODO: can be others
if (from == ColorRange_Limited) {
if (from == ColorRange_Limited) { //TODO: Unknown. But what if realy want unknown?
qDebug("input yuv limited range");
// [Y1, Y2] => [0, s]
QMatrix4x4 m;
Expand Down Expand Up @@ -110,7 +110,7 @@ static QMatrix4x4 ColorRangeRGB(ColorRange from, ColorRange to)
m.scale((R2 - R1)/s, (R2 - R1)/s, (R2 - R1)/s);
return m;
}
if (to == ColorRange_Full) {
if (to == ColorRange_Full) { // TODO: Unknown
QMatrix4x4 m;
m.scale(s/(R2 - R1), s/(R2 - R1), s/(R2 - R1));
m.translate(-s/R1, -s/R1, -s/R1);
Expand Down Expand Up @@ -170,13 +170,13 @@ class ColorTransform::Private : public QSharedData
//http://www.graficaobscura.com/matrix/index.html
//http://beesbuzz.biz/code/hsv_color_transforms.php
// ??
float b = brightness;
const float b = brightness;
// brightness R,G,B
QMatrix4x4 B(1, 0, 0, b,
0, 1, 0, b,
0, 0, 1, b,
0, 0, 0, 1);
float c = contrast+1.0;
const float c = contrast+1.0;
// Contrast (offset) R,G,B
QMatrix4x4 C(c, 0, 0, 0,
0, c, 0, 0,
Expand Down
9 changes: 2 additions & 7 deletions src/QtAV/ColorTransform.h → src/ColorTransform.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV (from 2014)
Expand All @@ -24,19 +24,16 @@

#include <QtCore/QSharedDataPointer>
#include <QtGui/QMatrix4x4>
#include <QtAV/CommonTypes.h>

#include <QtAV/QtAV_Global.h>
// TODO: kernel QGenericMatrix<M,N>
//http://www.graficaobscura.com/matrix/index.html

namespace QtAV {

/*!
* \brief The ColorTransform class
* A convenience class to get color transformation matrix.
* Implicitly shared.
*/

class ColorTransform
{
public:
Expand Down Expand Up @@ -105,7 +102,5 @@ class ColorTransform
class Private;
QSharedDataPointer<ColorTransform::Private> d;
};

} //namespace QtAV

#endif // QTAV_COLORTRANSFORM_H
64 changes: 0 additions & 64 deletions src/CommonTypes.cpp

This file was deleted.

6 changes: 3 additions & 3 deletions src/PacketBuffer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2015 Wang Bin <[email protected]>
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV
* This file is part of QtAV (from 2015)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Expand Down
7 changes: 3 additions & 4 deletions src/PacketBuffer.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2015 Wang Bin <[email protected]>
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV
* This file is part of QtAV (from 2015)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Expand All @@ -24,7 +24,6 @@

#include <QtCore/QQueue>
#include <QtAV/Packet.h>
#include "QtAV/CommonTypes.h"
#include "utils/BlockingQueue.h"
#include "utils/ring.h"

Expand Down
1 change: 0 additions & 1 deletion src/QtAV/AVDemuxer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef QAV_DEMUXER_H
#define QAV_DEMUXER_H

#include <QtAV/CommonTypes.h>
#include <QtAV/AVError.h>
#include <QtAV/Packet.h>
#include <QtCore/QVariant>
Expand Down
7 changes: 2 additions & 5 deletions src/QtAV/AVError.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2013 Wang Bin <[email protected]>
Copyright (C) 2012-2016 Wang Bin <[email protected]>
* This file is part of QtAV
* This file is part of QtAV (from 2013)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Expand All @@ -24,11 +24,8 @@

#include <QtAV/QtAV_Global.h>
#include <QtCore/QString>
#include <QtCore/QMetaType>

namespace QtAV {


class Q_AV_EXPORT AVError
{
public:
Expand Down
2 changes: 1 addition & 1 deletion src/QtAV/AVPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <QtAV/AudioOutput.h>
#include <QtAV/AVClock.h>
#include <QtAV/Statistics.h>
#include <QtAV/VideoDecoderTypes.h>
#include <QtAV/VideoDecoder.h>
#include <QtAV/AVError.h>

QT_BEGIN_NAMESPACE
Expand Down
Loading

0 comments on commit ebf9a1c

Please sign in to comment.