forked from google/knusperli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
102 lines (91 loc) · 1.79 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package(
default_visibility = ["//visibility:public"],
)
cc_binary(
name = "knusperli",
srcs = [
"decode.cc",
],
deps = [
":jpeg_data",
":jpeg_data_decoder",
":jpeg_data_reader",
":output_image",
"@lodepng",
],
)
cc_library(
name = "jpeg_data_reader",
srcs = [
"jpeg_data_reader.cc",
"jpeg_huffman_decode.cc",
"jpeg_huffman_decode.h",
],
hdrs = ["jpeg_data_reader.h"],
deps = [
":jpeg_data",
],
)
cc_library(
name = "jpeg_data_decoder",
srcs = ["jpeg_data_decoder.cc"],
hdrs = ["jpeg_data_decoder.h"],
deps = [
":jpeg_data",
":output_image",
],
)
cc_library(
name = "jpeg_data",
srcs = ["jpeg_data.cc"],
hdrs = [
"jpeg_data.h",
"jpeg_error.h",
],
)
cc_library(
name = "output_image",
srcs = ["output_image.cc"],
hdrs = ["output_image.h"],
deps = [
":color_transform",
":dct_double",
":gamma_correct",
":idct",
":jpeg_data",
":preprocess_downsample",
":quantize",
],
)
cc_library(
name = "color_transform",
textual_hdrs = ["color_transform.h"],
)
cc_library(
name = "dct_double",
srcs = ["dct_double.cc"],
hdrs = ["dct_double.h"],
copts = ["-ffast-math"],
)
cc_library(
name = "gamma_correct",
srcs = ["gamma_correct.cc"],
hdrs = ["gamma_correct.h"],
)
cc_library(
name = "idct",
srcs = ["idct.cc"],
hdrs = ["idct.h"],
deps = [":jpeg_data"],
)
cc_library(
name = "preprocess_downsample",
srcs = ["preprocess_downsample.cc"],
hdrs = ["preprocess_downsample.h"],
)
cc_library(
name = "quantize",
srcs = ["quantize.cc"],
hdrs = ["quantize.h"],
deps = [":jpeg_data"],
)