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 | |
| 5 | namespace y2019 { |
| 6 | namespace camera { |
| 7 | |
| 8 | void ImageStreamEvent::ProcessHelper( |
| 9 | aos::vision::DataRef data, aos::monotonic_clock::time_point timestamp) { |
| 10 | if (data.size() < 300) { |
Austin Schuh | f257f3c | 2019-10-27 21:00:43 -0700 | [diff] [blame] | 11 | 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] | 12 | return; |
| 13 | } |
| 14 | ProcessImage(data, timestamp); |
| 15 | } |
| 16 | |
| 17 | } // namespace camera |
| 18 | } // namespace y2019 |