Skip to content

DD_ENCODE_CONFIG_EX

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
typedef struct _dd_encode_config_ex_
{
    unsigned int iSize;          
    unsigned int resolution;     
    unsigned short rate;         
    unsigned short encodeType;   
    unsigned short quality;      
    unsigned short minBitrate;   
    unsigned short maxBitrate;   
    unsigned short bitrate;      
    unsigned short encodeFormat; 
    unsigned short gop;          
    unsigned short minGop;       
    unsigned short maxGop;       
    char recv[8];                
} DD_ENCODE_CONFIG_EX;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct DD_ENCODE_CONFIG_EX
{
    public UInt32 iSize;
    public UInt32 resolution;
    public UInt16 rate;
    public UInt16 encodeType;
    public UInt16 quality;
    public UInt16 minBitrate;
    public UInt16 maxBitrate;
    public UInt16 bitrate;
    public UInt16 encodeFormat;
    public UInt16 gop;
    public UInt16 minGop;
    public UInt16 maxGop;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 8)]
    public byte[] recv;
}

Function Description

Video encoding configuration extension structure.

Member Description

Member Type Remark
iSize unsigned int The length of this structure.
resolution unsigned int 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.
bitrate unsigned short Bit rate.
encodeFormat unsigned short Codec 264 or 265, see DD_VIDEO_ENCODE_FORMAT.
gop unsigned short I frame interval.
minGop unsigned short Minimum I-frame interval.
maxGop unsigned short Maximum I frame interval.
recv char[8] Reserved bytes.
Error Code