public CapturePreview(MainWindow mainWindow, int numb)
        {
            m_number     = numb;
            m_mainWindow = mainWindow;
            InitializeComponent();

            m_deckLinkDiscovery = new DeckLinkDeviceDiscovery();

            m_deckLinkDiscovery.DeviceArrived += new DeckLinkDiscoveryHandler((d) => this.Invoke((Action)(() => AddDevice(d))));
            m_deckLinkDiscovery.DeviceRemoved += new DeckLinkDiscoveryHandler((d) => this.Invoke((Action)(() => RemoveDevice(d))));
            Thread.Sleep(100);
            this.Text = "Camera #" + numb.ToString();
        }
Beispiel #2
0
        public OutputGenerator()
        {
            InitializeComponent();

            m_running = false;

            m_deckLinkDiscovery = new DeckLinkDeviceDiscovery();

            m_deckLinkDiscovery.DeviceArrived += new DeckLinkDiscoveryHandler((d) => this.Invoke((Action)(() => AddDevice(d))));
            m_deckLinkDiscovery.DeviceRemoved += new DeckLinkDiscoveryHandler((d) => this.Invoke((Action)(() => RemoveDevice(d))));

            m_pixelFormat      = _BMDPixelFormat.bmdFormat10BitRGB; //jede, duhové barvy 10bit
            m_pixelFormat      = _BMDPixelFormat.bmdFormat10BitYUV; //jede, pruhy svisle 10bit
            m_pixelFormat      = _BMDPixelFormat.bmdFormat8BitYUV;  //jede, pruhy...
            m_pixelFormat      = _BMDPixelFormat.bmdFormat8BitBGRA; //správné pořadí, ale nejede...
            m_pixelFormat      = _BMDPixelFormat.bmdFormat8BitARGB;
            m_audioSampleDepth = _BMDAudioSampleType.bmdAudioSampleType16bitInteger;
        }