Skip to main content

odin_encoder_pop

enum OdinError odin_encoder_pop(struct OdinEncoder *encoder,
const uint16_t *media_ids,
uint32_t media_ids_length,
uint8_t *out_datagram,
uint32_t *out_datagram_length);

Overview

Retrieves an encoded datagram from the encoder's buffer. It can optionally consider multiple media IDs for processing. The encoded data is written to the provided output buffer.

Parameters

NameTypeDescription
encoderstruct OdinEncoder *The encoder handle.
media_idsconst uint16_t *Array of media IDs to include in the packet.
media_ids_lengthuint32_tNumber of media IDs.
out_datagramuint8_t *Buffer to receive the encoded data.
out_datagram_lengthuint32_t *Input: buffer size, Output: actual data length.

Return Value

TypeDescription
OdinErrorODIN_ERROR_SUCCESS on success.