#ifndef SORA_HWENC_JETSON_JETSON_JPEG_DECODER_POOL_H_ #define SORA_HWENC_JETSON_JETSON_JPEG_DECODER_POOL_H_ #include #include #include #include "jetson_jpeg_decoder.h" class NvJPEGDecoder; namespace sora { class JetsonJpegDecoder; class JetsonJpegDecoderPool : public std::enable_shared_from_this { public: std::shared_ptr Pop(); void Push(std::shared_ptr decoder); private: std::mutex mtx_; std::queue> decoder_queue_; }; } // namespace sora #endif