aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Session/TranscodingInfo.cs
blob: 8834856b041aea49fc65675b671c503ef378186d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#nullable disable
#pragma warning disable CS1591

using System.Text.Json.Serialization;

namespace MediaBrowser.Model.Session
{
    public class TranscodingInfo
    {
        public string AudioCodec { get; set; }

        public string VideoCodec { get; set; }

        public string Container { get; set; }

        public bool IsVideoDirect { get; set; }

        public bool IsAudioDirect { get; set; }

        public int? Bitrate { get; set; }

        public float? Framerate { get; set; }

        public double? CompletionPercentage { get; set; }

        public int? Width { get; set; }

        public int? Height { get; set; }

        public int? AudioChannels { get; set; }

        public HardwareEncodingType? HardwareAccelerationType { get; set; }

        public TranscodeReason[] TranscodeReasons => TranscodeReason.ToArray();

        [JsonIgnore]
        public TranscodeReason TranscodeReason { get; set; }
    }
}