| 23 | |
| 24 | |
| 25 | struct 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 == ¶m) { |
| 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 | |
| 48 | struct DetectResultGParam : public GParam { |
nothing calls this directly
no outgoing calls
no test coverage detected