12#ifndef ROC_RTP_FORMAT_MAP_H_
13#define ROC_RTP_FORMAT_MAP_H_
57 enum { PreallocatedNodes = 16 };
67 unsigned int key()
const {
75 static bool key_equal(
unsigned int pt1,
unsigned int pt2) {
80 void add_builtin_(
const Format& fmt);
84 core::SlabPool<Node, PreallocatedNodes> node_pool_;
85 core::Hashmap<Node, PreallocatedNodes> node_map_;
#define ROC_ATTR_NODISCARD
Emit warning if function result is not checked.
Sample specification. Describes sample rate and channels.
Base class for hashmap element.
Base class for non-copyable objects.
PoolAllocation(IPool &pool)
Initialize.
IPool & pool() const
Get pool.
Base class for object with reference counter.
hashsum_t hashsum_int(int16_t)
Compute hash of 16-bit integer.
size_t hashsum_t
Hash type.
Base class for object with reference counter.