mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-18 13:11:13 +08:00
4adb2ba7eb
Changelog:
- Improve OpenGL: more pixel formats, supports QML(not stable),
dynamic gl support etc.
- VAAPI: GLX direct rendering support. check 4k.
- DXVA: more decoding surfaces to improve performance
- VDA (OSX hardware decoding) support
- Android support. Easy to deploy
- Subtitle support, including QML
- Improve OpenAL. Works fine on most platforms including android
- FFmpeg libavfilter support
- Audio output api change
- deploy script for ifw, OSX
- Bug fix
- WIP: dsound, opensl, audio engine, audio filters etc.
48 lines
1.7 KiB
C++
48 lines
1.7 KiB
C++
/******************************************************************************
|
|
QtAV: Media play library based on Qt and FFmpeg
|
|
Copyright (C) 2013 Wang Bin <wbsecg1@gmail.com>
|
|
|
|
* This file is part of QtAV
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with this library; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
******************************************************************************/
|
|
|
|
#include <QtQml/QQmlExtensionPlugin>
|
|
#include <QtQml/qqml.h>
|
|
#include <QmlAV/QQuickItemRenderer.h>
|
|
#include <QmlAV/QmlAVPlayer.h>
|
|
#include <QmlAV/QuickSubtitle.h>
|
|
|
|
namespace QtAV {
|
|
|
|
class QtAVQmlPlugin : public QQmlExtensionPlugin
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
|
|
|
|
public:
|
|
void registerTypes(const char *uri)
|
|
{
|
|
Q_ASSERT(uri == QLatin1String("QtAV"));
|
|
qmlRegisterType<QQuickItemRenderer>(uri, 1, 3, "VideoOutput");
|
|
qmlRegisterType<QmlAVPlayer>(uri, 1, 3, "AVPlayer");
|
|
qmlRegisterType<QmlAVPlayer>(uri, 1, 3, "MediaPlayer");
|
|
qmlRegisterType<QuickSubtitle>(uri, 1, 4, "Subtitle");
|
|
}
|
|
};
|
|
} //namespace QtAV
|
|
|
|
#include "plugin.moc"
|