协议结构
代码语言:javascript复制struct uvc_control { //uvc控制
struct uvc_entity *entity; //uvc实体
struct uvc_control_info info; //uvc控制信息
__u8 index; //索引值
__u8 dirty:1,
loaded:1,
modified:1,
cached:1,
initialized:1; //初始化标志
__u8 *uvc_data; //uvc控制数据
};
window组件
代码语言:javascript复制//nuget安装DirectShowLib.net
public class DirectShowWraper: ISampleGrabberCB
{
private IFilterGraph2 m_graphBuilder = null;
private ICaptureGraphBuilder2 m_captureGraphBuilder = null;
private IVideoWindow m_videoWindow = null;
private IMediaControl m_mediaControl = null;
}
第三方库
aforge、opencv打开摄像头