Classes | |
struct | H264Parser |
struct | H265Parser |
struct | H26xParser |
class | VectorWriter |
Typedefs | |
typedef unsigned int | uint |
typedef unsigned long | ulong |
Enumerations | |
enum | Profile { Profile::H264, Profile::H265 } |
enum | SliceType { SliceType::P, SliceType::B, SliceType::I, SliceType::SP, SliceType::SI, SliceType::Unknown } |
Functions | |
std::uint32_t | checksum (const void *buffer, std::size_t size) |
std::uint32_t | checksum (const void *buffer, std::size_t size, uint32_t prevChecksum) |
template<SerializationType TYPE, typename T , std::enable_if_t< TYPE==SerializationType::JSON_MSGPACK, bool > = true> | |
bool | deserialize (const std::uint8_t *data, std::size_t size, T &obj) |
template<typename T > | |
bool | deserialize (const std::uint8_t *data, std::size_t size, T &obj) |
template<typename T > | |
bool | deserialize (const std::uint8_t *data, std::size_t size, T &obj, SerializationType type) |
template<SerializationType TYPE, typename T > | |
bool | deserialize (const std::vector< std::uint8_t > &data, T &obj) |
template<typename T > | |
bool | deserialize (const std::vector< std::uint8_t > &data, T &obj) |
template<typename T > | |
bool | deserialize (const std::vector< std::uint8_t > &data, T &obj, SerializationType type) |
uint | findEnd (buf &bs, uint pos) |
uint | findStart (buf &bs, uint pos) |
std::string | getEnv (const std::string &var) |
std::string | getEnv (const std::string &var, spdlog::logger &logger) |
SliceType | getSliceType (uint num, Profile p) |
std::vector< SliceType > | getTypesH264 (buf &bs, bool breakOnFirst) |
std::vector< SliceType > | getTypesH264 (const std::vector< std::uint8_t > &bs, bool breakOnFirst=false) |
std::vector< SliceType > | getTypesH265 (buf &bs, bool breakOnFirst) |
std::vector< SliceType > | getTypesH265 (const std::vector< std::uint8_t > &bs, bool breakOnFirst=false) |
std::string | parseDeviceName (EepromData eeprom, EepromData eepromFactory={}) |
Parses device name from given EepromData combination. More... | |
std::string | parseProductName (EepromData eeprom, EepromData eepromFactory={}) |
Parses product name from given EepromData combination. More... | |
std::tuple< uint, ulong > | readGE (buf &bs, ulong pos) |
uint | readUint (buf &bs, ulong start, ulong end) |
bool | scodeEq (buf &bs, uint pos, buf code) |
template<SerializationType TYPE, typename T > | |
std::vector< std::uint8_t > | serialize (const T &obj) |
template<typename T > | |
std::vector< std::uint8_t > | serialize (const T &obj) |
template<typename T > | |
std::vector< std::uint8_t > | serialize (const T &obj, SerializationType type) |
template<SerializationType TYPE, typename T , std::enable_if_t< TYPE==SerializationType::JSON_MSGPACK, bool > = true> | |
bool | serialize (const T &obj, std::vector< std::uint8_t > &data) |
template<typename T > | |
bool | serialize (const T &obj, std::vector< std::uint8_t > &data) |
template<typename T > | |
bool | serialize (const T &obj, std::vector< std::uint8_t > &data, SerializationType type) |
std::vector< std::string > | split (const std::string &s, char delimiter) |
Splits given string by delimiter. More... | |
Variables | |
const typedef std::vector< std::uint8_t > | buf |
static std::unordered_map< std::string, std::string > | map |
static std::mutex | mtx |
static constexpr char | path_convert_err [] = "<Unicode path not convertible>" |
typedef unsigned int dai::utility::uint |
Definition at line 38 of file H26xParsers.cpp.
typedef unsigned long dai::utility::ulong |
Definition at line 39 of file H26xParsers.cpp.
|
strong |
Enumerator | |
---|---|
H264 | |
H265 |
Definition at line 9 of file H26xParsers.hpp.
|
strong |
Enumerator | |
---|---|
P | |
B | |
I | |
SP | |
SI | |
Unknown |
Definition at line 10 of file H26xParsers.hpp.
std::uint32_t dai::utility::checksum | ( | const void * | buffer, |
std::size_t | size | ||
) |
Simple hash function - djb2
buffer | Pointer to buffer of data to hash |
size | Size of buffer in bytes |
Definition at line 17 of file Checksum.cpp.
std::uint32_t dai::utility::checksum | ( | const void * | buffer, |
std::size_t | size, | ||
uint32_t | prevChecksum | ||
) |
Simple hash function - djb2
buffer | Pointer to buffer of data to hash |
size | Size of buffer in bytes |
prevChecksum | Previous checksum - useful for doing hash on blocks of data |
Definition at line 6 of file Checksum.cpp.
|
inline |
Definition at line 44 of file Serialization.hpp.
|
inline |
Definition at line 212 of file Serialization.hpp.
|
inline |
Definition at line 170 of file Serialization.hpp.
|
inline |
Definition at line 198 of file Serialization.hpp.
|
inline |
Definition at line 216 of file Serialization.hpp.
|
inline |
Definition at line 183 of file Serialization.hpp.
Definition at line 106 of file H26xParsers.cpp.
Definition at line 90 of file H26xParsers.cpp.
std::string dai::utility::getEnv | ( | const std::string & | var | ) |
Definition at line 18 of file Environment.cpp.
std::string dai::utility::getEnv | ( | const std::string & | var, |
spdlog::logger & | logger | ||
) |
Definition at line 22 of file Environment.cpp.
Definition at line 42 of file H26xParsers.cpp.
Definition at line 284 of file H26xParsers.cpp.
std::vector<SliceType> dai::utility::getTypesH264 | ( | const std::vector< std::uint8_t > & | bs, |
bool | breakOnFirst = false |
||
) |
Definition at line 287 of file H26xParsers.cpp.
std::vector<SliceType> dai::utility::getTypesH265 | ( | const std::vector< std::uint8_t > & | bs, |
bool | breakOnFirst = false |
||
) |
std::string dai::utility::parseDeviceName | ( | EepromData | eeprom, |
EepromData | eepromFactory = {} |
||
) |
Parses device name from given EepromData combination.
eeprom | EepromData containing fields to parse device name from |
eepromFactory | Additional factory eeprom which takes precedence when parsing |
Definition at line 46 of file EepromDataParser.cpp.
std::string dai::utility::parseProductName | ( | EepromData | eeprom, |
EepromData | eepromFactory = {} |
||
) |
Parses product name from given EepromData combination.
eeprom | EepromData containing fields to parse product name from |
eepromFactory | Additional factory eeprom which takes precedence when parsing |
Definition at line 22 of file EepromDataParser.cpp.
Definition at line 129 of file H26xParsers.cpp.
Definition at line 120 of file H26xParsers.cpp.
Definition at line 80 of file H26xParsers.cpp.
|
inline |
Definition at line 189 of file Serialization.hpp.
|
inline |
Definition at line 208 of file Serialization.hpp.
|
inline |
Definition at line 160 of file Serialization.hpp.
|
inline |
Definition at line 38 of file Serialization.hpp.
|
inline |
Definition at line 204 of file Serialization.hpp.
|
inline |
Definition at line 147 of file Serialization.hpp.
std::vector< std::string > dai::utility::split | ( | const std::string & | s, |
char | delimiter | ||
) |
Splits given string by delimiter.
s | string to split |
delimiter | character by which to split |
Definition at line 6 of file EepromDataParser.cpp.
const typedef std::vector<std::uint8_t> dai::utility::buf |
Definition at line 40 of file H26xParsers.cpp.
|
static |
Definition at line 16 of file Environment.cpp.
|
static |
Definition at line 15 of file Environment.cpp.
|
staticconstexpr |
Definition at line 16 of file spdlog-fmt.hpp.