mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-25 11:54:43 +08:00
23 lines
598 B
C#
23 lines
598 B
C#
using System.Runtime.CompilerServices;
|
|
|
|
namespace BililiveRecorder.Core.Templating
|
|
{
|
|
internal static class StreamQualityNumber
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static string MapToString(int qn) => qn switch
|
|
{
|
|
30000 => "杜比",
|
|
20000 => "4K",
|
|
10000 => "原画",
|
|
401 => "蓝光(杜比)",
|
|
400 => "蓝光",
|
|
250 => "超清",
|
|
150 => "高清",
|
|
80 => "流畅",
|
|
-1 => "录播姬脚本",
|
|
_ => $"未知({qn})"
|
|
};
|
|
}
|
|
}
|