spca50x.h

来自「用于LINUX摄像头的相关程序」· C头文件 代码 · 共 48 行

H
48
字号
#ifndef SPCA50X_H#define SPCA50X_H/* Camera type jpeg yuvy yyuv yuyv grey gbrg*/enum {	JPEG,	YUVY,	YYUV,	YUYV,	GREY,	GBRG,};struct spca50x_frame {	unsigned char *data;		/* Frame buffer */	unsigned char *tmpbuffer;	/* temporary buffer spca50x->tmpbuffer need for decoding*/	int seq;                /* Frame sequence number */	int depth;		/* Bytes per pixel */	int width;		/* Width application is expecting */	int height;		/* Height */	int hdrwidth;		/* Width the frame actually is */	int hdrheight;		/* Height */	int method;		/* The decoding method for that frame 0 nothing 1 crop 2 div 4 mult */	int cropx1;		/* value to be send with the frame for decoding feature */	int cropx2;	int cropy1;	int cropy2;	int x;	int y;		unsigned int format;	/* Format asked by apps for this frame */	int cameratype;		/* native in frame format */			long scanlength;	/* uncompressed, raw data length of frame */	long bytes_read;	/* amount of scanlength that has been read from *data */	};#endif /* SPCA50X_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?