public InternalPlayerConfiguration()
 {
     //set defaults if necessary
     VideoConfig = new VideoConfiguration();
     AudioConfig = new AudioConfiguration();
     SubtitleConfig = new SubtitleConfiguration();
     COMConfig = new KnownCOMObjectConfiguration();
     UsePrivateObjects = true;
 }
Example #2
0
 public InternalPlayerConfiguration()
 {
     //set defaults if necessary
     VideoConfig       = new VideoConfiguration();
     AudioConfig       = new AudioConfiguration();
     SubtitleConfig    = new SubtitleConfiguration();
     COMConfig         = new KnownCOMObjectConfiguration();
     UsePrivateObjects = true;
     PublishGraph      = false;
 }
        public static int GetHwaResolutions(VideoConfiguration config)
        {
            if (config.HwaResolution > -1)
                return config.HwaResolution;

            if (GpuModel.IndexOf("Intel") > -1)
                return 7; // SD + HD + UHD
            else
                return 3; // SD + HD;
        }
 public InternalPlayerConfiguration()
 {
     //set defaults if necessary
     VideoConfig = new VideoConfiguration();
     AudioConfig = new AudioConfiguration();
     SubtitleConfig = new SubtitleConfiguration();
     SplitterConfig = new SplitterConfiguration();
     COMConfig = new KnownCOMObjectConfiguration();
     UsePrivateObjects = true;
     PublishGraph = false;
     FilterSet = string.Empty;
 }
 public static LAVHWAccel GetHwaMode(VideoConfiguration config, bool preferDXVA2)
 {
     if (config.HwaMode > -1)
         return (LAVHWAccel)config.HwaMode;
     else if (preferDXVA2)
         return LAVHWAccel.DXVA2Native;
     else
     {
         if (GpuModel.IndexOf("Intel") > -1)
             return LAVHWAccel.QuickSync;
         else
             return LAVHWAccel.DXVA2CopyBack;
     }
 }