Make Every Class Internal

This commit is contained in:
copecone committed 2026-08-17 03:16:19 +09:00
1 parent 54b7eb7466
commit 485ebffbd3
38 files changed
+50 -51

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ using System;
namespace ADOFAIRenderer.Util.Audio
{
public static class AudioResampler
internal static class AudioResampler
{
public static float[] Resample(float[] inputSamples, int inputChannels, int inputFrequency, int targetChannels, int targetFrequency)
{
+1 -1
View File
@@ -5,7 +5,7 @@ using UnityEngine;
namespace ADOFAIRenderer.Util.Audio
{
public static class AudioSpectrumGenerator
internal static class AudioSpectrumGenerator
{
public static float[]? AudioClipData { get; private set; }
public static int Channels { get; private set; }
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
namespace ADOFAIRenderer.Util.Audio
{
public class AudioSyncCalculator
internal class AudioSyncCalculator
{
private readonly long _sampleRate;
private readonly (long Numerator, long Denominator) _fpsRational;
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
namespace ADOFAIRenderer.Util.Audio.Filter
{
public class Gain : IAudioFilter
internal class Gain : IAudioFilter
{
public float Level = 0f;
+1 -1
View File
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
namespace ADOFAIRenderer.Util.Audio.Filter
{
public class HardClip : IAudioFilter
internal class HardClip : IAudioFilter
{
// ReSharper disable once MemberCanBePrivate.Global
// ReSharper disable once FieldCanBeMadeReadOnly.Global
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
namespace ADOFAIRenderer.Util.Audio.Filter
{
public interface IAudioFilter
internal interface IAudioFilter
{
void Initialize(int sampleRate, int channels);
+1 -1
View File
@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
namespace ADOFAIRenderer.Util.Audio.Filter
{
// ReSharper disable once InconsistentNaming
public class RMSCompressor : IAudioFilter
internal class RMSCompressor : IAudioFilter
{
private float _thresholdDb = -20f;
private float _ratio = 4f;
+2 -2
View File
@@ -7,7 +7,7 @@ using UnityEngine;
namespace ADOFAIRenderer.Util.Audio
{
public class AudioClipCache
internal class AudioClipCache
{
private readonly Dictionary<string, CachedClipData> _cache = new();
@@ -69,7 +69,7 @@ namespace ADOFAIRenderer.Util.Audio
}
}
public class OfflineAudioMixer
internal class OfflineAudioMixer
{
public class SoundEvent
{
+2 -2
View File
@@ -6,9 +6,9 @@ using UnityEngine;
namespace ADOFAIRenderer.Util
{
public static class BundleLoader
internal static class BundleLoader
{
private static string BundlePlatform;
private static readonly string BundlePlatform;
private static readonly Assembly? ExecutingAssembly;
static BundleLoader()
+1 -1
View File
@@ -3,7 +3,7 @@
namespace ADOFAIRenderer.Util.FFmpeg
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum Codec
internal enum Codec
{
H264, H265, VP9, AV1, VVC
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
/// FFmpeg의 C 네이티브 API를 사용하여 비디오 파일을 스트리밍 방식으로 디코딩하는 클래스입니다.
/// 플레이어 형태가 아니며, 필요할 때 프레임을 순차적으로 읽거나 앞으로 탐색(Seek/Skip)할 수 있습니다.
/// </summary>
public sealed unsafe class FFmpegNativeDecoder : IDisposable
internal sealed unsafe class FFmpegNativeDecoder : IDisposable
{
private AVFormatContext* _pFormatContext = null;
private AVCodecContext* _pCodecContext = null;
+1 -1
View File
@@ -36,7 +36,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
/// • 하드웨어 가속 개요: https://ffmpeg.org/doxygen/trunk/group__lavu__hwcontext.html
/// • HW 가속 위키: https://trac.ffmpeg.org/wiki/HWAccelIntro
/// </summary>
public sealed unsafe class FFmpegNativeEncoder : IDisposable
internal sealed unsafe class FFmpegNativeEncoder : IDisposable
{
/// <summary>
/// 인코더에 전달할 설정값을 담는 구조체입니다.
+1 -1
View File
@@ -3,7 +3,7 @@
namespace ADOFAIRenderer.Util.FFmpeg
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum RateControlMode
internal enum RateControlMode
{
CBR,
VBR,
+1 -1
View File
@@ -16,7 +16,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public sealed class VideoEncoder : IEquatable<VideoEncoder>
internal sealed class VideoEncoder : IEquatable<VideoEncoder>
{
// ReSharper disable MemberCanBePrivate.Global
+1 -1
View File
@@ -9,7 +9,7 @@ using FFmpeg.AutoGen;
namespace ADOFAIRenderer.Util
{
// ReSharper disable once InconsistentNaming
public class FFmpegVideoBGPlayer : MonoBehaviour
internal class FFmpegVideoBGPlayer : MonoBehaviour
{
private static readonly int YTex = Shader.PropertyToID("_YTex");
private static readonly int UVTex = Shader.PropertyToID("_UVTex");
+1 -1
View File
@@ -12,7 +12,7 @@ using UnityEngine.Rendering;
namespace ADOFAIRenderer.Util
{
public class FrameReader : IDisposable
internal class FrameReader : IDisposable
{
private static readonly int Height = Shader.PropertyToID("Height");
private static readonly int Width = Shader.PropertyToID("Width");
+2 -2
View File
@@ -9,12 +9,12 @@ using UnityEngine;
namespace ADOFAIRenderer.Util
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum GPUVendor
internal enum GPUVendor
{
Unknown, NVIDIA, AMD, Intel, Apple
}
public static class GPUUtil
internal static class GPUUtil
{
private const string NvidiaPattern =
@"^NVIDIA GeForce [RG]TX [0-9]+(?> SUPER| Ti(?> SUPER)?)?(?> [0-9]+GB)?(?> Laptop GPU)?(?>/PCIe/SSE2)?$";
+1 -1
View File
@@ -19,7 +19,7 @@ namespace ADOFAIRenderer.Util
/// - <b>Linux</b>: Uses <c>notify-send</c> (libnotify) with <c>xdg-open</c> for folder actions.
/// </para>
/// </summary>
public static class OSNotification
internal static class OSNotification
{
/// <summary>
/// Sends a native desktop notification.
+1 -1
View File
@@ -4,7 +4,7 @@ using UnityEngine;
namespace ADOFAIRenderer.Util
{
public static class ParticleUtil
internal static class ParticleUtil
{
private static readonly ConditionalWeakTable<ParticleSystem, ParticleSystemRenderer> Cache = new();
+1 -2
View File
@@ -2,7 +2,7 @@
namespace ADOFAIRenderer.Util
{
public class RationalUtil
internal static class RationalUtil
{
public static (int Numerator, int Denominator) Double2MaxPrecisionInt(double value,
int maxDenominator = 100000000)
@@ -11,7 +11,6 @@ namespace ADOFAIRenderer.Util
if (value == 0.0) return (0, 1);
var isNegative = value < 0;
var sign = isNegative ? -1.0 : 1.0;
var target = Math.Abs(value);
// 2. 스턴-브로코 / 연속분수 경계값 초기화
// 아래 두 행의 분수 (0/1, 1/0) 사이에서 시작하여 타겟에 가까워집니다.
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
namespace ADOFAIRenderer.Util
{
public static class RegistryUtil
internal static class RegistryUtil
{
private static readonly Type? RegistryKeyType;
private static readonly Type? RegistryHiveType;
+1 -1
View File
@@ -4,7 +4,7 @@ using MelonLoader;
namespace ADOFAIRenderer.Util
{
public static class StreamUtil
internal static class StreamUtil
{
public static void WriteNativePtrToStream(IntPtr nativePtr, int length, Stream destinationStream)
{