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>.
|
#include <qvideoframe.h>
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. | |
QT_BEGIN_NAMESPACE Q_MULTIMEDIA_EXPORT QImage qImageFromVideoFrame | ( | const QVideoFrame & | frame, |
QtVideo::Rotation | rotation = QtVideo::Rotation::None, | ||
bool | mirrorX = false, | ||
bool | mirrorY = false ) |
Definition at line 289 of file qvideoframeconverter.cpp.
References QRhiSampler::ClampToEdge, convertCPU(), convertJPEG(), QThread::currentThread(), QRhiBuffer::Dynamic, QVideoFrameFormat::Format_Invalid, QVideoFrameFormat::Format_Jpeg, frame, frameSize(), g_quad, g_state, QRhiBuffer::Immutable, initializeRHI(), QSize::isEmpty(), QRhi::isRecordingFrame(), QRhiSampler::Linear, QRhi::newBuffer(), QRhi::newSampler(), QRhi::newShaderResourceBindings(), QRhi::newTexture(), QRhi::newTextureRenderTarget(), QRhiSampler::None, qCDebug, qRotatedFrameSize(), QRhiTexture::RenderTarget, QRhiTexture::RGBA8, QWidget::size, QRhi::thread(), QRhiBuffer::UniformBuffer, and QRhiBuffer::VertexBuffer.
Referenced by AndroidTextureVideoBuffer::map(), and QVideoFrame::toImage().
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().