GetPrimaryFormat

Description

Parses primary format information from the actual format.

Prototype

inline int32_t GetPrimaryFormat(int32_t format)

Parameters

Parameter

Input/Output

Description

format

Input

Actual format: It is 4-byte long, in which the higher four bits of the first byte are reserved, the lower four bits are C0-format, the second and third bytes describe the sub-format, and the fourth byte describes the primary format.

Returns

The primary format in the actual format.

Exception Handling

None

Constraints

None