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.

# DD_ENCODE_CONFIG

### Structure Definition

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    typedef struct _dd_encode_config_
    {
        unsigned int iSize;
        unsigned short resolution;
        unsigned short rate;
        unsigned short encodeType;
        unsigned short quality;
        unsigned short minBitrate;
        unsigned short maxBitrate;
        unsigned short gop;
    } DD_ENCODE_CONFIG;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct DD_ENCODE_CONFIG
    {
        public UInt32 iSize;
        public UInt16 resolution;
        public UInt16 rate;
        public UInt16 encodeType;
        public UInt16 quality;
        public UInt16 minBitrate;
        public UInt16 maxBitrate;
        public UInt16 gop;
    }

### Function Description

Video encoding configuration structure.

### Member Description

Member | Type | Remark
--- | --- | ---
iSize | unsigned int | The length of this structure.
resolution | unsigned short | Resolution, refer to `DD_VIDEO_SIZE` for the value.
rate | unsigned short | Frame rate.
encodeType | unsigned short | Encoding type, refer to `DD_VIDEO_ENCODE_MODE` for its value.
quality | unsigned short | Image quality. For the value, refer to `DD_IMAGE_QUALITY`.
minBitrate | unsigned short | The lower limit of the bit rate, in kbps.
maxBitrate | unsigned short | The upper limit of the bit rate, in kbps.
gop | unsigned short | I frame interval.

Error Code