OrangePi3588Media/include/hw/hw_factory.h
2026-01-16 18:16:25 +08:00

22 lines
592 B
C++

#pragma once
#include <memory>
#include "hw/i_decoder.h"
#include "hw/i_encoder.h"
#include "hw/i_image_processor.h"
#include "hw/i_infer_backend.h"
#include "utils/simple_json.h"
namespace rk3588 {
class HwFactory {
public:
static std::shared_ptr<IInferBackend> CreateInferBackend(const SimpleJson& config);
static std::shared_ptr<IImageProcessor> CreateImageProcessor(const SimpleJson& config);
static std::shared_ptr<IDecoder> CreateDecoder(const SimpleJson& config);
static std::shared_ptr<IEncoder> CreateEncoder(const SimpleJson& config);
};
} // namespace rk3588