Function caerFrameEventSetLengthXLengthYChannelNumber

Function Documentation

static inline void caerFrameEventSetLengthXLengthYChannelNumber(caerFrameEvent event, int32_t lengthX, int32_t lengthY, enum caer_frame_event_color_channels channelNumber, caerFrameEventPacketConst packet)

Set the X and Y axes length and the color channels number for a frame, while taking into account the maximum amount of memory available for the pixel array, as allocated in ‘caerFrameEventPacketAllocate()’.

Parameters:
  • event – a valid FrameEvent pointer. Cannot be NULL.

  • lengthX – the frame’s X axis length.

  • lengthY – the frame’s Y axis length.

  • channelNumber – the number of color channels for this frame.

  • packet – the FrameEventPacket pointer for the packet containing this event. Cannot be NULL.