blob: 44fd8e5a9215c7dd7ac2445636a53a2c9a60686c [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
5namespace y2019 {
6namespace camera {
7
8void ImageStreamEvent::ProcessHelper(
9 aos::vision::DataRef data, aos::monotonic_clock::time_point timestamp) {
10 if (data.size() < 300) {
Austin Schuhf257f3c2019-10-27 21:00:43 -070011 AOS_LOG(INFO, "got bad img of size(%d)\n", static_cast<int>(data.size()));
Brian Silverman58899fd2019-03-24 11:03:11 -070012 return;
13 }
14 ProcessImage(data, timestamp);
15}
16
17} // namespace camera
18} // namespace y2019