Brian Silverman | 58899fd | 2019-03-24 11:03:11 -0700 | [diff] [blame] | 1 | #include "y2019/jevois/camera/image_stream.h" |
| 2 | |
| 3 | #include "aos/logging/logging.h" |
| 4 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame] | 5 | namespace y2019::camera { |
Brian Silverman | 58899fd | 2019-03-24 11:03:11 -0700 | [diff] [blame] | 6 | |
| 7 | void ImageStreamEvent::ProcessHelper( |
| 8 | aos::vision::DataRef data, aos::monotonic_clock::time_point timestamp) { |
| 9 | if (data.size() < 300) { |
Austin Schuh | f257f3c | 2019-10-27 21:00:43 -0700 | [diff] [blame] | 10 | AOS_LOG(INFO, "got bad img of size(%d)\n", static_cast<int>(data.size())); |
Brian Silverman | 58899fd | 2019-03-24 11:03:11 -0700 | [diff] [blame] | 11 | return; |
| 12 | } |
| 13 | ProcessImage(data, timestamp); |
| 14 | } |
| 15 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame] | 16 | } // namespace y2019::camera |