📄 spca50x.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -