mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
767 B
26 lines
767 B
using ErsatzTV.FFmpeg.Format; |
|
|
|
namespace ErsatzTV.FFmpeg; |
|
|
|
public record FrameState( |
|
bool Realtime, |
|
bool InfiniteLoop, |
|
string VideoFormat, |
|
Option<string> VideoProfile, |
|
Option<string> VideoPreset, |
|
bool AllowBFrames, |
|
Option<IPixelFormat> PixelFormat, |
|
FrameSize ScaledSize, |
|
FrameSize PaddedSize, |
|
Option<FrameSize> CroppedSize, |
|
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); |
|
}
|
|
|