1 Star 0 Fork 1

dengzhiyi2021/uvc_v4l2_QtVersion

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
v4l2grab.h 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
Frank.Chiang 提交于 2015-03-30 18:04 . First commit
#ifndef __V4L2GRAB_H__
#define __V4L2GRAB_H__
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned int DWORD;
#pragma pack(1)
typedef struct tagBITMAPFILEHEADER{
WORD bfType; // the flag of bmp, value is "BM"
DWORD bfSize; // size BMP file ,unit is bytes
DWORD bfReserved; // 0
DWORD bfOffBits; // must be 54
}BITMAPFILEHEADER;
typedef struct tagBITMAPINFOHEADER{
DWORD biSize; // must be 0x28
DWORD biWidth; //
DWORD biHeight; //
WORD biPlanes; // must be 1
WORD biBitCount; //
DWORD biCompression; //
DWORD biSizeImage; //
DWORD biXPelsPerMeter; //
DWORD biYPelsPerMeter; //
DWORD biClrUsed; //
DWORD biClrImportant; //
}BITMAPINFOHEADER;
typedef struct tagRGBQUAD{
BYTE rgbBlue;
BYTE rgbGreen;
BYTE rgbRed;
BYTE rgbReserved;
}RGBQUAD;
#define IMAGEWIDTH 640
#define IMAGEHEIGHT 480
#endif //__V4LGRAB_H___
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/dengzhiyi2021/uvc_v4l2_QtVersion.git
git@gitee.com:dengzhiyi2021/uvc_v4l2_QtVersion.git
dengzhiyi2021
uvc_v4l2_QtVersion
uvc_v4l2_QtVersion
master

搜索帮助