8 #ifndef K_FIRESYNC_BINCSUM_MSG_H
9 #define K_FIRESYNC_BINCSUM_MSG_H
97 #define kBinCSumMsg_AttachT(kBinCSumMsg_msg, kSize_frameIndex, kStampPtr_stamp, BPtr_bin, CPtr_csum) \
98 xkBinCSumMsg_AttachT(kBinCSumMsg_msg, kSize_frameIndex, kStampPtr_stamp, BPtr_bin, CPtr_csum, sizeof(*BPtr_bin), sizeof(*CPtr_csum))
177 #define kBinCSumMsg_BinAtT(kBinCSumMsg_msg, kSize_frameIndex, kSize_rowIndex, T) \
178 kCast(T*, xkBinCSumMsg_BinAtT(kBinCSumMsg_msg, kSize_frameIndex, kSize_rowIndex, sizeof(T)))
220 #define kBinCSumMsg_CSumAtT(kBinCSumMsg_msg, kSize_frameIndex, T) \
221 kCast(T*, xkBinCSumMsg_CSumAtT(kBinCSumMsg_msg, kSize_frameIndex, sizeof(T)))
223 #include <kFireSync/Data/kBinCSumMsg.x.h>
kStatus kBinCSumMsg_Attach(kBinCSumMsg msg, kSize frameIndex, kStamp *stamp, void *bin, void *csum)
Attaches memory pointers for the specified frame.
kSize kBinCSumMsg_FrameCount(kBinCSumMsg msg)
Reports the number of frames in the message.
Declares the kAlgMsg type.
Represents output from a binarize-csum algorithm.
kStamp * kBinCSumMsg_StampAt(kBinCSumMsg msg, kSize frameIndex)
Gets a pointer to the stamp at the specified frame index.
kType kBinCSumMsg_BinType(kBinCSumMsg msg)
Reports the type of the binarize data.
void * kBinCSumMsg_BinAt(kBinCSumMsg msg, kSize frameIndex, kSize rowIndex)
Gets a pointer to the binarize data at the specified frame and row index.
kType kBinCSumMsg_CSumType(kBinCSumMsg msg)
Reports the type of the column sum data.
kSize kBinCSumMsg_CSumLength(kBinCSumMsg msg)
Reports the number of csum results in each frame.
kStatus kBinCSumMsg_Construct(kBinCSumMsg *msg, kSize binWidth, kSize binHeight, kType csumType, kSize csumLength, kSize frameCount, kAlloc allocator)
Constructs a kBinCSumMsg object that allocates its own memory for data content.
kSize kBinCSumMsg_BinWidth(kBinCSumMsg msg)
Reports the number of 8-bit elements in one row of binarize data.
void * kBinCSumMsg_CSumAt(kBinCSumMsg msg, kSize frameIndex)
Gets a pointer to the csum data at the specified frame index.
Represents acquisition metadata associated with a data message.
Definition: kNodeDef.h:2662
kSize kBinCSumMsg_BinHeight(kBinCSumMsg msg)
Reports the height (number of rows) of the binarize data in each frame.
kStatus kBinCSumMsg_ConstructAttach(kBinCSumMsg *msg, kSize binWidth, kSize binHeight, kType csumType, kSize csumLength, kSize frameCount, kAlloc allocator)
Constructs a kBinCSumMsg object that will be attached to external data content.