Skip to content

Constant Definition

MAX_NAMELEN

Type: const int

Value: 36

Remark: Maximum name length.

MAX_CONTENTLEN

Type: const int

Value: 512

Remark: Maximum content length.

DD_MAX_CAMERA_NUM

Type: const unsigned int

Value: 128

Remark: Maximum number of cameras.

DD_MAX_CAMERA_NUM_BYTE_LEN

Type: const unsigned int

Value: DD_MAX_CAMERA_NUM / 8

Remark: Maximum number of cameras in bytes.

DD_MAX_SERIAL_NUMBER_LEN

Type: const unsigned int

Value: 64

Remark: Maximum sequence number length.

DD_MAX_VERSION_BUF_LEN

Type: const unsigned int

Value: 64

Remark: Maximum version number buffer length.

DD_MAX_NAME_LEN

Type: const unsigned int

Value: 64

Remark: Maximum name length.

DD_MAX_NAME_BUF_LEN

Type: const unsigned int

Value: (DD_MAX_NAME_LEN * 2) + 4

Remark: Maximum name buffer length.

DD_MAX_CAMERA_NAME_LEN

Type: const unsigned int

Value: 64

Remark: Maximum camera name length.

DD_MAX_CAMERA_NAME_BUF_LEN

Type: const unsigned int

Value: (DD_MAX_CAMERA_NAME_LEN * 2) + 4

Remark: Maximum camera name buffer length.

DD_MAX_URL_LEN

Type: const unsigned int

Value: 256

Remark: Maximum URL length.

DD_MAX_URL_BUF_LEN

Type: const unsigned int

Value: DD_MAX_URL_LEN + 4

Remark: Maximum URL buffer length.

DD_MAX_COLOR_CFG_NUM

Type: const unsigned int

Value: 3

Remark: Maximum number of color configurations.

DD_MAX_TEXT_LEN

Type: const unsigned int

Value: 64

Remark: Maximum text length.

DD_MAX_VIDEO_COVER_NUM

Type: const unsigned int

Value: 3

Remark: Maximum number of video covers.

DD_MAX_USER_NAME_LEN

Type: const unsigned int

Value: 64

Remark: Maximum username length.

DD_MAX_USER_NAME_BUF_LEN

Type: const unsigned int

Value: (DD_MAX_USER_NAME_LEN * 2) + 4

Remark: Maximum username buffer length.

DD_MAX_PASSWORD_LEN

Type: const unsigned int

Value: 128

Remark: Maximum password length.

DD_MAX_PASSWORD_BUF_LEN

Type: const unsigned int

Value: DD_MAX_PASSWORD_LEN + 4

Remark: Maximum password buffer length.

DD_MAX_PPPOE_ACCOUNT_LEN

Type: const unsigned int

Value: 128

Remark: Maximum PPPOE account length.

DD_MAX_PPPOE_ACCOUNT_BUF_LEN

Type: const unsigned int

Value: DD_MAX_PPPOE_ACCOUNT_LEN + 4

Remark: Maximum PPPOE account buffer length.

DD_MAX_DDNS_ACCOUNT_LEN

Type: const unsigned int

Value: 128

Remark: Maximum DDNS account length.

DD_MAX_DDNS_ACCOUNT_BUF_LEN

Type: const unsigned int

Value: DD_MAX_DDNS_ACCOUNT_LEN + 4

Remark: Maximum DDNS account buffer length.

DD_MAX_EMAIL_RECEIVE_ADDR_NUM

Type: const unsigned int

Value: 3

Remark: The maximum number of email receiving addresses.

DD_MAX_MOTION_AREA_WIDTH_NUM

Type: const unsigned int

Value: 1920 / 16

Remark: The maximum motion detection area width.

DD_MAX_MOTION_AREA_HIGHT_NUM

Type: const unsigned int

Value: (1080 / 16 + 3) & (~3)

Remark: The maximum number of motion detection area heights.

DD_MAX_PRESET_NUM

Type: const unsigned int

Value: 128

Remark: Maximum number of preset points.

DD_MAX_ACCOUNT_NUM

Type: const unsigned int

Value: 64

Remark: Maximum number of accounts.

DD_MAX_USERGROUP_NUM

Type: const unsigned int

Value: 64

Remark: Maximum number of user groups.

DD_MAX_SUPPORT_RESOLUTION

Type: const unsigned int

Value: 7

Remark: The maximum number of supported resolutions.

DD_MAX_FACE_INFO_GROUPS

Type: const unsigned int

Value: 16

Remark: The maximum number of face information groups supported.

DD_MAX_FACE_INFO_IMG

Type: const unsigned int

Value: 5

Remark: The maximum number of facial information images supported.

DD_CONFIG_VERSION

Type: const unsigned int

Value: 20101123

Remark: Configuration version.

DD_CONFIG_ITEM_FOR_SDK_DEFINE

Type: const unsigned int

Value: 0xf000

Remark: Here we define the commands used inside the SDK, using the method DD_CONFIG_ITEM_FOR_SDK_DEFINE+DD_CONFIG_ITEM_ID. For existing messages that do not meet the requirements of later versions, we add message fields internally to parse them into different structures.

DD_MAX_CERTIFICATE_NUM

Type: const unsigned int

Value: 20

Remark: Maximum number of certificates.

DD_INVALID_CLIENT_ID

Type: const unsigned int

Value: (~0x0)

Remark: Invalid client ID.

DD_LOCAL_CLIENT_ID

Type: const unsigned int

Value: 0

Remark: The local client ID.

MAX_NORMAL_PORT_NUM

Type: const unsigned int

Value: 128

Remark: Maximum number of normal ports.

MAX_DISPLAY_PORT_NUM

Type: const unsigned int

Value: MAX_NORMAL_PORT_NUM + LAYOUT_PIP_NUM

Remark: Maximum number of display ports.

PIP_SIZE_PERCENT

Type: const unsigned int

Value: 20

Remark: The picture-in-picture size percentage.

PORT_STATUS_BAR_HEIGHT

Type: const unsigned int

Value: 16

Remark: Height of the port status bar.

Error Code