2024-01-09 15:49:47 +01:00
|
|
|
|
using System.Collections.Generic;
|
2023-01-15 17:23:49 +01:00
|
|
|
|
using static Flowframes.Data.Enums.Encoding;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Flowframes.Data
|
|
|
|
|
|
{
|
|
|
|
|
|
public class EncoderInfoVideo : EncoderInfo
|
|
|
|
|
|
{
|
|
|
|
|
|
public Codec Codec { get; set; } = (Codec)(-1);
|
2023-12-21 04:46:15 +01:00
|
|
|
|
public bool? Lossless { get; set; } = false; // True = Lossless Codec; False = Lossy codec with lossless option; null: Lossy with no lossless option
|
2023-01-15 17:23:49 +01:00
|
|
|
|
public bool HwAccelerated { get; set; } = false;
|
|
|
|
|
|
public int Modulo { get; set; } = 2;
|
|
|
|
|
|
public int MaxFramerate { get; set; } = 1000;
|
|
|
|
|
|
public List<PixelFormat> PixelFormats { get; set; } = new List<PixelFormat>();
|
2023-01-31 11:41:39 +01:00
|
|
|
|
public PixelFormat PixelFormatDefault { get; set; } = (PixelFormat)(-1);
|
2023-01-15 17:23:49 +01:00
|
|
|
|
public bool IsImageSequence { get; set; } = false;
|
|
|
|
|
|
public string OverideExtension { get; set; } = "";
|
2023-01-18 14:55:38 +01:00
|
|
|
|
public List<string> QualityLevels { get; set; } = new List<string> ();
|
|
|
|
|
|
public int QualityDefault { get; set; } = 0;
|
2024-01-09 15:49:47 +01:00
|
|
|
|
public string Name
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return FfmpegName.IsEmpty() ? Codec.ToString().Lower() : FfmpegName;
|
|
|
|
|
|
}
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
FfmpegName = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-01-15 17:23:49 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|