Exemplo n.º 1
0
        public TestEncoder(ScreenInfo screenInfo)
        {
            _screenInfo = screenInfo;
            _x264Net    = new X264Net(1920, 1080);

            _sourceImage = new Bitmap(screenInfo.Width, screenInfo.Height);
            _fileStream  = File.Create("test.h264");
        }
Exemplo n.º 2
0
        public void Initialize(ScreenInfo screenInfo, IFrameTransmitter transmitter, ComponentOptions componentOptions)
        {
            if (_x264Net != null)
            {
                throw new InvalidOperationException("Already initialized.");
            }

            _x264Net     = new X264Net(screenInfo.Width, screenInfo.Height);
            _transmitter = transmitter;
        }