Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qavfhelpers_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QAVFHELPERS_H
4#define QAVFHELPERS_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QtMultimedia/qvideoframe.h>
18#include <qvideoframeformat.h>
19
20#include <CoreVideo/CVBase.h>
21#include <CoreVideo/CVPixelBuffer.h>
22#include <CoreVideo/CVImageBuffer.h>
23
24enum {
25 // macOS 10.14 doesn't define this pixel format yet
27};
28
30
31namespace QAVFHelpers
32{
34 bool toCVPixelFormat(QVideoFrameFormat::PixelFormat qtFormat, unsigned &conv);
35
36 QVideoFrameFormat videoFormatForImageBuffer(CVImageBufferRef buffer, bool openGL = false);
37};
38
40
41#endif
The QVideoFrameFormat class specifies the stream format of a video presentation surface.
PixelFormat
Enumerates video data types.
bool toCVPixelFormat(QVideoFrameFormat::PixelFormat qtFormat, unsigned &conv)
QVideoFrameFormat::PixelFormat fromCVPixelFormat(unsigned avPixelFormat)
QVideoFrameFormat videoFormatForImageBuffer(CVImageBufferRef buffer, bool openGL=false)
Combined button and popup list for selecting options.
@ q_kCVPixelFormatType_OneComponent16
GLenum GLuint buffer