Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qvideoframeconverter_p.h File Reference

(d77d137aea18a74426125a39855a7a2ae616d227)

#include <qvideoframe.h>
#include <QtCore/qspan.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

Q_MULTIMEDIA_EXPORT QSpan< const ucharjpegDataFromMappedVideoFrame (const QVideoFrame &mappedFrame)
Q_MULTIMEDIA_EXPORT QImage qImageFromVideoFrame (const QVideoFrame &frame, const VideoTransformation &transformation, bool forceCpu=false)
Q_MULTIMEDIA_EXPORT QImage qImageFromVideoFrame (const QVideoFrame &frame, bool forceCpu=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

◆ jpegDataFromMappedVideoFrame()

Q_MULTIMEDIA_EXPORT QSpan< const uchar > jpegDataFromMappedVideoFrame ( const QVideoFrame & mappedFrame)

Definition at line 169 of file qvideoframeconverter.cpp.

◆ qImageFromVideoFrame() [1/2]

Q_MULTIMEDIA_EXPORT QImage qImageFromVideoFrame ( const QVideoFrame & frame,
bool forceCpu = false )

Definition at line 254 of file qvideoframeconverter.cpp.

◆ qImageFromVideoFrame() [2/2]

Q_MULTIMEDIA_EXPORT QImage qImageFromVideoFrame ( const QVideoFrame & frame,
const VideoTransformation & transformation,
bool forceCpu = false )

Definition at line 261 of file qvideoframeconverter.cpp.

References g_quad, and imageCleanupHandler().

Here is the call graph for this function:

◆ 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 420 of file qvideoframeconverter.cpp.

References QVideoFramePrivate::handle().

Here is the call graph for this function: