GetFormatFromC0

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 |

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

*/

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.

Returns

Specified format and the actual format corresponding to c0_format.

Exception Handling

None

Restrictions

None