blob: 4faa6a678903ea6e9162e2fef5f0504b88c1f9b8 [file] [log] [blame]
Danil Chapovalovc46385c2020-03-11 10:45:57 +01001# Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("//third_party/libaom/options.gni")
10import("../../../../webrtc.gni")
11
12rtc_library("libaom_av1_decoder") {
13 visibility = [ "*" ]
14 poisonous = [ "software_video_codecs" ]
15 public = [ "libaom_av1_decoder.h" ]
16 deps = [
17 "../../../../api/video_codecs:video_codecs_api",
18 "//third_party/abseil-cpp/absl/base:core_headers",
19 ]
20
Danil Chapovalov560e87a2020-03-17 15:56:20 +010021 if (enable_libaom) {
Danil Chapovalovc46385c2020-03-11 10:45:57 +010022 sources = [ "libaom_av1_decoder.cc" ]
23 deps += [
24 "../..:video_codec_interface",
25 "../../../../api:scoped_refptr",
26 "../../../../api/video:encoded_image",
27 "../../../../api/video:video_frame_i420",
28 "../../../../common_video",
29 "../../../../rtc_base:logging",
30 "//third_party/abseil-cpp/absl/types:optional",
31 "//third_party/libaom",
32 "//third_party/libyuv",
33 ]
34 } else {
35 sources = [ "libaom_av1_decoder_absent.cc" ]
36 }
37}
Danil Chapovalov976cc1a2020-03-20 10:36:13 +010038
39rtc_library("libaom_av1_encoder") {
40 visibility = [ "*" ]
41 poisonous = [ "software_video_codecs" ]
42 public = [ "libaom_av1_encoder.h" ]
43 deps = [
44 "../../../../api/video_codecs:video_codecs_api",
45 "//third_party/abseil-cpp/absl/base:core_headers",
46 ]
47
48 if (enable_libaom) {
49 sources = [ "libaom_av1_encoder.cc" ]
50 deps += [
51 "../..:video_codec_interface",
52 "../../../../api:scoped_refptr",
53 "../../../../api/video:encoded_image",
54 "../../../../api/video:video_frame",
55 "../../../../api/video:video_frame_i420",
56 "../../../../common_video",
57 "../../../../rtc_base:checks",
58 "../../../../rtc_base:logging",
59 "//third_party/abseil-cpp/absl/algorithm:container",
60 "//third_party/libaom",
61 ]
62 } else {
63 sources = [ "libaom_av1_encoder_absent.cc" ]
64 }
65}
Danil Chapovalova4c44252020-03-24 09:35:04 +010066
67rtc_library("video_coding_codecs_av1_tests") {
68 testonly = true
69
70 if (enable_libaom) {
71 sources = [ "libaom_av1_encoder_unittest.cc" ]
72 deps = [
73 ":libaom_av1_encoder",
74 "../..:video_codec_interface",
75 "../../../../api/video_codecs:video_codecs_api",
76 "../../../../test:test_support",
77 ]
78 }
79}