Add missing includes tree-wide

This commit is contained in:
Cameron Gutman committed 2026-11-29 21:15:02 -06:00
1 parent a85f933ed0
commit 495cd8b7cd
62 files changed
+194 -4

No files matched your search

+3
View File
@@ -9,6 +9,9 @@
#include <Limelight.h>
#include <QString>
#include <QtGlobal>
#define TRY_INIT_RENDERER(renderer, opusConfig) \
{ \
IAudioRenderer* __renderer = new renderer(); \
+2
View File
@@ -2,6 +2,8 @@
#include "SDL_compat.h"
#include <string.h>
SLAudioRenderer::SLAudioRenderer()
: m_AudioContext(nullptr),
m_AudioStream(nullptr),
+1
View File
@@ -1,6 +1,7 @@
#pragma once
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <mutex>
#include <vector>
+4
View File
@@ -7,6 +7,10 @@
#include <QtMath>
#include <algorithm>
#include <stdlib.h>
#include <string.h>
// How long the Start button must be pressed to toggle mouse emulation
#define MOUSE_EMULATION_LONG_PRESS_TIME 750
+3
View File
@@ -5,6 +5,9 @@
#include "SDL_compat.h"
#include <QSet>
#include <QStringList>
struct GamepadState {
SDL_GameController* controller;
SDL_JoystickID jsId;
+3
View File
@@ -3,6 +3,9 @@
#include <Limelight.h>
#include "SDL_compat.h"
#include <string.h>
#include <utility>
#define VK_0 0x30
#define VK_A 0x41
+6
View File
@@ -33,6 +33,7 @@
#include <QtEndian>
#include <QCoreApplication>
#include <QThread>
#include <QThreadPool>
#include <QSvgRenderer>
#include <QPainter>
@@ -41,6 +42,11 @@
#include <QCursor>
#include <QScreen>
#include <math.h>
#include <stdarg.h>
#include <string.h>
#include <utility>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include <QQuickOpenGLUtils>
#endif
+1
View File
@@ -1,5 +1,6 @@
#pragma once
#include <QMap>
#include <QSemaphore>
#include <QQuickWindow>
+7
View File
@@ -1,14 +1,21 @@
#include "streamutils.h"
#include <Qt>
#include <QAtomicInt>
#include <QDir>
#include <stdio.h>
#include <string.h>
#ifdef Q_OS_DARWIN
#include <ApplicationServices/ApplicationServices.h>
#endif
#ifdef Q_OS_WINDOWS
#include <Windows.h>
#if defined(_MSC_VER) && defined(Q_PROCESSOR_X86)
#include <intrin.h>
#endif
#endif
#ifdef Q_OS_UNIX
+2
View File
@@ -4,6 +4,8 @@
#include "SDL_compat.h"
#include "settings/streamingpreferences.h"
#include <QSize>
#define SDL_CODE_FRAME_READY 0
#define MAX_SLICES 4
@@ -2,6 +2,8 @@
#include <SDL_opengl.h>
#include <string.h>
CUDARenderer::CUDARenderer()
: IFFmpegRenderer(RendererType::CUDA),
m_HwContext(nullptr)
@@ -13,6 +13,10 @@
#include <dwmapi.h>
#include <QByteArray>
#include <algorithm>
using Microsoft::WRL::ComPtr;
// Standard DXVA GUIDs for HEVC RExt profiles (redefined for compatibility with pre-24H2 SDKs)
@@ -12,6 +12,8 @@ extern "C" {
#include <wrl/client.h>
#include <wrl/wrappers/corewrappers.h>
#include <vector>
class D3D11VARenderer : public IFFmpegRenderer
{
public:
@@ -73,6 +73,9 @@ extern "C" {
#include <Limelight.h>
#include <QString>
#include <inttypes.h>
#include <map>
#include <unordered_set>
+9 -2
View File
@@ -10,9 +10,16 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <set>
#include <unordered_map>
#include <algorithm>
#include <atomic>
#include <inttypes.h>
#include <mutex>
#include <optional>
#include <set>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
// This is only defined in Linux 6.8+ headers
#ifndef DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP
@@ -9,6 +9,9 @@
#include <QDir>
#include <Limelight.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <SDL_syswm.h>
@@ -13,8 +13,11 @@
#include <SDL_syswm.h>
#include <QDir>
#include <QFile>
#include <QTextStream>
#include <string.h>
MmalRenderer::MmalRenderer()
: IFFmpegRenderer(RendererType::MMAL),
m_Renderer(nullptr),
@@ -2,6 +2,8 @@
#include "renderer.h"
#include <QString>
#include <interface/mmal/mmal.h>
#include <interface/mmal/util/mmal_util.h>
#include <interface/mmal/util/mmal_util_params.h>
@@ -2,6 +2,8 @@
#include "streaming/streamutils.h"
#include "streaming/session.h"
#include <utility>
#ifdef Q_OS_WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
@@ -15,8 +15,9 @@ extern "C" {
#include <libavutil/hwcontext_vulkan.h>
}
#include <vector>
#include <set>
#include <string.h>
#include <vector>
#ifndef VK_KHR_video_decode_av1
#define VK_KHR_VIDEO_DECODE_AV1_EXTENSION_NAME "VK_KHR_video_decode_av1"
@@ -11,6 +11,8 @@
#include <libplacebo/vulkan.h>
#ifdef Q_OS_DARWIN
#include <memory>
class MetalVulkanTextureFactory {
public:
MetalVulkanTextureFactory(pl_vulkan vulkan);
@@ -7,6 +7,12 @@
#include "streaming/video/decoder.h"
#include "streaming/video/overlaymanager.h"
#ifdef HAVE_EGL
#include <QString>
#include <QStringList>
#include <unistd.h>
#endif
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavutil/pixdesc.h>
@@ -7,6 +7,11 @@
#include <SDL_syswm.h>
#include <QString>
#include <algorithm>
#include <string.h>
extern "C" {
#include <libavutil/pixdesc.h>
#include <libavutil/opt.h>
@@ -1,5 +1,6 @@
#include <QString>
#include <algorithm>
#include <vector>
// HACK: Include before vaapi.h to prevent conflicts with Xlib.h
@@ -15,8 +16,11 @@
#include <SDL_syswm.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stdlib.h>
#include <unistd.h>
VAAPIRenderer::VAAPIRenderer(int decoderSelectionPass)
: IFFmpegRenderer(RendererType::VAAPI),
@@ -9,6 +9,8 @@
#include <Limelight.h>
#include <streaming/session.h>
#include <QtGlobal>
#include <mach/mach_time.h>
#import <Cocoa/Cocoa.h>
#import <VideoToolbox/VideoToolbox.h>
@@ -22,6 +22,10 @@ extern "C" {
#include <libavutil/pixdesc.h>
}
#include <QtGlobal>
#include <math.h>
struct CscParams
{
simd_half3x3 matrix;
+5
View File
@@ -3,6 +3,11 @@
#include "utils.h"
#include "streaming/session.h"
#include <QMap>
#include <stdio.h>
#include <string.h>
#include <h264_stream.h>
extern "C" {
+2
View File
@@ -1,7 +1,9 @@
#pragma once
#include <functional>
#include <QByteArray>
#include <QQueue>
#include <QSet>
#include <set>
#include "../bandwidth.h"
+2
View File
@@ -1,6 +1,8 @@
#include "overlaymanager.h"
#include "path.h"
#include <string.h>
using namespace Overlay;
OverlayManager::OverlayManager() :