Go to the source code of this file.
|
| DEFINE_CONVERSION_CLASS (pass,(public:void init(unordered_map< std::string, std::string > params) {(void) params;data_size=sizeof(uint32_t);data_description="i";} void Convert(uint32_t src, void *dest) { uint32_t *val=(uint32_t *) dest;*val=src;})) DEFINE_CONVERSION_CLASS(linear |
|
void | init (unordered_map< std::string, std::string > params) |
|
void | Convert (uint32_t src, void *dest) |
|
◆ Convert()
void Convert |
( |
uint32_t | src, |
|
|
void * | dest ) |
◆ DEFINE_CONVERSION_CLASS()
DEFINE_CONVERSION_CLASS |
( |
pass | , |
|
|
(public: void init(unordered_map< std::string, std::string > params) {(void) params; data_size=sizeof(uint32_t); data_description="i"; } void Convert(uint32_t src, void *dest) { uint32_t *val=(uint32_t *) dest; *val=src; }) | ) |
◆ init()
void init |
( |
unordered_map< std::string, std::string > | params | ) |
|
Definition at line 30 of file conversions-impl.hh.
30 {
31 data_size = sizeof(double);
32 data_description = "d";
33 std::string scale_str = params["scale"];
34 std::string offset_str = params["offset"];
35 sscanf(scale_str.c_str(),
"%le", &
scale);
36 sscanf(offset_str.c_str(),
"%le", &
offset);
37 };
◆ offset
◆ scale