Linux V4L2框架源码分析

#V4L2 video_device 分析

##目录

video_device 结构体

struct video_device 结构体是用来生成和管理V4L2 device节点的。video_device结构体如下:

struct video_device
{
#if defined(CONFIG_MEDIA_CONTROLLER)
	struct media_entity entity;
	struct media_intf_devnode *intf_devnode;
	struct media_pipeline pipe;
#endif
	const struct v4l2_file_operations *fops;

	u32 device_caps;     //device capabilities as used in v4l2_capabilities

	/* sysfs */
	struct device dev;     //struct device for the video device
	struct cdev *cdev;

	struct v4l2_device *v4l2_dev;    //pointer to &struct v4l2_device parent
	struct device *dev_parent;
	
	struct v4l2_ctrl_handler *ctrl_handler;

	struct vb2_queue *queue;    //vb2_queue associated with this device node

	struct v4l2_prio_state *prio;   //with device's Priority state

	/* device info */
	char name[32];
	int vfl_type;         //V4L device type
	int v
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值