blob: 3268a6711004453d7bef397a9346bd0f2c6de966 [file] [log] [blame]
Brian Silverman58899fd2019-03-24 11:03:11 -07001#include "y2019/jevois/camera/image_stream.h"
2
3#include "aos/logging/logging.h"
4
Stephan Pleinesf63bde82024-01-13 15:59:33 -08005namespace y2019::camera {
Brian Silverman58899fd2019-03-24 11:03:11 -07006
7void ImageStreamEvent::ProcessHelper(
8 aos::vision::DataRef data, aos::monotonic_clock::time_point timestamp) {
9 if (data.size() < 300) {
Austin Schuhf257f3c2019-10-27 21:00:43 -070010 AOS_LOG(INFO, "got bad img of size(%d)\n", static_cast<int>(data.size()));
Brian Silverman58899fd2019-03-24 11:03:11 -070011 return;
12 }
13 ProcessImage(data, timestamp);
14}
15
Stephan Pleinesf63bde82024-01-13 15:59:33 -080016} // namespace y2019::camera