aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Dlna/TranscodingProfile.cs
blob: 32ffb91cf63636a0f2f1bc605a22272bde7b6b5f (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
40
41
42
43
44
using System.Collections.Generic;

namespace MediaBrowser.Controller.Dlna
{
    public class TranscodingProfile
    {
        public string Container { get; set; }

        public DlnaProfileType Type { get; set; }

        public string VideoCodec { get; set; }
        public string AudioCodec { get; set; }

        public bool EstimateContentLength { get; set; }

        public TranscodeSeekInfo TranscodeSeekInfo { get; set; }

        public List<TranscodingSetting> Settings { get; set; }

        public TranscodingProfile()
        {
            Settings = new List<TranscodingSetting>();
        }
    }

    public class TranscodingSetting
    {
        public TranscodingSettingType Name { get; set; }
        public string Value { get; set; }
    }

    public enum TranscodingSettingType
    {
        VideoLevel = 0,
        VideoProfile = 1,
        MaxAudioChannels = 2
    }

    public enum TranscodeSeekInfo
    {
        Auto = 0,
        Bytes = 1
    }
}