Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qvideoframeconverter_p.h File Reference

(11baa8dc38f2a7f8fd2535def0cd123796d7b97d)

#include <qvideoframe.h>
+ Include dependency graph for qvideoframeconverter_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE Q_MULTIMEDIA_EXPORT QImage qImageFromVideoFrame (const QVideoFrame &frame, QtVideo::Rotation rotation=QtVideo::Rotation::None, bool mirrorX=false, bool mirrorY=false)
 
Q_MULTIMEDIA_EXPORT QImage videoFramePlaneAsImage (QVideoFrame &frame, int plane, QImage::Format targetFromat, QSize targetSize)
 Maps the video frame and returns an image having a shared ownership for the video frame and referencing to its mapped data.
 

Function Documentation

◆ qImageFromVideoFrame()

QT_BEGIN_NAMESPACE Q_MULTIMEDIA_EXPORT QImage qImageFromVideoFrame ( const QVideoFrame & frame,
QtVideo::Rotation rotation = QtVideo::Rotation::None,
bool mirrorX = false,
bool mirrorY = false )

◆ videoFramePlaneAsImage()

Q_MULTIMEDIA_EXPORT QImage videoFramePlaneAsImage ( QVideoFrame & frame,
int plane,
QImage::Format targetFromat,
QSize targetSize )

Maps the video frame and returns an image having a shared ownership for the video frame and referencing to its mapped data.

Definition at line 425 of file qvideoframeconverter.cpp.

References frame, QVideoFramePrivate::handle(), QSize::height(), Q_ASSERT, qMin(), qWarning, QVideoFrame::ReadOnly, and QSize::width().

+ Here is the call graph for this function: