Updated on 2022-03-13 GMT+08:00

SetInputFormat

Syntax

AIStatus SetInputFormat(AippInputFormat inputFormat);

Function Description

Sets the original input type of a model.

Parameter Description

Parameter

Input/Output

Type

Description

inputFormat

Input

AippInputFormat

Original input type of a model.

enum AippInputFormat

{

YUV420SP_U8 = 1,

XRGB8888_U8,

RGB888_U8,

YUV400_U8,

RESERVED

};

Return Value

Parameter

Type

Description

-

AIStatus

If the parameter is set successfully, 0 is returned. If the input is invalid, other values are returned.

The AIStatus type is defined as follows:

AIStatus = uint32_t

Exception Handling

None

Restriction

None