22 lines
592 B
C++
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
|