Example #1
0
        public static string FormatVideoDynamicRangeType(MediaInfoModel mediaInfo)
        {
            switch (mediaInfo.GetHdrFormat())
            {
            case HdrFormat.DolbyVision:
                return("DV");

            case HdrFormat.DolbyVisionHdr10:
                return("DV HDR10");

            case HdrFormat.Hdr10:
                return("HDR10");

            case HdrFormat.Hdr10Plus:
                return("HDR10Plus");

            case HdrFormat.Hlg10:
                return("HLG");

            case HdrFormat.Pq10:
                return("PQ");

            case HdrFormat.UnknownHdr:
                return("HDR");
            }

            return("");
        }
Example #2
0
 public static string FormatVideoDynamicRange(MediaInfoModel mediaInfo)
 {
     return(mediaInfo.GetHdrFormat() == HdrFormat.None ? "" : "HDR");
 }