Use these callback function signatures with corresponding callback registering functions to register for various camera notifications.
C++ code example: (Proper error handling and other camera initialization omitted for clarity)
void MyCamera::initialize()
{
}
void MyCamera::handleEofCallback(
const FRAME_INFO* pFrameInfo)
{
uns16* pFrameData = NULL;
displayFrame(pFrameData, pFrameInfo);
}
void PV_DECL MyCamera::pvcamCallbackEofEx3(
const FRAME_INFO* pFrameInfo,
void* pContext)
{
MyCamera* pCamera = static_cast<MyCamera*>(pContext);
pCamera->handleEofCallback(pFrameInfo);
}
◆ PL_CALLBACK_SIG_EX
typedef void(PV_DECL * PL_CALLBACK_SIG_EX) (void *pContext) |
◆ PL_CALLBACK_SIG_EX2
typedef void(PV_DECL * PL_CALLBACK_SIG_EX2) (const FRAME_INFO *pFrameInfo) |
A callback function signature for the pl_cam_register_callback_ex2 function.
- Parameters
-
[in] | pFrameInfo | A pointer to a FRAME_INFO structure uniquely identifying the incoming frame. |
◆ PL_CALLBACK_SIG_EX3
typedef void(PV_DECL * PL_CALLBACK_SIG_EX3) (const FRAME_INFO *pFrameInfo, void *pContext) |
A callback function signature for the pl_cam_register_callback_ex3 function.
- Parameters
-
[in] | pFrameInfo | A pointer to a FRAME_INFO structure uniquely identifying the incoming frame. |
[in] | pContext | A pointer to the user defined context that was previously passed into the pl_cam_register_callback_ex3 function. |
◆ PL_CALLBACK_SIG_LEGACY
typedef void(PV_DECL * PL_CALLBACK_SIG_LEGACY) (void) |