Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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_P_H
4
#
define
QAVFHELPERS_P_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
24
QT_BEGIN_NAMESPACE
25
26
using
CvPixelFormat =
unsigned
;
27
constexpr
CvPixelFormat
CvPixelFormatInvalid
= 0;
28
29
namespace
QAVFHelpers
30
{
31
Q_MULTIMEDIA_EXPORT
QVideoFrameFormat
::
ColorRange
colorRangeForCVPixelFormat
(
CvPixelFormat
cvPixelFormat
);
32
Q_MULTIMEDIA_EXPORT
QVideoFrameFormat
::
PixelFormat
fromCVPixelFormat
(
CvPixelFormat
cvPixelFormat
);
33
Q_MULTIMEDIA_EXPORT CvPixelFormat
toCVPixelFormat
(
QVideoFrameFormat
::
PixelFormat
pixFmt
,
34
QVideoFrameFormat
::
ColorRange
colorRange
);
35
36
Q_MULTIMEDIA_EXPORT QVideoFrameFormat
videoFormatForImageBuffer
(
CVImageBufferRef
buffer
,
bool
openGL
=
false
);
37
};
38
39
QT_END_NAMESPACE
40
41
#
endif
// QAVFHELPERS_P_H
QAVFHelpers
Definition
qavfhelpers_p.h:30
CvPixelFormatInvalid
constexpr CvPixelFormat CvPixelFormatInvalid
Definition
qavfhelpers_p.h:27
qtmultimedia
src
multimedia
darwin
qavfhelpers_p.h
Generated on
for Qt by
1.14.0