39#include <robin_hood.h>
75 template<
typename Map>
76 typename Map::mapped_type::element_type* getOrCreate(Map& map,
size_t gofId) {
77 std::lock_guard<std::mutex> lock(mapMutex);
78 auto& ptr = map[
gofId];
80 ptr = std::make_unique<typename Map::mapped_type::element_type>();
Definition commonMemory.hpp:45
robin_hood::unordered_map< size_t, std::unique_ptr< std::array< std::vector< uint8_t >, MAX_GOF_SIZE > > > mapFrameGeometryMapsL2
Definition commonMemory.hpp:56
std::array< std::vector< Patch >, MAX_GOF_SIZE > * getOrCreateFramePatches(size_t gofId)
Definition commonMemory.hpp:61
std::array< std::vector< uint8_t >, MAX_GOF_SIZE > * getOrCreateFrameGeometryMapsL2(size_t gofId)
Definition commonMemory.hpp:66
robin_hood::unordered_map< size_t, std::unique_ptr< std::array< std::vector< uint8_t >, MAX_GOF_SIZE > > > mapFrameGeometryMapsL1
Definition commonMemory.hpp:55
robin_hood::unordered_map< size_t, std::unique_ptr< std::array< std::vector< uint8_t >, MAX_GOF_SIZE > > > mapFrameOccupancyMapsDS
Definition commonMemory.hpp:54
std::array< std::vector< uint8_t >, MAX_GOF_SIZE > * getOrCreateFrameAttributeMapsL2(size_t gofId)
Definition commonMemory.hpp:68
robin_hood::unordered_map< size_t, std::unique_ptr< std::array< std::vector< uint8_t >, MAX_GOF_SIZE > > > mapFrameOccupancyMapsColor
Definition commonMemory.hpp:53
std::array< std::vector< uint8_t >, MAX_GOF_SIZE > * getOrCreateFrameOccupancyMapsDS(size_t gofId)
Definition commonMemory.hpp:64
std::array< std::vector< uint8_t >, MAX_GOF_SIZE > * getOrCreateFrameGeometryMapsL1(size_t gofId)
Definition commonMemory.hpp:65
robin_hood::unordered_map< size_t, std::unique_ptr< std::array< std::vector< uint8_t >, MAX_GOF_SIZE > > > mapFrameAttributeMapsL2
Definition commonMemory.hpp:58
void clearGofMaps(const size_t &gofId)
Definition commonMemory.cpp:47
std::array< std::vector< uint8_t >, MAX_GOF_SIZE > * getOrCreateFrameOccupancyMaps(size_t gofId)
Definition commonMemory.hpp:62
robin_hood::unordered_map< size_t, std::unique_ptr< std::array< std::vector< uint8_t >, MAX_GOF_SIZE > > > mapFrameAttributeMapsL1
Definition commonMemory.hpp:57
robin_hood::unordered_map< size_t, std::unique_ptr< std::array< std::vector< uint8_t >, MAX_GOF_SIZE > > > mapFrameOccupancyMaps
Definition commonMemory.hpp:52
robin_hood::unordered_map< size_t, std::unique_ptr< std::array< std::vector< Patch >, MAX_GOF_SIZE > > > mapFramePatches
Definition commonMemory.hpp:50
std::array< std::vector< uint8_t >, MAX_GOF_SIZE > * getOrCreateFrameOccupancyMapsColor(size_t gofId)
Definition commonMemory.hpp:63
static CommonMemory & get()
Definition commonMemory.cpp:42
std::array< std::vector< uint8_t >, MAX_GOF_SIZE > * getOrCreateFrameAttributeMapsL1(size_t gofId)
Definition commonMemory.hpp:67
Definition uvgvpccenc.hpp:49
constexpr size_t MAX_GOF_SIZE
Definition constants.hpp:63
size_t gofId
Definition uvgvpccenc.cpp:94