Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# ENCODE_FRAME_INFO

### Structure Definition

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    typedef struct encode_frame_info
    {
        unsigned int keyFrame;
        int nWidth;
        int nHeight;
        unsigned int time;
        int frameIndex;
        unsigned int dwLen;
        unsigned char* pData;
    } ENCODE_FRAME_INFO;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct ENCODE_FRAME_INFO
    {
        public UInt32 keyFrame;
        public Int32 nWidth;
        public Int32 nHeight;
        public UInt32 time;
        public Int32 frameIndex;
        public UInt32 dwLen;
        public IntPtr pData;
    }

### Function Description

Encoded frame information.

### Member Description

Member | Type | Remark
--- | --- | ---
keyFrame | unsigned int | Is it a key frame? 0: Yes.
nWidth | int | Frame width.
nHeight | int | Frame height.
time | unsigned int | The frame time in seconds.
frameIndex | int | Frame index.
dwLen | unsigned int | Frame data length.
pData | unsigned char* | Frame data.

Error Code