STFLIB_ISP_DEVICE_StructInitializeWithDeviceName
The API is described in the following sections.
Description
Device structure initialization function with device name.
Syntax
The following code block shows the syntax of the API.
STFLIB_ISP_DEVICE_StructInitializeWithDeviceName(
ST_CI_DEVICE *pstDevice,
STF_CHAR *pszDeviceName,
STF_BOOL8 bForceGenDev,
EN_MEM_TYPE enMemType,
STF_U16 u16Width,
STF_U16 u16Height
);
Parameter
The API has the following parameters.
Parameter | Description | Input/Output |
---|---|---|
pstDevice | Device handle | Input |
pszDeviceName | Device name | Input |
bForceGenDev | Indicate whether to open the video device using the “fopen” function | Input |
enMemType | Video buffer type | Input |
u16Width | Image width | Input |
u16Height | Image height | Input |
Return
The API has the following return values.
Return | Description |
---|---|
0 | Success |
Other values | Failure |
Requirement
The file libISPC.a is required for using this API.