Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
ImageDecoderCV.h
1#pragma once
2
3#include "Module.h"
4#include "declarative/PropertyMacros.h"
5
7{
8public:
10
11 // ============================================================
12 // Property Binding for Declarative Pipeline
13 // ImageDecoderCV has no configurable properties
14 // ============================================================
15 template<typename PropsT>
16 static void applyProperties(
17 PropsT& props,
18 const std::map<std::string, apra::ScalarPropertyValue>& values,
19 std::vector<std::string>& missingRequired
20 ) {
21 // No properties to apply
22 }
23
24 apra::ScalarPropertyValue getProperty(const std::string& propName) const {
25 throw std::runtime_error("Unknown property: " + propName);
26 }
27
28 bool setProperty(const std::string& propName, const apra::ScalarPropertyValue& value) {
29 return false;
30 }
31
32 std::vector<std::string> dynamicPropertyNames() const {
33 return {};
34 }
35};
36
37class ImageDecoderCV : public Module
38{
39
40public:
42 virtual ~ImageDecoderCV();
43 bool init();
44 bool term();
45
46protected:
47 bool process(frame_container& frames);
48 bool processSOS(frame_sp& frame);
49 bool validateInputPins();
50 bool validateOutputPins();
51
52private:
53 class Detail;
54 boost::shared_ptr<Detail> mDetail;
55};
Definition ImageDecoderCV.h:7
bool setProperty(const std::string &propName, const apra::ScalarPropertyValue &value)
Definition ImageDecoderCV.h:28
std::vector< std::string > dynamicPropertyNames() const
Definition ImageDecoderCV.h:32
ImageDecoderCVProps()
Definition ImageDecoderCV.h:9
apra::ScalarPropertyValue getProperty(const std::string &propName) const
Definition ImageDecoderCV.h:24
static void applyProperties(PropsT &props, const std::map< std::string, apra::ScalarPropertyValue > &values, std::vector< std::string > &missingRequired)
Definition ImageDecoderCV.h:16
Definition ImageDecoderCV.cpp:11
Definition ImageDecoderCV.h:38
ImageDecoderCV(ImageDecoderCVProps _props=ImageDecoderCVProps())
Definition ImageDecoderCV.cpp:34
bool init()
Definition ImageDecoderCV.cpp:79
bool processSOS(frame_sp &frame)
Definition ImageDecoderCV.cpp:113
bool validateOutputPins()
Definition ImageDecoderCV.cpp:60
bool term()
Definition ImageDecoderCV.cpp:89
boost::shared_ptr< Detail > mDetail
Definition ImageDecoderCV.h:54
virtual ~ImageDecoderCV()
Definition ImageDecoderCV.cpp:39
bool validateInputPins()
Definition ImageDecoderCV.cpp:41
bool process(frame_container &frames)
Definition ImageDecoderCV.cpp:94
Definition Module.h:33
Definition Module.h:151
std::variant< int64_t, double, bool, std::string > ScalarPropertyValue
Definition ModuleRegistry.h:30