Example #1
0
        private static void AppendHWAccelOutputFormat(StringBuilder commandBuilder, ConversionOptions conversionOptions)
        {
            if (conversionOptions.HWAccel != HWAccel.None && conversionOptions.HWAccelOutputFormatCopy)
            {
                HWAccel accel = conversionOptions.HWAccel;
                bool    add   = false;
                switch (conversionOptions.HWAccel)
                {
                case HWAccel.cuda:
                case HWAccel.cuvid:
                    add   = true;
                    accel = HWAccel.cuda;
                    break;

                case HWAccel.dxva2:         //Not tested
                case HWAccel.qsv:           //Not tested
                case HWAccel.d3d11va:       //Not tested
                default:
                    break;
                }
                if (add)
                {
                    commandBuilder.AppendFormat(" -hwaccel_output_format {0} ", accel);
                }
            }
        }
Example #2
0
        public void Load()
        {
            RegEdit options = new RegEdit(RegistryUtil.GetHKLMKey(@"SOFTWARE\Perspective Software\Blue Iris\Options"));

            HardwareAcceleration = (HWAccel)options.DWord("hwaccel");
            ServiceMode          = options.DWord("service") == 1;
            if (options.DWord("limitlive") == 0)
            {
                LivePreviewFPS = -2;
            }
            else
            {
                LivePreviewFPS = RegistryUtil.GetHKLMValue <int>(@"SOFTWARE\Perspective Software\Blue Iris\Options", "livefps", -1);                // Custom failure value of -1
            }
        }