4#ifndef AVFVIDEOBUFFER_H
5#define AVFVIDEOBUFFER_H
18#include <QtMultimedia/qvideoframe.h>
19#include <private/qabstractvideobuffer_p.h>
21#include <QtCore/qobject.h>
22#include <QtCore/qmutex.h>
25#include <CoreVideo/CVImageBuffer.h>
27#import "Metal/Metal.h"
28#import "MetalKit/MetalKit.h"
32struct AVFMetalTexture;
50 mutable CVMetalTextureRef cvMetalTexture[3] = {};
52#if defined(Q_OS_MACOS)
53 mutable CVOpenGLTextureRef cvOpenGLTexture =
nullptr;
54#elif defined(Q_OS_IOS)
55 mutable CVOpenGLESTextureRef cvOpenGLESTexture =
nullptr;
58 CVImageBufferRef m_buffer =
nullptr;
void unmap()
Releases the memory mapped by the map() function.
QVideoFrameFormat videoFormat() const
virtual quint64 textureHandle(int plane) const
Returns a texture handle to the data buffer.
QVideoFrame::MapMode mapMode() const
The QAbstractVideoBuffer class is an abstraction for video data. \inmodule QtMultimedia.
MapMode
Enumerates how a video buffer's data is mapped to system memory.
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
GLsizei GLenum GLboolean sink
unsigned long long quint64