Skip to content

Commit

Permalink
Update Python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
aronbierbaum committed Oct 3, 2022
1 parent 2af6a28 commit d63024f
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 69 deletions.
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ libraries = [QTAV_LIB]
library-dirs = [LIB_DIRS]

[tool.sip.bindings.QtAVWidgets]
qmake-QT = ["widgets", "opengl"]
qmake-QT = ["widgets", "opengl", "openglwidgets"]
include-dirs = [INCLUDE_DIRS]
libraries = [QTAV_LIB, QTAV_WIDGETS_LIB]
library-dirs = [LIB_DIRS]
1 change: 0 additions & 1 deletion python/sip/QtAV/VideoFormat.sip
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public:
static QImage::Format imageFormatFromPixelFormat(PixelFormat format);
static PixelFormat pixelFormatFromFFmpeg(int ff); //AVPixelFormat
static int pixelFormatToFFmpeg(PixelFormat fmt);
static QVector<int> pixelFormatsFFmpeg();

VideoFormat(PixelFormat format = Format_Invalid);
VideoFormat(int formatFF /Constrained/);
Expand Down
64 changes: 0 additions & 64 deletions python/sip/QtAVWidgets/GLWidgetRenderer2.sip

This file was deleted.

2 changes: 1 addition & 1 deletion python/sip/QtAVWidgets/QtAVWidgetsmod.sip
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
%Import QtGui/QtGuimod.sip
%Import QtWidgets/QtWidgetsmod.sip
%Import QtOpenGL/QtOpenGLmod.sip
%Import QtOpenGLWidgets/QtOpenGLWidgetsmod.sip
%Import QtAV/QtAVmod.sip

%Timeline {QtAVWidgets_1_11_0 QtAVWidgets_1_12_0}
Expand Down Expand Up @@ -35,7 +36,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
%Include global.sip

%If (FULL_QTWIDGETS_API)
%Include GLWidgetRenderer2.sip
%Include GraphicsItemRenderer.sip
// NOTE: We don't expose QOpenGLWidget because it is present in Qt >= 5.4.0
%Include OpenGLWidgetRenderer.sip
Expand Down
2 changes: 1 addition & 1 deletion src/libQtAV.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MODULE_INCNAME = QtAV # for mac framework. also used in install_sdk.pro
TARGET = QtAV
QT += core gui
#CONFIG *= ltcg
greaterThan(QT_MAJOR_VERSION, 5): QT += opengl
greaterThan(QT_MAJOR_VERSION, 5): QT += opengl openglwidgets
greaterThan(QT_MAJOR_VERSION, 4) {
contains(QT_CONFIG, opengl) {
CONFIG *= config_opengl
Expand Down
2 changes: 1 addition & 1 deletion widgets/QtAVWidgets/OpenGLWidgetRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <QtAVWidgets/global.h>
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
#include <QOpenGLWidget>
#include <QtOpenGLWidgets/QOpenGLWidget>
#else
#include <QtAVWidgets/QOpenGLWidget.h>
#endif //QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
Expand Down

0 comments on commit d63024f

Please sign in to comment.