Table of Contents
video_capture_stop
Stop video capture on a session.
Description
The video_capture_stop function stops video capture on a session. This function should be called from the same thread as video_capture_read. Once video capture has been stopped, images will no longer be captured from the device. Do not call video_capture_read once streaming has been stopped. Streaming can be restarted using video_capture_start.
Prototype
t_error video_capture_stop(t_video_capture capture);
Parameters
t_video_capture capture
A handle to the video capture session, as returned by video_capture_open.
Return value
The return value is 0 if the video capture session is stopped successfully. Otherwise a negative
error code is returned. Error codes are
defined in quanser_errors.h
. A suitable error message
may be retrieved using msg_get_error_message.
Error codes
QERR_INVALID_ARGUMENT
An invalid capture session was passed as an argument. Once a capture session has been closed using video_capture_stop the session handle is invalid.
Requirements
Include Files |
Libraries |
---|---|
quanser_video.h |
quanser_media.lib;quanser_communications.lib;quanser_runtime.lib;quanser_common.lib |
Examples
result = video_capture_start(capture); if (result >= 0) { result = video_capture_read(capture, image); if (result > 0) { ... process image ... } video_capture_stop(capture); }
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.