From c300e1f2f3ea66cab18edb0aa4b5c9882c42a2eb Mon Sep 17 00:00:00 2001 From: Pavel Shliak Date: Thu, 21 Nov 2024 02:28:24 +0400 Subject: [PATCH] LibMedia: Clean up #include directives This change aims to improve the speed of incremental builds. --- Libraries/LibGfx/Matrix.h | 2 ++ Libraries/LibMedia/Audio/FFmpegLoader.cpp | 1 - Libraries/LibMedia/Audio/FFmpegLoader.h | 1 - Libraries/LibMedia/Audio/PlaybackStream.cpp | 1 - Libraries/LibMedia/Audio/PlaybackStream.h | 5 +---- Libraries/LibMedia/Audio/PlaybackStreamPulseAudio.h | 3 +++ Libraries/LibMedia/Audio/PulseAudioWrappers.h | 1 - Libraries/LibMedia/Audio/SampleFormats.cpp | 1 + Libraries/LibMedia/Audio/SampleFormats.h | 1 - Libraries/LibMedia/Color/ColorConverter.cpp | 4 ++-- Libraries/LibMedia/Containers/Matroska/Reader.cpp | 1 + Libraries/LibMedia/Containers/Matroska/Reader.h | 4 ++-- Libraries/LibMedia/PlaybackManager.h | 1 - Libraries/LibMedia/VideoFrame.cpp | 2 +- Libraries/LibMedia/VideoFrame.h | 2 -- 15 files changed, 13 insertions(+), 17 deletions(-) diff --git a/Libraries/LibGfx/Matrix.h b/Libraries/LibGfx/Matrix.h index 2ed0273e497..22e2eb4fcc9 100644 --- a/Libraries/LibGfx/Matrix.h +++ b/Libraries/LibGfx/Matrix.h @@ -6,6 +6,8 @@ #pragma once +#include +#include #include #include diff --git a/Libraries/LibMedia/Audio/FFmpegLoader.cpp b/Libraries/LibMedia/Audio/FFmpegLoader.cpp index ce38a961c78..bd0b55d6c10 100644 --- a/Libraries/LibMedia/Audio/FFmpegLoader.cpp +++ b/Libraries/LibMedia/Audio/FFmpegLoader.cpp @@ -5,7 +5,6 @@ */ #include "FFmpegLoader.h" -#include #include #include diff --git a/Libraries/LibMedia/Audio/FFmpegLoader.h b/Libraries/LibMedia/Audio/FFmpegLoader.h index 684eceea4b5..652d3dd56e0 100644 --- a/Libraries/LibMedia/Audio/FFmpegLoader.h +++ b/Libraries/LibMedia/Audio/FFmpegLoader.h @@ -13,7 +13,6 @@ extern "C" { #include #include -#include } namespace Audio { diff --git a/Libraries/LibMedia/Audio/PlaybackStream.cpp b/Libraries/LibMedia/Audio/PlaybackStream.cpp index 1e4cf7ac568..42c60e73d7d 100644 --- a/Libraries/LibMedia/Audio/PlaybackStream.cpp +++ b/Libraries/LibMedia/Audio/PlaybackStream.cpp @@ -7,7 +7,6 @@ #include "PlaybackStream.h" #include -#include #if defined(HAVE_PULSEAUDIO) # include "PlaybackStreamPulseAudio.h" diff --git a/Libraries/LibMedia/Audio/PlaybackStream.h b/Libraries/LibMedia/Audio/PlaybackStream.h index 464a842aa96..54686bca128 100644 --- a/Libraries/LibMedia/Audio/PlaybackStream.h +++ b/Libraries/LibMedia/Audio/PlaybackStream.h @@ -9,12 +9,9 @@ #include "SampleFormats.h" #include #include -#include #include #include -#include -#include -#include +#include namespace Audio { diff --git a/Libraries/LibMedia/Audio/PlaybackStreamPulseAudio.h b/Libraries/LibMedia/Audio/PlaybackStreamPulseAudio.h index f9d7ceff0a8..1d537558566 100644 --- a/Libraries/LibMedia/Audio/PlaybackStreamPulseAudio.h +++ b/Libraries/LibMedia/Audio/PlaybackStreamPulseAudio.h @@ -8,6 +8,9 @@ #include "PlaybackStream.h" #include "PulseAudioWrappers.h" +#include +#include +#include namespace Audio { diff --git a/Libraries/LibMedia/Audio/PulseAudioWrappers.h b/Libraries/LibMedia/Audio/PulseAudioWrappers.h index 4bf0f43912a..c31752b9a72 100644 --- a/Libraries/LibMedia/Audio/PulseAudioWrappers.h +++ b/Libraries/LibMedia/Audio/PulseAudioWrappers.h @@ -8,7 +8,6 @@ #include "Forward.h" #include "PlaybackStream.h" -#include "SampleFormats.h" #include #include #include diff --git a/Libraries/LibMedia/Audio/SampleFormats.cpp b/Libraries/LibMedia/Audio/SampleFormats.cpp index f346e33e3fd..8b2133d004f 100644 --- a/Libraries/LibMedia/Audio/SampleFormats.cpp +++ b/Libraries/LibMedia/Audio/SampleFormats.cpp @@ -5,6 +5,7 @@ */ #include "SampleFormats.h" +#include namespace Audio { diff --git a/Libraries/LibMedia/Audio/SampleFormats.h b/Libraries/LibMedia/Audio/SampleFormats.h index a6801a5727e..be57ca67c6c 100644 --- a/Libraries/LibMedia/Audio/SampleFormats.h +++ b/Libraries/LibMedia/Audio/SampleFormats.h @@ -6,7 +6,6 @@ #pragma once -#include #include namespace Audio { diff --git a/Libraries/LibMedia/Color/ColorConverter.cpp b/Libraries/LibMedia/Color/ColorConverter.cpp index 99da5c49612..df63e0ce02e 100644 --- a/Libraries/LibMedia/Color/ColorConverter.cpp +++ b/Libraries/LibMedia/Color/ColorConverter.cpp @@ -4,8 +4,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include -#include +#include +#include #include #include #include diff --git a/Libraries/LibMedia/Containers/Matroska/Reader.cpp b/Libraries/LibMedia/Containers/Matroska/Reader.cpp index 5bb2a78af5e..51db215908b 100644 --- a/Libraries/LibMedia/Containers/Matroska/Reader.cpp +++ b/Libraries/LibMedia/Containers/Matroska/Reader.cpp @@ -7,6 +7,7 @@ #include #include +#include #include #include #include diff --git a/Libraries/LibMedia/Containers/Matroska/Reader.h b/Libraries/LibMedia/Containers/Matroska/Reader.h index 60b8b49d158..eabdfbdce50 100644 --- a/Libraries/LibMedia/Containers/Matroska/Reader.h +++ b/Libraries/LibMedia/Containers/Matroska/Reader.h @@ -7,9 +7,9 @@ #pragma once -#include +#include +#include #include -#include #include #include diff --git a/Libraries/LibMedia/PlaybackManager.h b/Libraries/LibMedia/PlaybackManager.h index 9fd52401c17..a99cbbbdfe0 100644 --- a/Libraries/LibMedia/PlaybackManager.h +++ b/Libraries/LibMedia/PlaybackManager.h @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include diff --git a/Libraries/LibMedia/VideoFrame.cpp b/Libraries/LibMedia/VideoFrame.cpp index c44628a2bdd..c27a81c42a0 100644 --- a/Libraries/LibMedia/VideoFrame.cpp +++ b/Libraries/LibMedia/VideoFrame.cpp @@ -4,8 +4,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include -#include #include #include "VideoFrame.h" diff --git a/Libraries/LibMedia/VideoFrame.h b/Libraries/LibMedia/VideoFrame.h index db1ef6813d5..e6b6d8ff82e 100644 --- a/Libraries/LibMedia/VideoFrame.h +++ b/Libraries/LibMedia/VideoFrame.h @@ -6,8 +6,6 @@ #pragma once -#include -#include #include #include #include