* fix colorspace bug, vaapi song playback * more colorspace fixes, nvidia fixes * nvidia colorspace fixes * fix some qsv output color metadata * update changelog * update changelog
24 lines
677 B
C#
24 lines
677 B
C#
using ErsatzTV.FFmpeg.Format;
|
|
|
|
namespace ErsatzTV.FFmpeg;
|
|
|
|
public record FrameState(
|
|
bool Realtime,
|
|
bool InfiniteLoop,
|
|
string VideoFormat,
|
|
Option<string> VideoProfile,
|
|
Option<IPixelFormat> PixelFormat,
|
|
FrameSize ScaledSize,
|
|
FrameSize PaddedSize,
|
|
bool IsAnamorphic,
|
|
Option<int> FrameRate,
|
|
Option<int> VideoBitrate,
|
|
Option<int> VideoBufferSize,
|
|
Option<int> VideoTrackTimeScale,
|
|
bool Deinterlaced,
|
|
FrameDataLocation FrameDataLocation = FrameDataLocation.Unknown)
|
|
{
|
|
public string FFmpegAspectRatio => PaddedSize.Width == 640 ? "4/3" : "16/9";
|
|
public int BitDepth => PixelFormat.Map(pf => pf.BitDepth).IfNone(8);
|
|
}
|