blob: 8409ea5d3b942037738a84fe34d0b9e887ab194c [file] [log] [blame]
Brian Silverman7a7c24d2018-09-01 17:49:09 -07001package(default_visibility = ["//visibility:public"])
2
3load("//tools/build_rules:protobuf.bzl", "proto_cc_library")
Parker Schuh44f86922017-01-03 23:59:50 -08004
5cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -07006 name = "image_types",
7 hdrs = ["image_types.h"],
8 compatible_with = [
9 "//tools:armhf-debian",
10 ],
11 deps = [
12 "//aos/common/logging",
13 ],
Parker Schuh44f86922017-01-03 23:59:50 -080014)
15
Parker Schuh24ee58d2017-03-11 16:13:23 -080016proto_cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070017 name = "camera_params",
18 src = "camera_params.proto",
19 compatible_with = [
20 "//tools:armhf-debian",
21 ],
Parker Schuh24ee58d2017-03-11 16:13:23 -080022)
23
Parker Schuh44f86922017-01-03 23:59:50 -080024cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070025 name = "reader",
26 srcs = ["reader.cc"],
27 hdrs = [
28 "V4L2.h",
29 "reader.h",
30 ],
31 compatible_with = [
32 "//tools:armhf-debian",
33 ],
34 deps = [
35 ":camera_params",
36 ":image_types",
37 "//aos/common:time",
38 "//aos/common/logging",
39 ],
Parker Schuh44f86922017-01-03 23:59:50 -080040)
41
42cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070043 name = "jpeg_routines",
44 srcs = ["jpeg_routines.cc"],
45 hdrs = ["jpeg_routines.h"],
46 compatible_with = [
47 "//tools:armhf-debian",
48 ],
49 deps = [
50 ":image_types",
51 "//aos/common/logging",
52 "//third_party/libjpeg",
53 ],
Parker Schuh44f86922017-01-03 23:59:50 -080054)
55
Brian Silverman7a7c24d2018-09-01 17:49:09 -070056cc_library(
57 name = "image_stream",
58 hdrs = ["image_stream.h"],
59 compatible_with = [
60 "//tools:armhf-debian",
61 ],
62 deps = [
63 "//aos/vision/events:epoll_events",
64 "//aos/vision/image:reader",
65 ],
Parker Schuh44f86922017-01-03 23:59:50 -080066)