コード例 #1
0
ファイル: MediaCaptureInternal.cs プロジェクト: yusharth/psi
        /// <summary>
        /// Get current video format.
        /// </summary>
        /// <returns>Video format.</returns>
        public VideoFormat GetVideoFormat()
        {
            var format = new LinuxVideoInterop.VideoFormat()
            {
                Type = LinuxVideoInterop.BufferType.VideoCapture
            };                                                                                                     // note: only video capture supported

            LinuxVideoInterop.GetFormat(this.handle, ref format);
            return(new VideoFormat(format));
        }
コード例 #2
0
ファイル: MediaCaptureInternal.cs プロジェクト: yusharth/psi
 /// <summary>
 /// Initializes a new instance of the <see cref="VideoFormat"/> class.
 /// </summary>
 /// <param name="internalFormat">Internal format provided by the driver.</param>
 internal VideoFormat(LinuxVideoInterop.VideoFormat internalFormat)
 {
     this.internalFormat = internalFormat;
 }