(7f98bb6a3a9da30cded752b14acd574a3ad151d4)
#include "qvideoframeconverter_p.h"
#include "qvideoframeconversionhelper_p.h"
#include "qvideoframeformat.h"
#include "qvideoframe_p.h"
#include "qmultimediautils_p.h"
#include "qthreadlocalrhi_p.h"
#include "qcachedvalue_p.h"
#include <QtCore/qcoreapplication.h>
#include <QtCore/qsize.h>
#include <QtCore/qhash.h>
#include <QtCore/qfile.h>
#include <QtGui/qimage.h>
#include <QtCore/qloggingcategory.h>
#include <QtMultimedia/private/qmultimedia_ranges_p.h>
#include <QtMultimedia/private/qvideotexturehelper_p.h>
#include <rhi/qrhi.h>
Go to the source code of this file.
|
static bool | pixelFormatHasAlpha (QVideoFrameFormat::PixelFormat format) |
static QShader | ensureShader (const QString &name) |
static void | rasterTransform (QImage &image, VideoTransformation transformation) |
static void | imageCleanupHandler (void *info) |
static bool | updateTextures (QRhi *rhi, std::unique_ptr< QRhiBuffer > &uniformBuffer, std::unique_ptr< QRhiSampler > &textureSampler, std::unique_ptr< QRhiShaderResourceBindings > &shaderResourceBindings, std::unique_ptr< QRhiGraphicsPipeline > &graphicsPipeline, std::unique_ptr< QRhiRenderPassDescriptor > &renderPass, QVideoFrame &frame, const QVideoFrameTexturesUPtr &videoFrameTextures) |
static QImage | convertJPEG (const QVideoFrame &frame, const VideoTransformation &transform) |
static QImage | convertCPU (const QVideoFrame &frame, const VideoTransformation &transform) |
QImage | qImageFromVideoFrame (const QVideoFrame &frame, bool forceCpu) |
QImage | qImageFromVideoFrame (const QVideoFrame &frame, const VideoTransformation &transformation, bool forceCpu) |
QImage | videoFramePlaneAsImage (QVideoFrame &frame, int plane, QImage::Format targetFormat, QSize targetSize) |
| Maps the video frame and returns an image having a shared ownership for the video frame and referencing to its mapped data.
|
◆ convertCPU()
◆ convertJPEG()
◆ ensureShader()
◆ imageCleanupHandler()
◆ pixelFormatHasAlpha()
◆ qImageFromVideoFrame() [1/2]
◆ qImageFromVideoFrame() [2/2]
◆ rasterTransform()
◆ updateTextures()
◆ videoFramePlaneAsImage()
◆ g_quad
Initial value:= {
1.f, -1.f, 1.f, 1.f,
1.f, 1.f, 1.f, 0.f,
-1.f, -1.f, 0.f, 1.f,
-1.f, 1.f, 0.f, 0.f,
1.f, -1.f, 1.f, 0.f,
1.f, 1.f, 0.f, 0.f,
-1.f, -1.f, 1.f, 1.f,
-1.f, 1.f, 0.f, 1.f,
1.f, -1.f, 0.f, 0.f,
1.f, 1.f, 0.f, 1.f,
-1.f, -1.f, 1.f, 0.f,
-1.f, 1.f, 1.f, 1.f,
1.f, -1.f, 0.f, 1.f,
1.f, 1.f, 1.f, 1.f,
-1.f, -1.f, 0.f, 0.f,
-1.f, 1.f, 1.f, 0.f,
}
Definition at line 34 of file qvideoframeconverter.cpp.