Reserved APIs

The APIs described in this section are reserved and may be changed or deprecated in the future. They do not need your attention.

Table 1 API List

API Name

Description

ToFormat(const std::string &formatStr)

Converts a string to a format.

ToString(Format format)

Converts a format to a string.

GetSubFormat(int32_t format)

Obtains the subformat of a specified format.

GetSubFormat(Format format)

HasSubFormat(int32_t format)

Obtains the subformat of a specified format.

GetC0Format(int32_t format)

Obtains the C0 format of a specified format.

HasC0Format(int32_t format)

Checks whether the given format contains the C0 format.

GetFormatFromSub(int32_t primaryFormat, int32_t subFormat)

Generates a format based on the specified primary format and subformat.