33#define MXL_GRAIN_FLAG_INVALID 0x00000001
39#define MXL_GRAIN_VALID_SLICES_ANY ((uint16_t)0)
45#define MXL_GRAIN_VALID_SLICES_ALL ((uint16_t)UINT16_MAX)
MXL_EXPORT mxlStatus mxlFlowReaderGetEvent(mxlFlowReader reader, uint64_t timeoutNs, mxlEventInfo *event, uint8_t **payload)
MXL_EXPORT mxlStatus mxlFlowWriterOpenGrain(mxlFlowWriter writer, uint64_t index, mxlGrainInfo *mxlGrainInfo, uint8_t **payload)
struct mxlMutableBufferSlice_t mxlMutableBufferSlice
MXL_EXPORT mxlStatus mxlFlowReaderGetGrain(mxlFlowReader reader, uint64_t index, uint64_t timeoutNs, mxlGrainInfo *grain, uint8_t **payload)
MXL_EXPORT mxlStatus mxlReleaseFlowReader(mxlInstance instance, mxlFlowReader reader)
struct mxlFlowReader_t * mxlFlowReader
struct mxlGrainInfo_t mxlGrainInfo
MXL_EXPORT mxlStatus mxlFlowWriterGetGrainInfo(mxlFlowWriter writer, uint64_t index, mxlGrainInfo *mxlGrainInfo)
MXL_EXPORT mxlStatus mxlFlowSynchronizationGroupRemoveReader(mxlFlowSynchronizationGroup group, mxlFlowReader reader)
MXL_EXPORT mxlStatus mxlFlowSynchronizationGroupWaitForDataAt(mxlFlowSynchronizationGroup group, uint64_t timestamp, uint64_t timeoutNs)
MXL_EXPORT mxlStatus mxlFlowReaderGetMaxReadLengthSamples(mxlFlowReader reader, size_t *maxReadLength)
MXL_EXPORT mxlStatus mxlCreateFlowSynchronizationGroup(mxlInstance instance, mxlFlowSynchronizationGroup *group)
struct mxlBufferSlice_t mxlBufferSlice
struct mxlEventInfo_t mxlEventInfo
Metadata for one event queue entry, either a complete event or a fragment.
MXL_EXPORT mxlStatus mxlFlowReaderGetGrainNonBlocking(mxlFlowReader reader, uint64_t index, mxlGrainInfo *grain, uint8_t **payload)
MXL_EXPORT mxlStatus mxlFlowReaderGetSamplesNonBlocking(mxlFlowReader reader, uint64_t index, size_t count, mxlWrappedMultiBufferSlice *payloadBuffersSlices)
MXL_EXPORT mxlStatus mxlFlowWriterCommitSamples(mxlFlowWriter writer)
MXL_EXPORT mxlStatus mxlFlowWriterCommitEvent(mxlFlowWriter writer, mxlEventInfo const *event)
MXL_EXPORT mxlStatus mxlFlowReaderGetGrainSliceNonBlocking(mxlFlowReader reader, uint64_t index, uint16_t minValidSlices, mxlGrainInfo *grain, uint8_t **payload)
MXL_EXPORT mxlStatus mxlReleaseFlowSynchronizationGroup(mxlInstance instance, mxlFlowSynchronizationGroup group)
MXL_EXPORT mxlStatus mxlFlowReaderGetGrainSlice(mxlFlowReader reader, uint64_t index, uint16_t minValidSlices, uint64_t timeoutNs, mxlGrainInfo *grain, uint8_t **payload)
struct mxlWrappedBufferSlice_t mxlWrappedBufferSlice
MXL_EXPORT mxlStatus mxlFlowSynchronizationGroupAddReader(mxlFlowSynchronizationGroup group, mxlFlowReader reader)
MXL_EXPORT mxlStatus mxlFlowSynchronizationGroupAddPartialGrainReader(mxlFlowSynchronizationGroup group, mxlFlowReader reader, uint16_t minValidSlices)
struct mxlWrappedMultiBufferSlice_t mxlWrappedMultiBufferSlice
MXL_EXPORT mxlStatus mxlFlowWriterCancelSamples(mxlFlowWriter writer)
MXL_EXPORT mxlStatus mxlFlowReaderGetSamples(mxlFlowReader reader, uint64_t index, size_t count, uint64_t timeoutNs, mxlWrappedMultiBufferSlice *payloadBuffersSlices)
struct mxlFlowWriter_t * mxlFlowWriter
struct mxlMutableWrappedMultiBufferSlice_t mxlMutableWrappedMultiBufferSlice
struct mxlFlowSynchronizationGroup_t * mxlFlowSynchronizationGroup
MXL_EXPORT mxlStatus mxlFlowWriterGetMaxWriteLengthSamples(mxlFlowWriter writer, size_t *maxWriteLength)
MXL_EXPORT mxlStatus mxlReleaseFlowWriter(mxlInstance instance, mxlFlowWriter writer)
MXL_EXPORT mxlStatus mxlFlowReaderGetRuntimeInfo(mxlFlowReader reader, mxlFlowRuntimeInfo *info)
MXL_EXPORT mxlStatus mxlFlowReaderGetConfigInfo(mxlFlowReader reader, mxlFlowConfigInfo *info)
MXL_EXPORT mxlStatus mxlFlowReaderGetInfo(mxlFlowReader reader, mxlFlowInfo *info)
MXL_EXPORT mxlStatus mxlFlowWriterCancelEvent(mxlFlowWriter writer)
Cancel the open event without publishing or changing timestamp ordering.
MXL_EXPORT mxlStatus mxlFlowWriterCancelGrain(mxlFlowWriter writer)
MXL_EXPORT mxlStatus mxlCreateFlowWriter(mxlInstance instance, char const *flowDef, char const *options, mxlFlowWriter *writer, mxlFlowConfigInfo *configInfo, bool *created)
MXL_EXPORT mxlStatus mxlFlowReaderGetEventNonBlocking(mxlFlowReader reader, mxlEventInfo *event, uint8_t **payload)
Attempt to read one event entry without waiting for publication.
MXL_EXPORT mxlStatus mxlCreateFlowReader(mxlInstance instance, char const *flowId, char const *options, mxlFlowReader *reader)
struct mxlMutableWrappedBufferSlice_t mxlMutableWrappedBufferSlice
MXL_EXPORT mxlStatus mxlFlowWriterOpenSamples(mxlFlowWriter writer, uint64_t index, size_t count, mxlMutableWrappedMultiBufferSlice *payloadBuffersSlices)
MXL_EXPORT mxlStatus mxlFlowWriterCommitGrain(mxlFlowWriter writer, mxlGrainInfo const *grain)
MXL_EXPORT mxlStatus mxlFlowWriterOpenEvent(mxlFlowWriter writer, mxlEventInfo *event, uint8_t **payload)
MXL_EXPORT mxlStatus mxlIsFlowActive(mxlInstance instance, char const *flowId, bool *isActive)
MXL_EXPORT mxlStatus mxlGetFlowDef(mxlInstance instance, char const *flowId, char *buffer, size_t *bufferSize)
Public configuration and runtime metadata for MXL flows.
struct mxlFlowRuntimeInfo_t mxlFlowRuntimeInfo
struct mxlFlowConfigInfo_t mxlFlowConfigInfo
struct mxlFlowInfo_t mxlFlowInfo
mxlStatus
MXL SDK Status codes.
struct mxlInstance_t * mxlInstance
Metadata for one event queue entry, either a complete event or a fragment.
uint32_t version
Structure version, currently 1.
char dataItemType[256]
Data item type (DIT) interpreted according to registryType. SMPTE DIT strings omit the 0x prefix....
uint32_t size
Size of this structure.
uint32_t eventSize
Number of payload bytes published in this entry, possibly zero. For fragments this is the fragment si...
uint64_t index
Zero-based queue position, assigned by the library on a successful read. Compare with mxlFlowRuntimeI...
uint8_t reserved[215]
Reserved bytes; leave zero.
uint8_t complete
1 for an unfragmented event or final fragment; 0 if more fragments follow.
uint32_t flags
Reserved; must be zero.
uint64_t timestamp
Application supplied TAI timestamp in nanoseconds since the epoch; must not decrease within a flow.
uint32_t offset
Logical byte offset within a fragmented event. Zero for unfragmented events and first fragments....
uint32_t registryType
Registry that determines the interpretation of dataItemType; a mxlEventRegistryType value.
uint64_t index
Epoch Grain index used by that ring buffer entry.
uint32_t flags
Grain flags.
uint32_t grainSize
Size in bytes of the complete payload of a grain.
uint32_t size
Size of the structure.
uint32_t version
Version of the structure. The only currently supported value is 2.
uint8_t reserved[4068]
Padding. Do not use.
mxlMutableBufferSlice fragments[2]
mxlMutableWrappedBufferSlice base
mxlBufferSlice fragments[2]
mxlWrappedBufferSlice base
uint8_t * buffer
Set a mark at the beginning and the end of the grain payload.
mxlFlowConfigInfo configInfo