| 12345678910111213141516171819202122232425262728293031 |
- #ifndef DEPTHGUIDE_PC_DECODER_H
- #define DEPTHGUIDE_PC_DECODER_H
- #include "core/pc_utility.h"
- #include "network/binary_utility.hpp"
- #include <memory>
- class pc_decoder {
- public:
- struct create_config {
- smart_cuda_stream *stream = nullptr;
- };
- explicit pc_decoder(const create_config &conf);
- ~pc_decoder();
- using cb_func_type = std::function<void(pc_ptr)>;
- cb_func_type cb_func;
- void decode(const data_type &data, const cb_func_type &cb);
- private:
- struct impl;
- std::unique_ptr<impl> pimpl;
- };
- #endif //DEPTHGUIDE_PC_DECODER_H
|