char name[V4L2_DEVICE_NAME_SIZE]; void (*notify)(struct v4l2_subdev *sd, unsigned int notification, void *arg); struct v4l2_ctrl_handler *ctrl_handler; struct v4l2_prio_state prio; struct mutex ioctl_lock; struct kref ref; void (*release)(struct v4l2_device *v4l2_dev); }; [cpp]...
define V4L2_CAP_HW_FREQ_SEEK0x00000400 /* Can do hardware frequency seek */ define V4L2_CAP_RDS_OUTPUT0x00000800 /* Is an RDS encoder */ define V4L2_CAP_TUNER0x00010000 /* has a tuner */ define V4L2_CAP_AUDIO0x00020000 /* has audio support */ define V4L2_CAP_RAD...
- cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; - return 0; } @@ -2699,6 +2696,7 @@ static int coda_register_device(struct coda_dev *dev, int i) vfd->lock = &dev->dev_mutex; vfd->v4l2_dev = &dev->v4l2_dev; vfd->vfl_dir = VFL_DIR_M2M; + vfd->device...
+++ b/include/uapi/linux/videodev2.h @@ -1269,6 +1269,7 @@ struct v4l2_ext_controls { #define V4L2_CTRL_ID_MASK (0x0fffffff) #define V4L2_CTRL_ID2CLASS(id) ((id) & 0x0fff0000UL) #define V4L2_CTRL_DRIVER_PRIV(id) (((id) & 0xffff) >= 0x1000) +#define V4L2_CTRL_MAX...
struct dev_pm_domain *pm_domain; #ifdef CONFIG_NUMA int numa_node; /* NUMA node this device is close to */ #endif u64 *dma_mask; /* dma mask (if dma'able device) */ u64 coherent_dma_mask;/* Like dma_mask, but for alloc_coherent mappings as not all hardware supports ...
gboolean low_latency_mode guint smart_record gint source_width gint source_height gint source_fps_n gint source_fps_d gint camera_csi_sensor_id gint camera_v4l2_dev_node gchar * uri gchar * dir_path gchar * file_prefix gint latency guint smart_rec_cache_size guint smart_rec_container ...
博友文章通过V4L2采集yuv数据,并用x264压缩数据成H264格式的文件修改添加支持YUV422格式编码): 流程图调用libx264进行视频编码的流程图如下所示。 流程图中主要的函数如下所示..._picture_clean():释放x264_picture_alloc()申请的资源。 存储数据的结构体如下所示。x264_picture_t:存储压缩编码前的像素数据。x26...
struct mutex lock; - struct spinlock slock; + spinlock_t slock; struct v4l2_device v4l2_dev; struct video_device *vfd_encoder; -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org ...
> +++ b/include/uapi/linux/videodev2.h > @@ -1269,6 +1269,7 @@ struct v4l2_ext_controls { > #define V4L2_CTRL_ID_MASK (0x0fffffff) > #define V4L2_CTRL_ID2CLASS(id) ((id) & 0x0fff0000UL) > #define V4L2_CTRL_DRIVER_PRIV(id) (((id) & 0xffff) >= 0x1000) ...