Take ".../Example/How_to/OpenNCC/C&C++/Capture_video" in "R21.09.01" as an example to answer this question.
In the sdk.h file, the parameters defined by the structure Camerainfo are one of the parameters for the SDK initialization function sdk_init (...). The three variables in the structure that controls whether the video stream is initialized are as follows:
typedef struct{
...
int isOutputYUV;
int isOutputH26X;
int isOutputJPEG;
...
} CameraInfo;
A value of 1 indicates initialization, and a value of 0 indicates no initialization, that is, the function is not turned on.
Is used to realize the output mode of different video streams.
Mode is assigned to 0 to stop the mode; A value of 1 indicates the single frame output mode, that is, stop the output after outputting 1 frame of data; A value of 2 indicates continuous output.
Take ".../Example/How_to/OpenNCC/C&C++/Capture_video" in "R21.09.01" as an example to answer this question.
In the sdk.h file, the parameters defined by the structure Camerainfo are one of the parameters for the SDK initialization function sdk_init (...). The three variables in the structure that controls whether the video stream is initialized are as follows:
typedef struct{
...
int isOutputYUV;
int isOutputH26X;
int isOutputJPEG;
...
} CameraInfo;
A value of 1 indicates initialization, and a value of 0 indicates no initialization, that is, the function is not turned on.
In cameraCtrl.h file, the function
camera_video_out(int video_type, camera_ctrl_video_out mode);
Is used to realize the output mode of different video streams.
Mode is assigned to 0 to stop the mode; A value of 1 indicates the single frame output mode, that is, stop the output after outputting 1 frame of data; A value of 2 indicates continuous output.