|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
18 #ifndef DS3D_DATARENDER_GL_DATA_RENDER_IMPL_H
19 #define DS3D_DATARENDER_GL_DATA_RENDER_IMPL_H
23 #include "ds3d/common/helper/safe_queue.h"
24 #include "ds3d/common/hpp/datarender.hpp"
25 #include "ds3d/common/impl/impl_datarender.h"
26 #include "glprocess/gl_render_ctx.h"
27 #include "glprocess/window.h"
31 namespace ds3d {
namespace impl {
namespace render {
33 class Gl3DImplDataRender :
public BaseImplDataRender {
54 std::function<void()>
failed;
60 while (_renderQueue.size()) {
63 item = _renderQueue.pop();
78 virtual Config& config() = 0;
80 std::unique_ptr<gl::iGLRender> _renderCtx;
82 std::unique_ptr<std::thread> _renderThread;
83 SafeQueue<QueItem> _renderQueue;
84 uint32_t _maxQueueSize = 4;
85 bool _stopped =
false;
88 class Gl3DDepthColorImplDataRender :
public Gl3DImplDataRender {
94 ErrCode startImpl(
const std::string& content,
const std::string& path)
override;
100 class Gl3DPointCloudImplDataRender :
public Gl3DImplDataRender {
106 ErrCode startImpl(
const std::string& content,
const std::string& path)
override;
112 class Gl3DLidarImplDataRender :
public Gl3DImplDataRender {
118 ErrCode startImpl(
const std::string& content,
const std::string& path)
override;
127 #endif // DS3D_DATARENDER_GL_DATA_RENDER_IMPL_H
GuardDataT< gl::Window > GuardGlWindow
ErrCode startImpl(const std::string &content, const std::string &path) override
std::function< void(ErrCode, GuardDataMap)> OnGuardDataCBImpl
const char * what() const noexcept override
#define LOG_WARNING(fmt,...)
~Gl3DDepthColorImplDataRender()
Gl3DPointCloudImplDataRender()=default
std::function< void()> failed
ErrCode renderImpl(GuardDataMap datamap, OnGuardDataCBImpl dataDoneCb) override
Gl3DLidarImplDataRender()=default
~Gl3DLidarImplDataRender()
~Gl3DPointCloudImplDataRender()
ErrCode stopImpl() override
ErrCode prerollImpl(GuardDataMap datamap) override
std::function< ErrCode()> process
ErrCode startRenderTask(const Config &config, std::unique_ptr< gl::iGLRender > &&render)
Gl3DImplDataRender()=default
ErrCode startImpl(const std::string &content, const std::string &path) override
~Gl3DImplDataRender() override
ErrCode flushImpl() override
ErrCode startImpl(const std::string &content, const std::string &path) override
Config & config() override
Config & config() override
Config & config() override
Gl3DDepthColorImplDataRender()=default