深海的小鱼儿

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年8月20日

摘要: V4L2 API及数据结构 V4L2是V4L的升级版本,为linux下视频设备程序提供了一套接口规范。包括一套数据结构和底层V4L2驱动接口。 1、常用的结构体在内核目录include/linux/videodev2.h中定义 struct v4l2_requestbuffers //申请帧缓冲,对应命令VIDIOC_REQBUFS struct v4l2_capability //视频设备的... 阅读全文
posted @ 2011-08-20 12:12 深海的小鱼儿 阅读(1664) 评论(0) 推荐(1) 编辑

摘要: mmap函数是unix/linux下的系统调用,来看《Unix Netword programming》卷二12.2节对mmap的介绍: The mmap function maps either a file or a Posix shared memory object into the address space of a process.We use this function for t... 阅读全文
posted @ 2011-08-20 09:53 深海的小鱼儿 阅读(16761) 评论(0) 推荐(0) 编辑