You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
4.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # Copyright (c) 2017 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. import("../../webrtc.gni")
  9. if (is_android) {
  10. import("//build/config/android/config.gni")
  11. import("//build/config/android/rules.gni")
  12. }
  13. rtc_library("video_codecs_api") {
  14. visibility = [ "*" ]
  15. sources = [
  16. "sdp_video_format.cc",
  17. "sdp_video_format.h",
  18. "video_codec.cc",
  19. "video_codec.h",
  20. "video_decoder.cc",
  21. "video_decoder.h",
  22. "video_decoder_factory.cc",
  23. "video_decoder_factory.h",
  24. "video_encoder.cc",
  25. "video_encoder.h",
  26. "video_encoder_config.cc",
  27. "video_encoder_config.h",
  28. "video_encoder_factory.h",
  29. "vp8_frame_buffer_controller.h",
  30. "vp8_frame_config.cc",
  31. "vp8_frame_config.h",
  32. "vp8_temporal_layers.cc",
  33. "vp8_temporal_layers.h",
  34. ]
  35. deps = [
  36. "..:fec_controller_api",
  37. "..:scoped_refptr",
  38. "../..:webrtc_common",
  39. "../../modules/video_coding:codec_globals_headers",
  40. "../../rtc_base:checks",
  41. "../../rtc_base:rtc_base_approved",
  42. "../../rtc_base/system:rtc_export",
  43. "../units:data_rate",
  44. "../video:encoded_image",
  45. "../video:video_bitrate_allocation",
  46. "../video:video_codec_constants",
  47. "../video:video_frame",
  48. "../video:video_rtp_headers",
  49. "//third_party/abseil-cpp/absl/algorithm:container",
  50. "//third_party/abseil-cpp/absl/container:inlined_vector",
  51. "//third_party/abseil-cpp/absl/strings",
  52. "//third_party/abseil-cpp/absl/types:optional",
  53. ]
  54. }
  55. rtc_source_set("bitstream_parser_api") {
  56. visibility = [ "*" ]
  57. sources = [
  58. "bitstream_parser.h",
  59. ]
  60. deps = [
  61. "..:array_view",
  62. ]
  63. }
  64. rtc_library("builtin_video_decoder_factory") {
  65. visibility = [ "*" ]
  66. allow_poison = [
  67. "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
  68. "software_video_codecs",
  69. ]
  70. sources = [
  71. "builtin_video_decoder_factory.cc",
  72. "builtin_video_decoder_factory.h",
  73. ]
  74. deps = [
  75. ":video_codecs_api",
  76. "../../api:scoped_refptr",
  77. "../../media:rtc_internal_video_codecs",
  78. "../../rtc_base/system:rtc_export",
  79. ]
  80. }
  81. rtc_library("builtin_video_encoder_factory") {
  82. visibility = [ "*" ]
  83. allow_poison = [
  84. "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
  85. "software_video_codecs",
  86. ]
  87. sources = [
  88. "builtin_video_encoder_factory.cc",
  89. "builtin_video_encoder_factory.h",
  90. ]
  91. deps = [
  92. ":video_codecs_api",
  93. "../../api:scoped_refptr",
  94. "../../media:rtc_encoder_simulcast_proxy",
  95. "../../media:rtc_internal_video_codecs",
  96. "../../media:rtc_media_base",
  97. "../../rtc_base:checks",
  98. "../../rtc_base/system:rtc_export",
  99. "//third_party/abseil-cpp/absl/strings",
  100. ]
  101. }
  102. rtc_library("vp8_temporal_layers_factory") {
  103. visibility = [ "*" ]
  104. allow_poison = [ "software_video_codecs" ]
  105. sources = [
  106. "vp8_temporal_layers_factory.cc",
  107. "vp8_temporal_layers_factory.h",
  108. ]
  109. deps = [
  110. ":video_codecs_api",
  111. "../:fec_controller_api",
  112. "../../modules/video_coding:video_coding_utility",
  113. "../../modules/video_coding:webrtc_vp8_temporal_layers",
  114. "../../rtc_base:checks",
  115. ]
  116. }
  117. rtc_library("rtc_software_fallback_wrappers") {
  118. visibility = [ "*" ]
  119. sources = [
  120. "video_decoder_software_fallback_wrapper.cc",
  121. "video_decoder_software_fallback_wrapper.h",
  122. "video_encoder_software_fallback_wrapper.cc",
  123. "video_encoder_software_fallback_wrapper.h",
  124. ]
  125. deps = [
  126. ":video_codecs_api",
  127. "..:fec_controller_api",
  128. "../../media:rtc_h264_profile_id",
  129. "../../media:rtc_media_base",
  130. "../../modules/video_coding:video_codec_interface",
  131. "../../rtc_base:checks",
  132. "../../rtc_base:rtc_base_approved",
  133. "../../rtc_base/system:fallthrough",
  134. "../../rtc_base/system:rtc_export",
  135. "../../system_wrappers:field_trial",
  136. "../video:encoded_image",
  137. "../video:video_bitrate_allocation",
  138. "../video:video_frame",
  139. "../video:video_rtp_headers",
  140. "//third_party/abseil-cpp/absl/types:optional",
  141. ]
  142. }