2.6.32内核,V4L2架构
亲自测试可用
在友善之臂MINI2440开发板上测试可用
源程序如下
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <getopt.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <malloc.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <asm/types.h>
#include <linux/videodev2.h>
#define CLEAR(x) memset (&(x), 0, sizeof (x))
struct buffer {
void * start;
size_t length;
};
static c

本文介绍了在Linux 2.6.32内核中使用V4L2架构从友善之臂MINI2440开发板上的摄像头获取图像数据的详细过程,并提供了实际的源代码示例。
最低0.47元/天 解锁文章
629

被折叠的 条评论
为什么被折叠?



