Пример #1
0
 public InternalPlayerConfiguration()
 {
     //set defaults if necessary
     VideoConfig = new VideoConfiguration();
     AudioConfig = new AudioConfiguration();
     SubtitleConfig = new SubtitleConfiguration();
     COMConfig = new KnownCOMObjectConfiguration();
     UsePrivateObjects = true;
 }
Пример #2
0
        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;
        }
Пример #3
0
 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;
     }
 }