![]() |
IDS peak comfortC
v1.6.0
|
Modules | |
| Manual buffer preparation | |
Data Structures | |
| struct | peak_acquisition_info |
| peak Acquisition info More... | |
Functions | |
| peak_status | peak_Acquisition_Start (peak_camera_handle hCam, uint32_t numberOfFrames) |
| Start an acquisition. More... | |
| peak_status | peak_Acquisition_Stop (peak_camera_handle hCam) |
| Stops an acquisition. More... | |
| peak_bool | peak_Acquisition_IsStarted (peak_camera_handle hCam) |
| Check whether the acquisition is currently started or not. More... | |
| peak_status | peak_Acquisition_WaitForFrame (peak_camera_handle hCam, uint32_t timeout_ms, peak_frame_handle *hFrame) |
| Wait for an acquired frame. More... | |
| peak_status | peak_Acquisition_GetInfo (peak_camera_handle hCam, peak_acquisition_info *acquisitionInfo) |
| Query the acquisition info. More... | |
Acquisition and buffer preparation related functions and types.
For a description of the libraries buffer preparation concept see Buffer Preparation.
| peak_status peak_Acquisition_GetInfo | ( | peak_camera_handle | hCam, |
| peak_acquisition_info * | acquisitionInfo | ||
| ) |
Query the acquisition info.
Provides the status of the current acquisition session or, if there is no active acquisition at the time of the call, of the last acquisition session, if any.
| [in] | hCam | The camera handle. |
| [out] | acquisitionInfo | The acquisition info. |
acquisitionInfo is an invalid pointer. hCam is an invalid camera handle. | peak_bool peak_Acquisition_IsStarted | ( | peak_camera_handle | hCam | ) |
Check whether the acquisition is currently started or not.
Checks whether the acquisition is currently started or not.
This function implements the Valid Values Organization Query principle.
Parallel calls to peak_Acquisition_IsStarted return true until the blocking peak_Acquisition_Stop returns!
| [in] | hCam | The camera handle. |
| peak_status peak_Acquisition_Start | ( | peak_camera_handle | hCam, |
| uint32_t | numberOfFrames | ||
| ) |
Start an acquisition.
Starts an acquisition session for the specified number of frames.
The acquisition can be stopped at any time via peak_Acquisition_Stop.
If numberOfFrames is not PEAK_INFINITE the acquisition is automatically stopped when the specified number of frames has been acquired.
| [in] | hCam | The camera handle. |
| [in] | numberOfFrames | The number of frames to acquire. PEAK_INFINITE for infinite. |
numberOfFrames is 0. hCam is an invalid camera handle. | peak_status peak_Acquisition_Stop | ( | peak_camera_handle | hCam | ) |
Stops an acquisition.
Stops an acquisition before the number of frames that was specified for peak_Acquisition_Start has been acquired.
The acquisition is stopped immediately. If there is a frame in transmission at the time peak_Acquisition_Stop is called, this frame is discarded.
All pending calls to peak_Acquisition_WaitForFrame will immediately return with PEAK_STATUS_ABORTED.
This function will always block until the acquisition has actually been stopped.
| [in] | hCam | The camera handle. |
hCam is an invalid camera handle. | peak_status peak_Acquisition_WaitForFrame | ( | peak_camera_handle | hCam, |
| uint32_t | timeout_ms, | ||
| peak_frame_handle * | hFrame | ||
| ) |
Wait for an acquired frame.
Delivers the oldest acquired frame.
The implementation queues the acquired frames in chronological order for delivery to the client application. peak_Acquisition_WaitForFrame delivers the oldest queued frame.
A frame that was received from peak_Acquisition_WaitForFrame is considered as 'delivered'.
The buffer that is bound to a delivered frame is locked for the reception of incoming image data until peak_Frame_Release has been called for the frame.
peak_Acquisition_Start will be rejected as long as there are unreleased frame handles for frames that were received from peak_Acquisition_WaitForFrame.
If there is no frame in the delivery queue by the time of the call the function blocks until a frame was acquired or the specified timeout has elapsed.
A pending call returns with PEAK_STATUS_ABORTED when the acquisition is stopped (automatically or by a call to peak_Acquisition_Stop).
| [in] | hCam | The camera handle. |
| [in] | timeout_ms | The wait timeout in milliseconds. PEAK_INFINITE for infinite. |
| [out] | hFrame | Handle to the acquired frame. |
timeout_ms is 0 or hFrame is an invalid pointer. hCam is an invalid camera handle.