目录

GetFormatFromC0

Function Description

Obtains the actual format based on the input format and C0 format.

The actual format is 4-byte long. The higher 4 bits of the first byte are reserved, and the lower 4 bits are c0 format. The second and third bytes describe the sub-format, and the fourth byte describes the primary format, as shown in the following:

/*

* ---------------------------------------------------

* | 4 bits | 4bits | 2 bytes | 1 byte |

* |------------|-------------|----------------|--------|

* | reserved | c0 -format | sub-format | format |

* ---------------------------------------------------

*/

Function Prototype

inline int32_t GetFormatFromC0(int32_t format, int32_t c0_format)

Parameters

Parameter Input/Output Description
format Input Sub-format and primary format information. Must be within 0xffffffU.
c0_format Input c0_format information. Must be within 0xfU.

Return Value

Actual format corresponding to the specified format and c0_format.

Exception Handling

None

Restrictions

None