基于嵌入式Linux的视频采集系统16-----源程序----v4l_driver.h
来源:互联网 发布:js键值对集合 编辑:程序博客网 时间:2024/04/30 06:48
本文来自:
http://blog.chinaunix.net/uid-23093301-id-86405.html
#ifndef V4L12_DRIVER_H_
http://blog.chinaunix.net/uid-23093301-id-86405.html
#ifndef V4L12_DRIVER_H_
#define V4L12_DRIVER_H_
#include <iostream>
#include <string>
using namespace std;
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <linux/videodev.h>
#include "def.h"
#define NB_BUFFER 4
#define DHT_SIZE 432
class CVideoDriver
{
//public:
// static CVideoDriver& instance();
//private:
// static CVideoDriver* globle_ptr;
public:
CVideoDriver();
~CVideoDriver();
int start(const string& dev,const int& width,const int& height,const int& fps,const int& format);
int capture(unsigned char* pimage);
int close();
int enalbe();
int disable();
//! for control
int v4l2_up_control(const int& control);
private:
/******************** cnfig Private Field ************************/
video_inputm_video_input;
string usb_video_device_name;
int m_cap_width;
int m_cap_height;
int m_cap_fps;
int m_cap_fmt;
private:
int init_device();
/* @fn
* @brief set capture format
*/
int set_format();
/* @fn
* brief set framerate
*/
int set_framerate();
/*@fn
* @brief set maped buffer
*/
int set_map_buffer();
int isv4l2Control(const int& control,struct v4l2_queryctrl& queryctrl);
int v4l2GetControl(const int& control) ;
};
#endif
- 基于嵌入式Linux的视频采集系统16-----源程序----v4l_driver.h
- 基于嵌入式Linux的视频采集系统19-----源程序----v4l_driver.h
- 基于嵌入式Linux的视频采集系统12-----源程序----rtp_service.h
- 基于嵌入式Linux的视频采集系统14-----源程序----display.h
- 基于嵌入式Linux的视频采集系统17-----源程序----decoder.h
- 基于嵌入式Linux的视频采集系统13-----源程序----rtp_service.cpp
- 基于嵌入式Linux的视频采集系统15-----源程序----display.cpp
- 基于嵌入式Linux的视频采集系统18-----源程序----decoder.cpp
- 基于嵌入式Linux的视频采集系统20-----源程序----stlmain.cpp
- 基于嵌入式Linux系统的S3C2410的视频采集系统
- 基于嵌入式Linux的视频采集系统5--基于MJPEG编码方式的视频采集实现
- 基于嵌入式Linux的视频采集系统1
- 基于嵌入式Linux的视频采集系统9----基于JRTPLIB的视频数据接收模块实现
- 基于嵌入式Linux的视频采集系统4-----采集模块的设计方案
- 基于嵌入式Linux的视频采集系统6----视频在LCD上的实时显示
- 基于嵌入式Linux的视频采集系统7---视频图像格式转化
- 基于嵌入式Linux的视频采集系统10----实时视频显示模块
- 基于嵌入式Linux的视频采集系统8----基于RTP协议的实时传输模块
- Fedora 16环境下Boost的编译安装
- 算法库(一)
- C++多线程入门(二)
- Telerik的Test Studio R1 2012 新功能
- 最近干了什么
- 基于嵌入式Linux的视频采集系统16-----源程序----v4l_driver.h
- HNU 11704 Baidu Post Bar
- 百度2011年9月面试题
- mysql 日期详细操作
- 基于嵌入式Linux的视频采集系统17-----源程序----decoder.h
- problem 11 矩阵中连续四个数的最大积
- 2011湖南省ACM大赛G题
- VC++ INI文件修改,读取键值
- 赵雅智_java 接口