跳转至

NET_SDK_FRAME_INFO

结构体定义

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
typedef struct _net_sdk_frame_info
{
    unsigned int deviceID;    
    unsigned int channel;     
    unsigned int frameType;   
    unsigned int length;      
    unsigned int keyFrame;    
    unsigned int width;       
    unsigned int height;      
    unsigned int frameIndex;  
    unsigned int frameAttrib; 
    unsigned int streamID;    
    LONGLONG time;            
    LONGLONG relativeTime;    
} NET_SDK_FRAME_INFO;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct NET_SDK_FRAME_INFO
{
    public UInt32 deviceID;
    public UInt32 channel;
    public UInt32 frameType;
    public UInt32 length;
    public UInt32 keyFrame;
    public UInt32 width;
    public UInt32 height;
    public UInt32 frameIndex;
    public UInt32 frameAttrib;
    public UInt32 streamID;
    public Int64 time;
    public Int64 relativeTime;
}

功能描述

数据帧头定义。

成员说明

成员 类型 备注
deviceID unsigned int 设备ID号,SDK用来区分设备。
channel unsigned int 通道号。
frameType unsigned int 参考DD_FRAME_TYPE
length unsigned int 帧数据长度。
keyFrame unsigned int 0:非关键帧 1:关键帧。
width unsigned int 数据帧宽度。
height unsigned int 数据帧高度。
frameIndex unsigned int 数据帧索引。
frameAttrib unsigned int 数据帧属性,参考DD_FRAME_ATTRIB
streamID unsigned int 数据流ID号。
time LONGLONG 绝对时间,从1970年1月1日0点0分0秒开始的绝对时间,单位微秒,在改变设备时间时会变化。
relativeTime LONGLONG 相对时间,单位微秒,在改变设备时间时不会变化,是个连续的时间。
错误码