Function caerFrameEventPacketGetEvent

Function Documentation

static inline caerFrameEvent caerFrameEventPacketGetEvent(caerFrameEventPacket packet, int32_t n)

Get the frame event at the given index from the event packet. To copy a frame event, the usual assignment operator = cannot be used. Please use caerGenericEventCopy() to copy frame events!

Parameters:
  • packet – a valid FrameEventPacket pointer. Cannot be NULL.

  • n – the index of the returned event. Must be within [0,eventCapacity[ bounds.

Returns:

the requested frame event. NULL on error.