fix: port decoder multiplexing optimization to v2/develop

This commit is contained in:
ob-yalian
2026-09-14 12:34:26 +08:00
parent 00111c9406
commit 0ac38844b0
3 changed files with 166 additions and 21 deletions
@@ -14,15 +14,10 @@
* limitations under the License.
*******************************************************************************/
#pragma once
#include "utils.h"
#include <opencv2/opencv.hpp>
#include <memory>
#include "jpeg_decoder.h"
#include <NvJpegDecoder.h>
#include <NvUtils.h>
#include <NvV4l2Element.h>
#include <NvJpegDecoder.h>
#include <NvV4l2Element.h>
namespace orbbec_camera {
class JetsonNvJPEGDecoder : public JPEGDecoder {
@@ -33,6 +28,7 @@ class JetsonNvJPEGDecoder : public JPEGDecoder {
bool decode(const std::shared_ptr<ob::ColorFrame>& frame, uint8_t* dest) override;
private:
NvJPEGDecoder* decoder_;
class Impl;
std::unique_ptr<Impl> decoder_;
};
} // namespace orbbec_camera
} // namespace orbbec_camera