/// <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)); }
/// <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; }