CodecProfile.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Controller.Dlna
  3. {
  4. public class CodecProfile
  5. {
  6. public CodecType Type { get; set; }
  7. public List<ProfileCondition> Conditions { get; set; }
  8. public string[] Codecs { get; set; }
  9. public CodecProfile()
  10. {
  11. Conditions = new List<ProfileCondition>();
  12. Codecs = new string[] { };
  13. }
  14. }
  15. public enum CodecType
  16. {
  17. VideoCodec = 0,
  18. VideoAudioCodec = 1,
  19. AudioCodec = 2
  20. }
  21. public class ProfileCondition
  22. {
  23. public ProfileConditionType Condition { get; set; }
  24. public ProfileConditionValue Property { get; set; }
  25. public string Value { get; set; }
  26. }
  27. public enum ProfileConditionType
  28. {
  29. Equals = 0,
  30. NotEquals = 1,
  31. LessThanEqual = 2,
  32. GreaterThanEqual = 3
  33. }
  34. public enum ProfileConditionValue
  35. {
  36. AudioChannels,
  37. AudioBitrate,
  38. Filesize,
  39. Width,
  40. Height,
  41. VideoBitrate,
  42. VideoFramerate,
  43. VideoLevel
  44. }
  45. }