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
ffmpeg_pch.h
Go to the documentation of this file.
1// Copyright (C) 2021 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
4#include <QtCore/QtCore>
5#include <QtMultimedia/QtMultimedia>
6
7#ifdef __OBJC__
8// avfoundation and ffmpeg clash wrt AVMediaType
9// # import <AVFoundation/AVFoundation.h>
10# import <CoreVideo/CoreVideo.h>
11# import <dispatch/dispatch.h>
12# import <Metal/Metal.h>
13# ifdef Q_OS_MACOS
14# import <AppKit/AppKit.h>
15# endif
16# ifdef Q_OS_IOS
17# import <OpenGLES/EAGL.h>
18# import <UIKit/UIKit.h>
19# endif
20#endif
21
22#ifdef Q_OS_WINDOWS
23# include <qt_windows.h>
24# include <D3d11.h>
25# include <dxgi1_2.h>
26# include <mfapi.h>
27# include <mfidl.h>
28# include <mferror.h>
29# include <mfreadwrite.h>
30#endif
31
32// avfoundation and ffmpeg clash wrt AVMediaType
33#ifndef __OBJC__
34extern "C" {
35# include <libavformat/avformat.h>
36# include <libavcodec/avcodec.h>
37# include <libswresample/swresample.h>
38# include <libswscale/swscale.h>
39# include <libavutil/avutil.h>
40}
41#endif