Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.11.0, 5.13.1
-
-
28fa0a6baba7a79ce85f8d62c2c296aa9f98de4c (pyside/pyside-setup/5.13.2)
Description
I wrote a simple VideoSureface example similar to https://github.com/qt/qtmultimedia/blob/5.11/examples/multimediawidgets/customvideosurface/customvideowidget/videowidgetsurface.cpp using Pyside2.
And I have this traceback in Python:
TypeError: 'PySide2.QtGui.QImage' called with wrong argument types:
PySide2.QtGui.QImage(int, int, int, int, PySide2.QtGui.QImage.Format)
Supported signatures:
PySide2.QtGui.QImage()
PySide2.QtGui.QImage(PySide2.QtCore.QString, int, int, PySide2.QtGui.QImage.Format)
PySide2.QtGui.QImage(PySide2.QtCore.QString, int, int, int, PySide2.QtGui.QImage.Format)
PySide2.QtGui.QImage(PySide2.QtGui.QImage)
PySide2.QtGui.QImage(PySide2.QtCore.QSize, PySide2.QtGui.QImage.Format)
PySide2.QtGui.QImage(unicode, bytes = nullptr)
PySide2.QtGui.QImage(char[])
PySide2.QtGui.QImage(int, int, PySide2.QtGui.QImage.Format)
PySide2.QtGui.QImage(PySide2.QtCore.uchar, int, int, PySide2.QtGui.QImage.Format, QImageCleanupFunction = nullptr, void = nullptr)
PySide2.QtGui.QImage(PySide2.QtCore.uchar, int, int, int, PySide2.QtGui.QImage.Format, QImageCleanupFunction = nullptr, void = nullptr)
But in docs PySide2.QtMultimedia.QVideoFrame.bits() return type: PySide2.QtCore.uchar
And when created QImage class PySide2.QtGui.QImage(data, width, height, bytesPerLine, format[,cleanupFunction=nullptr[, cleanupInfo=nullptr]])
and get data - PySide2.QtCore.uchar
When I try use a Qimage created from current video frame, get segfault in my program.
Maybe I'm not working correctly with QVideoFrame.bits() from a current video frame?! How I can create QImage from QVideoFrame?
Attachments
Issue Links
- relates to
-
PYSIDE-840 PySide2 QPixmap.loadFromData not taking bytes or QBytesArray as documentation states
- Closed
-
PYSIDE-1947 QAudioBuffer: the data() and constData() methods are missing
- Closed
For Gerrit Dashboard: PYSIDE-849 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
278042,5 | Add inject-code for QVideoFrame::bits() | 5.13 | pyside/pyside-setup | Status: MERGED | +2 | 0 |