4#ifndef QFFMPEGVIDEOBUFFER_P_H
5#define QFFMPEGVIDEOBUFFER_P_H
18#include <private/qtmultimediaglobal_p.h>
19#include <private/qabstractvideobuffer_p.h>
21#include <QtCore/qvariant.h>
38 void unmap()
override;
40 virtual std::unique_ptr<QVideoFrameTextures>
mapTextures(
QRhi *)
override;
63 AVFrame *frame =
nullptr;
68 std::unique_ptr<QFFmpeg::TextureSet>
textures;
The QAbstractVideoBuffer class is an abstraction for video data. \inmodule QtMultimedia.
QVideoFrameFormat::PixelFormat pixelFormat() const
QVideoFrameFormat::ColorSpace colorSpace() const
void unmap() override
Releases the memory mapped by the map() function.
QVideoFrameFormat::ColorTransfer colorTransfer() const
QFFmpeg::AVFrameUPtr AVFrameUPtr
void setTextureConverter(const QFFmpeg::TextureConverter &converter)
virtual std::unique_ptr< QVideoFrameTextures > mapTextures(QRhi *) override
virtual quint64 textureHandle(int plane) const override
Returns a texture handle to the data buffer.
static AVPixelFormat toAVPixelFormat(QVideoFrameFormat::PixelFormat pixelFormat)
QVideoFrameFormat::ColorRange colorRange() const
AVFrame * getHWFrame() const
static QVideoFrameFormat::PixelFormat toQtPixelFormat(AVPixelFormat avPixelFormat, bool *needsConversion=nullptr)
~QFFmpegVideoBuffer() override
QVideoFrame::MapMode mapMode() const override
MapMode
Enumerates how a video buffer's data is mapped to system memory.
QMap< QString, QString > map
[6]
std::unique_ptr< AVFrame, AVDeleter< decltype(&av_frame_free), &av_frame_free > > AVFrameUPtr
Combined button and popup list for selecting options.
GLuint const GLuint GLuint const GLuint * textures
unsigned long long quint64