MultiCam Boards Documentation > MultiCam Documentation > MultiCam User Guide > MultiCam Basics > Signaling > Callback Signaling > Callback Signaling Mechanism

Callback Signaling Mechanism

The callback mechanism implies an event driven behavior. The following description uses the Surface Processing signal as an example of callback generating event.

The Surface Processing signal occurs when a transfer phase terminates. It is issued by a channel to indicate that the destination memory surface has been filled with an image coming from the source camera, and that this surface is available for image processing (see SurfaceState).

The image processing task is performed on this event by a special function called the callback function.

Callback mechanism

The callback function is called by the MultiCam driver, not by the user application. This ensures that the image-processing task is realized at the ideal instant, exactly when the surface becomes ready for processing.

MultiCam benefits from several built-in features to ease the implementation of the callback function.

The MultiCam function to register a callback function to a channel or a processor is McRegisterCallback.