Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qffmpegvideoencoderutils_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 QFFMPEGVIDEOENCODERUTILS_P_H
4#define QFFMPEGVIDEOENCODERUTILS_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 "qffmpeg_p.h"
18#include "qffmpeghwaccel_p.h"
19
21
22namespace QFFmpeg {
23
24AVPixelFormat findTargetSWFormat(AVPixelFormat sourceSWFormat, const HWAccel &accel);
25
26AVPixelFormat findTargetFormat(AVPixelFormat sourceFormat, AVPixelFormat sourceSWFormat,
27 const AVCodec *codec, const HWAccel *accel);
28
29std::pair<const AVCodec *, std::unique_ptr<HWAccel>> findHwEncoder(AVCodecID codecID,
30 const QSize &sourceSize);
31
32const AVCodec *findSwEncoder(AVCodecID codecID, AVPixelFormat sourceFormat,
33 AVPixelFormat sourceSWFormat);
34
35} // namespace QFFmpeg
36
38
39#endif // QFFMPEGVIDEOENCODERUTILS_P_H
\inmodule QtCore
Definition qsize.h:25
std::pair< const AVCodec *, std::unique_ptr< HWAccel > > findHwEncoder(AVCodecID codecID, const QSize &sourceSize)
AVPixelFormat findTargetFormat(AVPixelFormat sourceFormat, AVPixelFormat sourceSWFormat, const AVCodec *codec, const HWAccel *accel)
AVPixelFormat findTargetSWFormat(AVPixelFormat sourceSWFormat, const HWAccel &accel)
const AVCodec * findSwEncoder(AVCodecID codecID, AVPixelFormat sourceFormat, AVPixelFormat sourceSWFormat)
Combined button and popup list for selecting options.
QMediaFormat::AudioCodec codec