Flip driver image if wrist is backwards
Change-Id: Id303283baf449ffe88c6286ff13e7cfde91d3a9d
diff --git a/y2019/image_streamer/BUILD b/y2019/image_streamer/BUILD
index dc6c45f..4885da0 100644
--- a/y2019/image_streamer/BUILD
+++ b/y2019/image_streamer/BUILD
@@ -4,6 +4,7 @@
name = "image_streamer",
srcs = ["image_streamer.cc"],
deps = [
+ ":flip_image",
"//aos/logging",
"//aos/logging:implementations",
"//aos/vision/blob:codec",
@@ -16,3 +17,19 @@
"@com_github_gflags_gflags//:gflags",
],
)
+
+cc_library(
+ name = "flip_image",
+ srcs = ["flip_image.cc"],
+ hdrs = ["flip_image.h"],
+ copts = [
+ "-Wno-format-nonliteral",
+ "-Wno-cast-align",
+ "-Wno-cast-qual",
+ "-Wno-error=type-limits",
+ ],
+ deps = [
+ "//third_party/cimg:CImg",
+ "//third_party/libjpeg",
+ ],
+)