MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / ImageMParam

Class ImageMParam

example/E01-AutoPilot.cpp:25–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25struct ImageMParam : public GMessageParam {
26 int frame_id_ = 0;
27 char image_buf_[DEFAULT_IMAGE_SIZE] = {0};
28
29 explicit ImageMParam() = default;
30
31 ImageMParam(const ImageMParam& param) : GMessageParam(param) {
32 this->frame_id_ = param.frame_id_;
33 memcpy(image_buf_, param.image_buf_, DEFAULT_IMAGE_SIZE);
34 }
35
36 ImageMParam& operator=(const ImageMParam& param) {
37 if (this == &param) {
38 return *this;
39 }
40
41 this->frame_id_ = param.frame_id_;
42 memcpy(image_buf_, param.image_buf_, DEFAULT_IMAGE_SIZE);
43 return *this;
44 }
45};
46
47
48struct DetectResultGParam : public GParam {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected