typedef struct tagVideoFrame
{
VIDEO_CODEC codec;
RESOLUTION resolution;
unsigned char stream;
unsigned char snapshot;
unsigned char keyframe;
unsigned long tick;
int t;
unsigned long len;
unsigned char * data;
char play;
} VIDEO_FRAME;
VIDEO_FRAME is used to describe the video frames camera received.
Member | Expain |
codec | Video coding format |
resolution | Video frame resolution |
stream | Video stream number |
snapshot | Whether the video frame is captured data |
keyframe | For the mpeg4/h264 encoding scheme, on behalf of the frame is a key frame. For the MJPEG encoding scheme, this variable is always 1, that is, the key frame |
tick | Timestamp of video frame capture, unit 10ms |
t | The video frame captures time, to the number of seconds by 1970-1-1 0:0:0 |
len | The video frame data length |
data | Video frame data |
play | This variable indicates whether the video frames to be displayed. 0, that do not need to be displayed (in addition to display outside of the operation, such as video, still need to handle) |