SHA256
Make Every Class Internal
This commit is contained in:
38 files changed
+50
-51
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
|
||||
namespace ADOFAIRenderer.Util.Audio.Filter
|
||||
{
|
||||
public class Gain : IAudioFilter
|
||||
internal class Gain : IAudioFilter
|
||||
{
|
||||
public float Level = 0f;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
|
||||
namespace ADOFAIRenderer.Util.Audio.Filter
|
||||
{
|
||||
public interface IAudioFilter
|
||||
internal interface IAudioFilter
|
||||
{
|
||||
void Initialize(int sampleRate, int channels);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace ADOFAIRenderer.Util.FFmpeg
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum Codec
|
||||
internal enum Codec
|
||||
{
|
||||
H264, H265, VP9, AV1, VVC
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
/// 인코더에 전달할 설정값을 담는 구조체입니다.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace ADOFAIRenderer.Util.FFmpeg
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum RateControlMode
|
||||
internal enum RateControlMode
|
||||
{
|
||||
CBR,
|
||||
VBR,
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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
@@ -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)?$";
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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) 사이에서 시작하여 타겟에 가까워집니다.
|
||||
|
||||
@@ -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
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user