STFLIB_ISP_DEVICE_StructInitializeWithDeviceName_2

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_2(
    ST_CI_DEVICE *pstDevice,
    STF_CHAR *pszDeviceName,
    STF_BOOL8 bForceGenDev,
    EN_MEM_TYPE enMemType,
    STF_U16 u16Width,
    STF_U16 u16Height
    ST_RECT_2 stCropRect,
    STF_U8 u8Fps
    );

Parameter

The API has the following parameters.
Table 1. STFLIB_ISP_DEVICE_StructInitializeWithDeviceName_2 Parameter Description
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
stCropRect Cropping window information Input
u8Fps Frame rate per second Input

Return

The API has the following return values.
Table 2. STFLIB_ISP_DEVICE_StructInitializeWithDeviceName_2 Return Description
Return Description
0 Success
Other values Failure

Requirement

The file libISPC.a is required for using this API.