1 #ifndef OPENPOSE_CORE_GPU_RENDERER_HPP
2 #define OPENPOSE_CORE_GPU_RENDERER_HPP
15 const float renderThreshold,
const float alphaKeypoint,
const float alphaHeatMap,
16 const bool blendOriginalFrame =
true,
const unsigned int elementToRender = 0u,
17 const unsigned int numberElementsToRender = 0u);
21 std::tuple<std::shared_ptr<float*>, std::shared_ptr<bool>, std::shared_ptr<std::atomic<unsigned int>>,
22 std::shared_ptr<unsigned long long>, std::shared_ptr<const unsigned int>>
26 const std::tuple<std::shared_ptr<float*>, std::shared_ptr<bool>, std::shared_ptr<std::atomic<unsigned int>>,
27 std::shared_ptr<unsigned long long>, std::shared_ptr<const unsigned int>>& tuple,
31 const std::tuple<std::shared_ptr<float*>, std::shared_ptr<bool>,
32 std::shared_ptr<unsigned long long>>& tuple);
42 std::shared_ptr<unsigned long long> spVolume;
43 bool mIsFirstRenderer;
45 std::shared_ptr<bool> spGpuMemoryAllocated;
std::shared_ptr< float * > spGpuMemory
void gpuToCpuMemoryIfLastRenderer(float *cpuMemory, const unsigned long long memoryVolume)
std::tuple< std::shared_ptr< float * >, std::shared_ptr< bool >, std::shared_ptr< std::atomic< unsigned int > >, std::shared_ptr< unsigned long long >, std::shared_ptr< const unsigned int > > getSharedParameters()
GpuRenderer(const float renderThreshold, const float alphaKeypoint, const float alphaHeatMap, const bool blendOriginalFrame=true, const unsigned int elementToRender=0u, const unsigned int numberElementsToRender=0u)
void cpuToGpuMemoryIfNotCopiedYet(const float *const cpuMemory, const unsigned long long memoryVolume)
void setSharedParameters(const std::tuple< std::shared_ptr< float * >, std::shared_ptr< bool >, std::shared_ptr< unsigned long long >> &tuple)
void setSharedParametersAndIfLast(const std::tuple< std::shared_ptr< float * >, std::shared_ptr< bool >, std::shared_ptr< std::atomic< unsigned int >>, std::shared_ptr< unsigned long long >, std::shared_ptr< const unsigned int >> &tuple, const bool isLast)
#define DELETE_COPY(className)