Skip to content

NET_SDK_FRAME_INFO

Structure Definition

 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;
}

Function Description

Data frame header definition.

Member Description

Member Type Remark
deviceID unsigned int Device ID number, used by SDK to distinguish devices.
channel unsigned int Channel number.
frameType unsigned int See DD_FRAME_TYPE.
length unsigned int Frame data length.
keyFrame unsigned int 0: non-keyframe 1: keyframe.
width unsigned int Data frame width.
height unsigned int Data frame height.
frameIndex unsigned int Dataframe index.
frameAttrib unsigned int Data frame attributes, see DD_FRAME_ATTRIB.
streamID unsigned int Data stream ID number.
time LONGLONG Absolute time, the absolute time starting from 0:0:0:0 on January 1, 1970, in microseconds, will change when the device time is changed.
relativeTime LONGLONG Relative time, in microseconds, does not change when the device time is changed and is a continuous time.
Error Code