Go to the documentation of this file.
11 #define SBR_MAX_NUM_SECTIONS (17)
12 #define SBR_SECTION_NAME_MAX_SIZE (16)
13 #define SBR_IDENTIFIER_SIZE (2)
15 #define SBR_SECTION_FLAG_BOOTABLE (1 << 0)
16 #define SBR_SECTION_FLAG_IGNORE_CHECKSUM (1 << 1)
17 #define SBR_SECTION_FLAG_COMPRESSION_MASK (0x7 << 2)
55 #define SBR_RAW_SIZE (sizeof(SBR_SECTION_RAW) * SBR_MAX_NUM_SECTIONS + SBR_IDENTIFIER_SIZE)
#define SBR_MAX_NUM_SECTIONS
uint32_t sbr_compute_checksum(const void *buffer, uint32_t size)
bool sbr_section_get_bootable(const SBR_SECTION *sbr_section)
void sbr_section_set_size(SBR_SECTION *sbr_section, uint32_t size)
void sbr_section_set_compression(SBR_SECTION *sbr_section, SBR_COMPRESSION compression)
int sbr_serialize(const SBR *sbr, void *buffer, uint32_t max_size)
static const uint8_t SBR_IDENTIFIER[SBR_IDENTIFIER_SIZE]
uint32_t sbr_compute_checksum_prev(const void *buffer, uint32_t size, uint32_t prev_checksum)
std::uint32_t checksum(const void *buffer, std::size_t size, uint32_t prevChecksum)
std::vector< std::uint8_t > buffer
constexpr auto size(const C &c) -> decltype(c.size())
void sbr_section_set_type(SBR_SECTION *sbr_section, uint8_t type)
#define SBR_SECTION_NAME_MAX_SIZE
#define SBR_IDENTIFIER_SIZE
int sbr_parse(const void *buffer, uint32_t size, SBR *sbr)
SBR_COMPRESSION sbr_section_get_compression(const SBR_SECTION *sbr_section)
void sbr_section_set_bootable(SBR_SECTION *sbr_section, bool bootable)
uint32_t sbr_initial_checksum()
bool sbr_section_is_valid(const SBR_SECTION *sbr_section)
void sbr_section_set_offset(SBR_SECTION *sbr_section, uint32_t offset)
void sbr_section_set_ignore_checksum(SBR_SECTION *sbr_section, bool ignore_checksum)
void sbr_section_set_name(SBR_SECTION *sbr_section, const char *name)
void sbr_section_set_checksum(SBR_SECTION *sbr_section, uint32_t checksum)
bool sbr_section_get_ignore_checksum(const SBR_SECTION *sbr_section)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19