LibMedia: Clean up #include directives

This change aims to improve the speed of incremental builds.
This commit is contained in:
Pavel Shliak 2024-11-21 02:28:24 +04:00 committed by Alexander Kalenik
parent 8d13115d9a
commit b60cb699a9
Notes: github-actions[bot] 2024-11-21 13:09:33 +00:00
15 changed files with 13 additions and 17 deletions

View file

@ -6,6 +6,8 @@
#pragma once #pragma once
#include <AK/Assertions.h>
#include <AK/StdLibExtras.h>
#include <AK/Types.h> #include <AK/Types.h>
#include <initializer_list> #include <initializer_list>

View file

@ -5,7 +5,6 @@
*/ */
#include "FFmpegLoader.h" #include "FFmpegLoader.h"
#include <AK/BitStream.h>
#include <AK/NumericLimits.h> #include <AK/NumericLimits.h>
#include <LibCore/System.h> #include <LibCore/System.h>

View file

@ -13,7 +13,6 @@
extern "C" { extern "C" {
#include <libavcodec/avcodec.h> #include <libavcodec/avcodec.h>
#include <libavformat/avformat.h> #include <libavformat/avformat.h>
#include <libavutil/samplefmt.h>
} }
namespace Audio { namespace Audio {

View file

@ -7,7 +7,6 @@
#include "PlaybackStream.h" #include "PlaybackStream.h"
#include <AK/Platform.h> #include <AK/Platform.h>
#include <LibCore/ThreadedPromise.h>
#if defined(HAVE_PULSEAUDIO) #if defined(HAVE_PULSEAUDIO)
# include "PlaybackStreamPulseAudio.h" # include "PlaybackStreamPulseAudio.h"

View file

@ -9,12 +9,9 @@
#include "SampleFormats.h" #include "SampleFormats.h"
#include <AK/AtomicRefCounted.h> #include <AK/AtomicRefCounted.h>
#include <AK/Function.h> #include <AK/Function.h>
#include <AK/Queue.h>
#include <AK/Time.h> #include <AK/Time.h>
#include <LibCore/Forward.h> #include <LibCore/Forward.h>
#include <LibThreading/ConditionVariable.h> #include <LibCore/ThreadedPromise.h>
#include <LibThreading/MutexProtected.h>
#include <LibThreading/Thread.h>
namespace Audio { namespace Audio {

View file

@ -8,6 +8,9 @@
#include "PlaybackStream.h" #include "PlaybackStream.h"
#include "PulseAudioWrappers.h" #include "PulseAudioWrappers.h"
#include <AK/Queue.h>
#include <LibThreading/ConditionVariable.h>
#include <LibThreading/Mutex.h>
namespace Audio { namespace Audio {

View file

@ -8,7 +8,6 @@
#include "Forward.h" #include "Forward.h"
#include "PlaybackStream.h" #include "PlaybackStream.h"
#include "SampleFormats.h"
#include <AK/AtomicRefCounted.h> #include <AK/AtomicRefCounted.h>
#include <AK/Error.h> #include <AK/Error.h>
#include <AK/NonnullRefPtr.h> #include <AK/NonnullRefPtr.h>

View file

@ -5,6 +5,7 @@
*/ */
#include "SampleFormats.h" #include "SampleFormats.h"
#include <AK/Assertions.h>
namespace Audio { namespace Audio {

View file

@ -6,7 +6,6 @@
#pragma once #pragma once
#include <AK/ByteString.h>
#include <AK/Types.h> #include <AK/Types.h>
namespace Audio { namespace Audio {

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-2-Clause * SPDX-License-Identifier: BSD-2-Clause
*/ */
#include <AK/Math.h> #include <LibGfx/Matrix.h>
#include <AK/StdLibExtras.h> #include <LibGfx/Matrix3x3.h>
#include <LibGfx/Matrix4x4.h> #include <LibGfx/Matrix4x4.h>
#include <LibMedia/Color/ColorPrimaries.h> #include <LibMedia/Color/ColorPrimaries.h>
#include <LibMedia/Color/TransferCharacteristics.h> #include <LibMedia/Color/TransferCharacteristics.h>

View file

@ -7,6 +7,7 @@
#include <AK/Debug.h> #include <AK/Debug.h>
#include <AK/Function.h> #include <AK/Function.h>
#include <AK/IntegralMath.h>
#include <AK/Math.h> #include <AK/Math.h>
#include <AK/Optional.h> #include <AK/Optional.h>
#include <AK/Time.h> #include <AK/Time.h>

View file

@ -7,9 +7,9 @@
#pragma once #pragma once
#include <AK/IntegralMath.h> #include <AK/NonnullOwnPtr.h>
#include <AK/NonnullRefPtr.h>
#include <AK/Optional.h> #include <AK/Optional.h>
#include <AK/OwnPtr.h>
#include <LibCore/MappedFile.h> #include <LibCore/MappedFile.h>
#include <LibMedia/DecoderError.h> #include <LibMedia/DecoderError.h>

View file

@ -13,7 +13,6 @@
#include <AK/Time.h> #include <AK/Time.h>
#include <LibCore/SharedCircularQueue.h> #include <LibCore/SharedCircularQueue.h>
#include <LibGfx/Bitmap.h> #include <LibGfx/Bitmap.h>
#include <LibMedia/Containers/Matroska/Document.h>
#include <LibMedia/Demuxer.h> #include <LibMedia/Demuxer.h>
#include <LibThreading/ConditionVariable.h> #include <LibThreading/ConditionVariable.h>
#include <LibThreading/Mutex.h> #include <LibThreading/Mutex.h>

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-2-Clause * SPDX-License-Identifier: BSD-2-Clause
*/ */
#include <AK/FixedArray.h>
#include <AK/NonnullOwnPtr.h> #include <AK/NonnullOwnPtr.h>
#include <AK/OwnPtr.h>
#include <LibMedia/Color/ColorConverter.h> #include <LibMedia/Color/ColorConverter.h>
#include "VideoFrame.h" #include "VideoFrame.h"

View file

@ -6,8 +6,6 @@
#pragma once #pragma once
#include <AK/ByteBuffer.h>
#include <AK/FixedArray.h>
#include <AK/Time.h> #include <AK/Time.h>
#include <LibGfx/Bitmap.h> #include <LibGfx/Bitmap.h>
#include <LibGfx/Size.h> #include <LibGfx/Size.h>