2019-06-17 01:03:25 +02:00
|
|
|
# Copyright 2019 The MediaPipe Authors.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
load("//mediapipe/framework/port:build_config.bzl", "mediapipe_proto_library")
|
2021-05-05 03:30:15 +02:00
|
|
|
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
2019-11-15 20:38:21 +01:00
|
|
|
|
2020-08-30 05:41:10 +02:00
|
|
|
licenses(["notice"])
|
2019-06-17 01:03:25 +02:00
|
|
|
|
|
|
|
package(default_visibility = ["//visibility:private"])
|
|
|
|
|
2022-12-13 18:05:19 +01:00
|
|
|
# The MediaPipe internal package group. No mediapipe users should be added to this group.
|
2019-06-17 01:03:25 +02:00
|
|
|
package_group(
|
|
|
|
name = "mediapipe_internal",
|
|
|
|
packages = [
|
|
|
|
"//mediapipe/...",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-05-05 03:30:15 +02:00
|
|
|
bzl_library(
|
|
|
|
name = "transitive_protos_bzl",
|
|
|
|
srcs = [
|
|
|
|
"transitive_protos.bzl",
|
|
|
|
],
|
|
|
|
visibility = ["//mediapipe/framework:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "encode_binary_proto_bzl",
|
|
|
|
srcs = [
|
|
|
|
"encode_binary_proto.bzl",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
alias(
|
|
|
|
name = "encode_binary_proto",
|
|
|
|
actual = ":encode_binary_proto_bzl",
|
|
|
|
deprecation = "Use encode_binary_proto_bzl",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
2019-06-17 01:03:25 +02:00
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "calculator_proto",
|
|
|
|
srcs = ["calculator.proto"],
|
2020-07-09 02:34:05 +02:00
|
|
|
visibility = ["//visibility:public"],
|
2019-06-17 01:03:25 +02:00
|
|
|
deps = [
|
2022-12-14 01:08:54 +01:00
|
|
|
":calculator_options_proto",
|
|
|
|
":mediapipe_options_proto",
|
|
|
|
":packet_factory_proto",
|
|
|
|
":packet_generator_proto",
|
|
|
|
":status_handler_proto",
|
|
|
|
":stream_handler_proto",
|
2019-08-17 03:49:25 +02:00
|
|
|
"@com_google_protobuf//:any_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "calculator_options_proto",
|
|
|
|
srcs = ["calculator_options.proto"],
|
2019-09-11 22:58:46 +02:00
|
|
|
visibility = ["//visibility:public"],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "calculator_contract_test_proto",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["calculator_contract_test.proto"],
|
|
|
|
visibility = ["//mediapipe/framework:__subpackages__"],
|
2020-05-21 18:46:31 +02:00
|
|
|
deps = [
|
2022-12-14 01:08:54 +01:00
|
|
|
":calculator_options_proto",
|
|
|
|
":calculator_proto",
|
2020-05-21 18:46:31 +02:00
|
|
|
],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "calculator_profile_proto",
|
|
|
|
srcs = ["calculator_profile.proto"],
|
2020-07-09 02:34:05 +02:00
|
|
|
visibility = ["//visibility:public"],
|
2020-05-21 18:46:31 +02:00
|
|
|
deps = [
|
2022-12-14 01:08:54 +01:00
|
|
|
":calculator_options_proto",
|
|
|
|
":calculator_proto",
|
2020-05-21 18:46:31 +02:00
|
|
|
],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "mediapipe_options_proto",
|
|
|
|
srcs = ["mediapipe_options.proto"],
|
2023-01-13 18:03:46 +01:00
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "packet_factory_proto",
|
|
|
|
srcs = ["packet_factory.proto"],
|
2022-09-06 23:29:51 +02:00
|
|
|
visibility = ["//visibility:public"],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "packet_generator_proto",
|
|
|
|
srcs = ["packet_generator.proto"],
|
2022-09-06 23:29:51 +02:00
|
|
|
visibility = ["//visibility:public"],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "packet_test_proto",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["packet_test.proto"],
|
2022-06-23 21:35:07 +02:00
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
"//mediapipe/framework:__subpackages__",
|
|
|
|
],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "status_handler_proto",
|
|
|
|
srcs = ["status_handler.proto"],
|
2021-03-25 23:01:44 +01:00
|
|
|
visibility = [":mediapipe_internal"],
|
2022-12-14 01:08:54 +01:00
|
|
|
deps = [":mediapipe_options_proto"],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "stream_handler_proto",
|
|
|
|
srcs = ["stream_handler.proto"],
|
2020-07-30 02:33:39 +02:00
|
|
|
visibility = [":mediapipe_internal"],
|
2022-12-14 01:08:54 +01:00
|
|
|
deps = [":mediapipe_options_proto"],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "test_calculators_proto",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["test_calculators.proto"],
|
2022-11-29 19:17:21 +01:00
|
|
|
visibility = [":mediapipe_internal"],
|
2020-05-21 18:46:31 +02:00
|
|
|
deps = [
|
2022-12-14 01:08:54 +01:00
|
|
|
":calculator_options_proto",
|
|
|
|
":calculator_proto",
|
2020-05-21 18:46:31 +02:00
|
|
|
],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
mediapipe_proto_library(
|
2019-06-17 01:03:25 +02:00
|
|
|
name = "thread_pool_executor_proto",
|
|
|
|
srcs = ["thread_pool_executor.proto"],
|
2020-07-30 02:33:39 +02:00
|
|
|
visibility = [":mediapipe_internal"],
|
2022-12-14 01:08:54 +01:00
|
|
|
deps = [":mediapipe_options_proto"],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2022-09-06 23:29:51 +02:00
|
|
|
# It is for pure-native Android builds where the library can't have any dependency on libandroid.so
|
2022-03-21 20:07:37 +01:00
|
|
|
config_setting(
|
|
|
|
name = "android_no_jni",
|
|
|
|
define_values = {"MEDIAPIPE_NO_JNI": "1"},
|
|
|
|
values = {"crosstool_top": "//external:android/crosstool"},
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
cc_library(
|
|
|
|
name = "calculator_base",
|
|
|
|
srcs = ["calculator_base.cc"],
|
|
|
|
hdrs = ["calculator_base.h"],
|
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":calculator_context",
|
|
|
|
":calculator_contract",
|
|
|
|
":port",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/deps:registration",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "calculator_context",
|
|
|
|
srcs = ["calculator_context.cc"],
|
|
|
|
hdrs = ["calculator_context.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":calculator_state",
|
|
|
|
":counter",
|
|
|
|
":graph_service",
|
|
|
|
":input_stream_shard",
|
|
|
|
":output_stream_shard",
|
|
|
|
":packet",
|
|
|
|
":packet_set",
|
|
|
|
":port",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:any_proto",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "calculator_context_manager",
|
|
|
|
srcs = ["calculator_context_manager.cc"],
|
|
|
|
hdrs = ["calculator_context_manager.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":calculator_context",
|
|
|
|
":calculator_state",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:tag_map",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "calculator_contract",
|
|
|
|
srcs = ["calculator_contract.cc"],
|
|
|
|
hdrs = ["calculator_contract.h"],
|
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
],
|
|
|
|
deps = [
|
2022-12-21 01:39:52 +01:00
|
|
|
":calculator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":graph_service",
|
2022-12-21 01:39:52 +01:00
|
|
|
":mediapipe_options_cc_proto",
|
|
|
|
":packet_generator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":packet_type",
|
|
|
|
":port",
|
2022-12-21 01:39:52 +01:00
|
|
|
":status_handler_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/port:any_proto",
|
|
|
|
"//mediapipe/framework/port:status",
|
2021-06-03 22:13:30 +02:00
|
|
|
"//mediapipe/framework/tool:options_map",
|
2021-07-24 02:09:32 +02:00
|
|
|
"//mediapipe/framework/tool:packet_generator_wrapper_calculator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/tool:tag_map",
|
2022-05-04 00:29:57 +02:00
|
|
|
"@com_google_absl//absl/container:flat_hash_map",
|
2019-06-17 01:03:25 +02:00
|
|
|
"@com_google_absl//absl/memory",
|
2022-05-04 00:29:57 +02:00
|
|
|
"@com_google_absl//absl/strings",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "legacy_calculator_support",
|
|
|
|
srcs = ["legacy_calculator_support.cc"],
|
|
|
|
hdrs = ["legacy_calculator_support.h"],
|
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":calculator_context",
|
|
|
|
":calculator_contract",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "calculator_framework",
|
|
|
|
hdrs = ["calculator_framework.h"],
|
|
|
|
visibility = [
|
|
|
|
"//visibility:public",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":calculator_base",
|
|
|
|
":calculator_graph",
|
|
|
|
":calculator_registry",
|
|
|
|
":counter_factory",
|
|
|
|
":input_stream",
|
|
|
|
":output_side_packet",
|
|
|
|
":output_stream",
|
|
|
|
":packet",
|
|
|
|
":packet_generator",
|
|
|
|
":packet_generator_graph",
|
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
":status_handler",
|
|
|
|
":subgraph",
|
|
|
|
":timestamp",
|
|
|
|
":validated_graph_config",
|
|
|
|
"//mediapipe/framework/tool:sink",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"//mediapipe/framework/tool:validate",
|
|
|
|
"//mediapipe/framework/tool:validate_name",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "calculator_graph",
|
|
|
|
srcs = [
|
|
|
|
"calculator_graph.cc",
|
|
|
|
"scheduler.cc",
|
|
|
|
],
|
|
|
|
hdrs = [
|
|
|
|
"calculator_graph.h",
|
|
|
|
"scheduler.h",
|
|
|
|
],
|
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":calculator_base",
|
2023-03-06 17:40:18 +01:00
|
|
|
":calculator_cc_proto",
|
2021-03-25 23:01:44 +01:00
|
|
|
":calculator_node",
|
2019-06-17 01:03:25 +02:00
|
|
|
":counter_factory",
|
|
|
|
":delegating_executor",
|
|
|
|
":executor",
|
|
|
|
":graph_output_stream",
|
2021-03-25 23:01:44 +01:00
|
|
|
":graph_service",
|
|
|
|
":graph_service_manager",
|
2019-06-17 01:03:25 +02:00
|
|
|
":input_stream_manager",
|
2023-03-06 17:40:18 +01:00
|
|
|
":mediapipe_profiling",
|
2021-03-25 23:01:44 +01:00
|
|
|
":output_side_packet_impl",
|
2019-06-17 01:03:25 +02:00
|
|
|
":output_stream",
|
|
|
|
":output_stream_manager",
|
|
|
|
":output_stream_poller",
|
|
|
|
":output_stream_shard",
|
|
|
|
":packet",
|
|
|
|
":packet_generator",
|
2023-03-06 17:40:18 +01:00
|
|
|
":packet_generator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":packet_generator_graph",
|
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
":scheduler_queue",
|
|
|
|
":status_handler",
|
2023-03-06 17:40:18 +01:00
|
|
|
":status_handler_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":thread_pool_executor",
|
2023-03-06 17:40:18 +01:00
|
|
|
":thread_pool_executor_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":timestamp",
|
|
|
|
":validated_graph_config",
|
|
|
|
"//mediapipe/framework/port:core_proto",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:source_location",
|
|
|
|
"//mediapipe/framework/port:status",
|
2021-03-25 23:01:44 +01:00
|
|
|
"//mediapipe/framework/tool:fill_packet_set",
|
2021-07-24 02:09:32 +02:00
|
|
|
"//mediapipe/framework/tool:packet_generator_wrapper_calculator",
|
2021-03-25 23:01:44 +01:00
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"//mediapipe/framework/tool:tag_map",
|
|
|
|
"//mediapipe/framework/tool:validate",
|
|
|
|
"//mediapipe/framework/tool:validate_name",
|
2022-05-04 00:29:57 +02:00
|
|
|
"//mediapipe/gpu:gpu_service",
|
2023-03-06 17:40:18 +01:00
|
|
|
"//mediapipe/gpu:graph_support",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/util:cpu_util",
|
2023-03-06 17:40:18 +01:00
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/container:fixed_array",
|
|
|
|
"@com_google_absl//absl/container:flat_hash_map",
|
|
|
|
"@com_google_absl//absl/container:flat_hash_set",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
"@com_google_absl//absl/status",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
"@com_google_absl//absl/strings:str_format",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2021-03-25 23:01:44 +01:00
|
|
|
cc_library(
|
|
|
|
name = "graph_service_manager",
|
|
|
|
srcs = ["graph_service_manager.cc"],
|
|
|
|
hdrs = ["graph_service_manager.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":graph_service",
|
2022-12-21 09:52:17 +01:00
|
|
|
":packet",
|
2021-03-25 23:01:44 +01:00
|
|
|
"@com_google_absl//absl/status",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "graph_service_manager_test",
|
|
|
|
srcs = ["graph_service_manager_test.cc"],
|
|
|
|
deps = [
|
|
|
|
":graph_service_manager",
|
2022-12-21 09:52:17 +01:00
|
|
|
":packet",
|
2021-03-25 23:01:44 +01:00
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
cc_library(
|
|
|
|
name = "calculator_node",
|
|
|
|
srcs = ["calculator_node.cc"],
|
|
|
|
hdrs = ["calculator_node.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":calculator_base",
|
2022-12-21 01:39:52 +01:00
|
|
|
":calculator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":calculator_context",
|
|
|
|
":calculator_context_manager",
|
|
|
|
":calculator_state",
|
|
|
|
":counter_factory",
|
|
|
|
":input_side_packet_handler",
|
|
|
|
":input_stream_handler",
|
|
|
|
":input_stream_manager",
|
|
|
|
":legacy_calculator_support",
|
|
|
|
":mediapipe_profiling",
|
|
|
|
":output_side_packet_impl",
|
|
|
|
":output_stream_handler",
|
|
|
|
":output_stream_manager",
|
|
|
|
":packet",
|
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
2022-12-21 01:39:52 +01:00
|
|
|
":stream_handler_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":timestamp",
|
|
|
|
":validated_graph_config",
|
|
|
|
"//mediapipe/framework/port:core_proto",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:source_location",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/stream_handler:default_input_stream_handler",
|
|
|
|
"//mediapipe/framework/stream_handler:in_order_output_stream_handler",
|
2020-02-10 22:27:13 +01:00
|
|
|
"//mediapipe/framework/tool:name_util",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"//mediapipe/framework/tool:tag_map",
|
|
|
|
"//mediapipe/framework/tool:validate_name",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/memory",
|
2021-07-24 02:09:32 +02:00
|
|
|
"@com_google_absl//absl/status",
|
2019-06-17 01:03:25 +02:00
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "calculator_registry",
|
|
|
|
hdrs = ["calculator_registry.h"],
|
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":calculator_base",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "calculator_runner",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["calculator_runner.cc"],
|
|
|
|
hdrs = ["calculator_runner.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":calculator_framework",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:sink",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "calculator_state",
|
|
|
|
srcs = ["calculator_state.cc"],
|
|
|
|
hdrs = ["calculator_state.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
2022-12-21 01:39:52 +01:00
|
|
|
":calculator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":counter",
|
|
|
|
":counter_factory",
|
|
|
|
":graph_service",
|
2021-03-25 23:01:44 +01:00
|
|
|
":graph_service_manager",
|
2019-06-17 01:03:25 +02:00
|
|
|
":input_stream",
|
|
|
|
":output_stream",
|
|
|
|
":packet",
|
|
|
|
":packet_set",
|
|
|
|
":port",
|
|
|
|
"//mediapipe/framework/port:any_proto",
|
|
|
|
"//mediapipe/framework/port:logging",
|
2021-06-03 22:13:30 +02:00
|
|
|
"//mediapipe/framework/tool:options_map",
|
2019-06-17 01:03:25 +02:00
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "camera_intrinsics",
|
|
|
|
hdrs = ["camera_intrinsics.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "collection",
|
|
|
|
hdrs = ["collection.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
2020-05-21 18:46:31 +02:00
|
|
|
":collection_item_id",
|
2019-06-17 01:03:25 +02:00
|
|
|
":type_map",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/tool:tag_map",
|
2021-02-27 09:21:16 +01:00
|
|
|
"//mediapipe/framework/tool:tag_map_helper",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/tool:validate_name",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "collection_item_id",
|
|
|
|
srcs = ["collection_item_id.cc"],
|
|
|
|
hdrs = ["collection_item_id.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//mediapipe/framework/deps:intops",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "counter",
|
|
|
|
hdrs = ["counter.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = ["//mediapipe/framework/port:integral_types"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "counter_factory",
|
|
|
|
srcs = ["counter_factory.cc"],
|
|
|
|
hdrs = ["counter_factory.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":counter",
|
|
|
|
":port",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:map_util",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
"@com_google_absl//absl/time",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "delegating_executor",
|
|
|
|
srcs = ["delegating_executor.cc"],
|
|
|
|
hdrs = ["delegating_executor.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":executor",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "demangle",
|
|
|
|
hdrs = ["demangle.h"],
|
2019-10-25 23:12:58 +02:00
|
|
|
defines = select({
|
|
|
|
"//mediapipe/framework/profiler:android_release": [
|
|
|
|
"MEDIAPIPE_HAS_CXA_DEMANGLE=0",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2019-06-17 01:03:25 +02:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "mediapipe_profiling",
|
|
|
|
hdrs = [
|
|
|
|
"mediapipe_profiling.h",
|
|
|
|
"platform_specific_profiling.h",
|
|
|
|
],
|
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//mediapipe/framework/profiler:graph_profiler",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "executor",
|
|
|
|
srcs = ["executor.cc"],
|
|
|
|
hdrs = ["executor.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2022-12-21 01:39:52 +01:00
|
|
|
":mediapipe_options_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/deps:registration",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/port:statusor",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "graph_output_stream",
|
|
|
|
srcs = ["graph_output_stream.cc"],
|
|
|
|
hdrs = ["graph_output_stream.h"],
|
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":input_stream_handler",
|
|
|
|
":input_stream_manager",
|
|
|
|
":output_stream_manager",
|
|
|
|
":packet",
|
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "graph_service",
|
|
|
|
hdrs = ["graph_service.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
2022-05-04 00:29:57 +02:00
|
|
|
":packet",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/port:statusor",
|
2019-06-17 01:03:25 +02:00
|
|
|
"@com_google_absl//absl/base:core_headers",
|
2022-05-04 00:29:57 +02:00
|
|
|
"@com_google_absl//absl/strings",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "input_side_packet_handler",
|
|
|
|
srcs = ["input_side_packet_handler.cc"],
|
|
|
|
hdrs = ["input_side_packet_handler.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":collection_item_id",
|
|
|
|
":packet",
|
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:fill_packet_set",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "input_stream",
|
|
|
|
hdrs = ["input_stream.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":packet",
|
|
|
|
":port",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "input_stream_handler",
|
|
|
|
srcs = ["input_stream_handler.cc"],
|
|
|
|
hdrs = ["input_stream_handler.h"],
|
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
"//research/interaction/mediapipe/calculators:__pkg__",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":calculator_context",
|
|
|
|
":calculator_context_manager",
|
|
|
|
":collection",
|
|
|
|
":collection_item_id",
|
|
|
|
":input_stream_manager",
|
|
|
|
":input_stream_shard",
|
2022-12-21 01:39:52 +01:00
|
|
|
":mediapipe_options_cc_proto",
|
2020-05-21 18:46:31 +02:00
|
|
|
":mediapipe_profiling",
|
2019-06-17 01:03:25 +02:00
|
|
|
":packet",
|
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
"//mediapipe/framework/deps:registration",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:tag_map",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "input_stream_manager",
|
|
|
|
srcs = ["input_stream_manager.cc"],
|
|
|
|
hdrs = ["input_stream_manager.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":packet",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:source_location",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "input_stream_shard",
|
|
|
|
srcs = ["input_stream_shard.cc"],
|
|
|
|
hdrs = ["input_stream_shard.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":input_stream",
|
|
|
|
":packet",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:source_location",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "lifetime_tracker",
|
|
|
|
testonly = 1,
|
|
|
|
hdrs = ["lifetime_tracker.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"@com_google_absl//absl/memory",
|
2022-03-21 20:07:37 +01:00
|
|
|
"@com_google_absl//absl/synchronization",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "output_side_packet",
|
|
|
|
hdrs = ["output_side_packet.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":packet",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "output_side_packet_impl",
|
|
|
|
srcs = ["output_side_packet_impl.cc"],
|
|
|
|
hdrs = ["output_side_packet_impl.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":collection_item_id",
|
|
|
|
":input_side_packet_handler",
|
|
|
|
":output_side_packet",
|
|
|
|
":packet",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:source_location",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "output_stream",
|
|
|
|
hdrs = ["output_stream.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":packet",
|
|
|
|
":port",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "output_stream_handler",
|
|
|
|
srcs = ["output_stream_handler.cc"],
|
|
|
|
hdrs = ["output_stream_handler.h"],
|
|
|
|
visibility = [
|
|
|
|
":mediapipe_internal",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":calculator_context_manager",
|
|
|
|
":collection",
|
|
|
|
":collection_item_id",
|
2022-12-21 01:39:52 +01:00
|
|
|
":mediapipe_options_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":output_stream_manager",
|
|
|
|
":output_stream_shard",
|
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/deps:registration",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:tag_map",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "output_stream_manager",
|
|
|
|
srcs = ["output_stream_manager.cc"],
|
|
|
|
hdrs = ["output_stream_manager.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":input_stream_handler",
|
|
|
|
":output_stream_shard",
|
|
|
|
":packet",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:source_location",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "output_stream_poller",
|
|
|
|
hdrs = ["output_stream_poller.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":graph_output_stream",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "output_stream_shard",
|
|
|
|
srcs = ["output_stream_shard.cc"],
|
|
|
|
hdrs = ["output_stream_shard.h"],
|
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":output_stream",
|
|
|
|
":packet",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:source_location",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
# Defines Packet, a data carrier used throughout the framework.
|
|
|
|
cc_library(
|
|
|
|
name = "packet",
|
|
|
|
srcs = ["packet.cc"],
|
|
|
|
hdrs = ["packet.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":port",
|
|
|
|
":timestamp",
|
|
|
|
":type_map",
|
2020-07-09 02:34:05 +02:00
|
|
|
"//mediapipe/framework/deps:no_destructor",
|
|
|
|
"//mediapipe/framework/deps:registration",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/port:core_proto",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/port:statusor",
|
|
|
|
"//mediapipe/framework/tool:type_util",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "packet_generator",
|
|
|
|
hdrs = ["packet_generator.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":packet",
|
2022-12-21 01:39:52 +01:00
|
|
|
":packet_generator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
"//mediapipe/framework/deps:registration",
|
|
|
|
"//mediapipe/framework/port:core_proto",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "packet_generator_graph",
|
|
|
|
srcs = ["packet_generator_graph.cc"],
|
|
|
|
hdrs = ["packet_generator_graph.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":delegating_executor",
|
|
|
|
":executor",
|
|
|
|
":packet",
|
2022-12-21 01:39:52 +01:00
|
|
|
":packet_factory_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":packet_generator",
|
2022-12-21 01:39:52 +01:00
|
|
|
":packet_generator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
":thread_pool_executor",
|
|
|
|
":validated_graph_config",
|
|
|
|
"//mediapipe/framework/port:core_proto",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "packet_set",
|
|
|
|
hdrs = ["packet_set.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":collection",
|
|
|
|
":packet",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "packet_type",
|
|
|
|
srcs = ["packet_type.cc"],
|
|
|
|
hdrs = ["packet_type.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2020-05-21 18:46:31 +02:00
|
|
|
":collection",
|
2019-06-17 01:03:25 +02:00
|
|
|
":packet",
|
|
|
|
":packet_set",
|
|
|
|
":type_map",
|
2022-03-21 20:07:37 +01:00
|
|
|
"//mediapipe/framework/deps:no_destructor",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:map_util",
|
|
|
|
"//mediapipe/framework/port:source_location",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
2022-03-21 20:07:37 +01:00
|
|
|
"//mediapipe/framework/tool:type_util",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/tool:validate_name",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
2022-03-21 20:07:37 +01:00
|
|
|
"@com_google_absl//absl/status",
|
2019-06-17 01:03:25 +02:00
|
|
|
"@com_google_absl//absl/strings",
|
2022-03-21 20:07:37 +01:00
|
|
|
"@com_google_absl//absl/types:span",
|
|
|
|
"@com_google_absl//absl/types:variant",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-07-30 02:33:39 +02:00
|
|
|
# When --copt=-fno-rtti is set, MEDIAPIPE_HAS_RTTI is cleared in port.h.
|
|
|
|
# To explicitly clear MEDIAPIPE_HAS_RTTI, compile with:
|
|
|
|
# bazel build --define=disable_rtti_and_exceptions=true
|
|
|
|
config_setting(
|
|
|
|
name = "disable_rtti_and_exceptions",
|
|
|
|
define_values = {"disable_rtti_and_exceptions": "true"},
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
cc_library(
|
|
|
|
name = "port",
|
|
|
|
hdrs = ["port.h"],
|
2020-03-11 02:07:12 +01:00
|
|
|
defines = select({
|
|
|
|
"//conditions:default": [],
|
|
|
|
}) + select({
|
|
|
|
"//conditions:default": [],
|
2021-02-27 09:21:16 +01:00
|
|
|
"//mediapipe/gpu:disable_gpu": ["MEDIAPIPE_DISABLE_GPU=1"],
|
2021-06-24 23:10:25 +02:00
|
|
|
}) + select({
|
|
|
|
"//conditions:default": [],
|
|
|
|
"//mediapipe/framework/port:disable_opencv": ["MEDIAPIPE_DISABLE_OPENCV=1"],
|
2020-07-30 02:33:39 +02:00
|
|
|
}) + select({
|
|
|
|
"//conditions:default": [],
|
|
|
|
"//mediapipe/framework:disable_rtti_and_exceptions": [
|
|
|
|
"MEDIAPIPE_HAS_RTTI=0",
|
|
|
|
],
|
2020-03-11 02:07:12 +01:00
|
|
|
}),
|
2019-06-17 01:03:25 +02:00
|
|
|
visibility = [
|
2022-06-23 21:35:07 +02:00
|
|
|
"//fitbit/research/sensing/mobisense:__subpackages__",
|
2020-09-16 03:31:50 +02:00
|
|
|
"//mediapipe/calculators:__subpackages__",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework:__subpackages__",
|
|
|
|
"//mediapipe/framework/port:__pkg__",
|
2021-02-27 09:21:16 +01:00
|
|
|
"//mediapipe/gpu:__pkg__",
|
2020-03-11 02:07:12 +01:00
|
|
|
"//mediapipe/util:__subpackages__",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "scheduler_queue",
|
|
|
|
srcs = ["scheduler_queue.cc"],
|
|
|
|
hdrs = [
|
|
|
|
"scheduler_queue.h",
|
|
|
|
"scheduler_shared.h",
|
|
|
|
],
|
2019-08-17 03:49:25 +02:00
|
|
|
copts = select({
|
|
|
|
"//conditions:default": [],
|
|
|
|
"//mediapipe:apple": [
|
|
|
|
"-ObjC++",
|
|
|
|
],
|
|
|
|
}),
|
2019-06-17 01:03:25 +02:00
|
|
|
visibility = [":mediapipe_internal"],
|
|
|
|
deps = [
|
|
|
|
":calculator_context",
|
|
|
|
":calculator_node",
|
|
|
|
":executor",
|
|
|
|
"//mediapipe/framework/deps:clock",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "status_handler",
|
|
|
|
hdrs = ["status_handler.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2022-12-21 01:39:52 +01:00
|
|
|
":mediapipe_options_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
"//mediapipe/framework/deps:registration",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "subgraph",
|
|
|
|
srcs = ["subgraph.cc"],
|
|
|
|
hdrs = ["subgraph.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2022-12-21 01:39:52 +01:00
|
|
|
":calculator_cc_proto",
|
2021-03-25 23:01:44 +01:00
|
|
|
":graph_service",
|
|
|
|
":graph_service_manager",
|
2019-06-17 01:03:25 +02:00
|
|
|
":port",
|
|
|
|
"//mediapipe/framework/deps:registration",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/port:statusor",
|
|
|
|
"//mediapipe/framework/tool:calculator_graph_template_cc_proto",
|
2019-09-30 19:18:09 +02:00
|
|
|
"//mediapipe/framework/tool:options_util",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/tool:template_expander",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/memory",
|
2021-03-25 23:01:44 +01:00
|
|
|
"@com_google_absl//absl/status",
|
2023-01-26 22:34:36 +01:00
|
|
|
"@com_google_absl//absl/strings",
|
2021-03-25 23:01:44 +01:00
|
|
|
"@com_google_absl//absl/types:optional",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "test_calculators",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["test_calculators.cc"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":calculator_framework",
|
2022-12-22 19:19:59 +01:00
|
|
|
":test_calculators_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/deps:mathutil",
|
|
|
|
"//mediapipe/framework/formats:matrix",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/strings",
|
2021-03-25 23:01:44 +01:00
|
|
|
"@eigen_archive//:eigen3",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
alwayslink = 1,
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "test_service",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["test_service.cc"],
|
|
|
|
hdrs = ["test_service.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":calculator_contract",
|
|
|
|
":calculator_framework",
|
|
|
|
":graph_service",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "thread_pool_executor",
|
|
|
|
srcs = ["thread_pool_executor.cc"],
|
|
|
|
hdrs = ["thread_pool_executor.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":executor",
|
2022-12-21 01:39:52 +01:00
|
|
|
":thread_pool_executor_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/deps:thread_options",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/port:statusor",
|
|
|
|
"//mediapipe/framework/port:threadpool",
|
|
|
|
"//mediapipe/util:cpu_util",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "timestamp",
|
|
|
|
srcs = ["timestamp.cc"],
|
|
|
|
hdrs = ["timestamp.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//mediapipe/framework/deps:intops",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "throttler",
|
|
|
|
hdrs = ["throttler.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "type_map",
|
|
|
|
hdrs = ["type_map.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":demangle",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"//mediapipe/framework/tool:type_util",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
],
|
|
|
|
alwayslink = 1,
|
2020-10-16 11:40:55 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "basic_types_registration",
|
|
|
|
srcs = ["basic_types_registration.cc"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":type_map",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
alwayslink = 1,
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "validated_graph_config",
|
|
|
|
srcs = ["validated_graph_config.cc"],
|
|
|
|
hdrs = ["validated_graph_config.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":calculator_base",
|
2022-12-21 01:39:52 +01:00
|
|
|
":calculator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":calculator_contract",
|
2021-03-25 23:01:44 +01:00
|
|
|
":graph_service_manager",
|
2019-06-17 01:03:25 +02:00
|
|
|
":legacy_calculator_support",
|
|
|
|
":packet",
|
|
|
|
":packet_generator",
|
2022-12-21 01:39:52 +01:00
|
|
|
":packet_generator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
":port",
|
|
|
|
":status_handler",
|
2022-12-21 01:39:52 +01:00
|
|
|
":status_handler_cc_proto",
|
|
|
|
":stream_handler_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":subgraph",
|
2022-12-21 01:39:52 +01:00
|
|
|
":thread_pool_executor_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:core_proto",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:map_util",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:source_location",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/port:topologicalsorter",
|
2020-02-10 22:27:13 +01:00
|
|
|
"//mediapipe/framework/tool:name_util",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"//mediapipe/framework/tool:subgraph_expansion",
|
|
|
|
"//mediapipe/framework/tool:validate",
|
|
|
|
"//mediapipe/framework/tool:validate_name",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
2019-11-15 20:38:21 +01:00
|
|
|
"@com_google_absl//absl/container:flat_hash_set",
|
2019-06-17 01:03:25 +02:00
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-03-25 23:01:44 +01:00
|
|
|
cc_test(
|
|
|
|
name = "validated_graph_config_test",
|
|
|
|
srcs = ["validated_graph_config_test.cc"],
|
|
|
|
deps = [
|
2022-12-21 01:39:52 +01:00
|
|
|
":calculator_cc_proto",
|
2021-03-25 23:01:44 +01:00
|
|
|
":calculator_framework",
|
|
|
|
":graph_service",
|
|
|
|
":graph_service_manager",
|
|
|
|
":validated_graph_config",
|
|
|
|
"//mediapipe/framework/api2:node",
|
|
|
|
"//mediapipe/framework/api2:port",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"@com_google_absl//absl/status",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
cc_library(
|
|
|
|
name = "graph_validation",
|
|
|
|
hdrs = ["graph_validation.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":calculator_framework",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
# cc tests
|
|
|
|
cc_test(
|
|
|
|
name = "calculator_base_test",
|
|
|
|
size = "medium",
|
|
|
|
srcs = ["calculator_base_test.cc"],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
|
|
|
":calculator_base",
|
2022-12-21 01:39:52 +01:00
|
|
|
":calculator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":calculator_context",
|
|
|
|
":calculator_context_manager",
|
|
|
|
":calculator_registry",
|
|
|
|
":calculator_state",
|
|
|
|
":output_stream",
|
|
|
|
":output_stream_manager",
|
|
|
|
":output_stream_shard",
|
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"//mediapipe/framework/tool:tag_map_helper",
|
2020-07-30 02:33:39 +02:00
|
|
|
"@com_google_absl//absl/container:flat_hash_set",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "calculator_contract_test",
|
|
|
|
srcs = ["calculator_contract_test.cc"],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
2022-12-21 01:39:52 +01:00
|
|
|
":calculator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":calculator_contract",
|
|
|
|
":calculator_contract_test_cc_proto",
|
2022-12-21 01:39:52 +01:00
|
|
|
":packet_generator_cc_proto",
|
|
|
|
":status_handler_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:parse_text_proto",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "calculator_node_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["calculator_node_test.cc"],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
|
|
|
":calculator_framework",
|
2020-05-21 18:46:31 +02:00
|
|
|
":calculator_node",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/calculators/core:pass_through_calculator",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:parse_text_proto",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:source",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "calculator_graph_event_loop_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["calculator_graph_event_loop_test.cc"],
|
|
|
|
deps = [
|
|
|
|
":calculator_framework",
|
|
|
|
":calculator_graph",
|
|
|
|
"//mediapipe/calculators/core:pass_through_calculator",
|
|
|
|
"//mediapipe/framework/port:core_proto",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:sink",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
"@com_google_absl//absl/time",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "calculator_graph_stopping_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["calculator_graph_stopping_test.cc"],
|
|
|
|
deps = [
|
|
|
|
":calculator_framework",
|
|
|
|
":calculator_graph",
|
|
|
|
"//mediapipe/calculators/core:pass_through_calculator",
|
|
|
|
"//mediapipe/framework/port:core_proto",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:sink",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
"@com_google_absl//absl/time",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "calculator_parallel_execution_test",
|
|
|
|
srcs = ["calculator_parallel_execution_test.cc"],
|
|
|
|
deps = [
|
|
|
|
":calculator_framework",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:integral_types",
|
|
|
|
"//mediapipe/framework/port:parse_text_proto",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:sink",
|
|
|
|
"@com_google_absl//absl/base:core_headers",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
"@com_google_absl//absl/synchronization",
|
|
|
|
"@com_google_absl//absl/time",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "calculator_runner_test",
|
|
|
|
size = "medium",
|
|
|
|
srcs = ["calculator_runner_test.cc"],
|
|
|
|
deps = [
|
|
|
|
":calculator_base",
|
|
|
|
":calculator_registry",
|
|
|
|
":calculator_runner",
|
|
|
|
":input_stream",
|
|
|
|
":output_stream",
|
|
|
|
":packet_type",
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "calculator_context_test",
|
|
|
|
size = "medium",
|
|
|
|
srcs = ["calculator_context_test.cc"],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
2022-12-21 01:39:52 +01:00
|
|
|
":calculator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":calculator_context",
|
|
|
|
":calculator_context_manager",
|
|
|
|
":calculator_state",
|
|
|
|
":output_stream",
|
|
|
|
":output_stream_manager",
|
|
|
|
":output_stream_shard",
|
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:parse_text_proto",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/testdata:night_light_calculator_cc_proto",
|
|
|
|
"//mediapipe/framework/testdata:sky_light_calculator_cc_proto",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
|
|
|
"//mediapipe/framework/tool:tag_map_helper",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "calculator_graph_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = [
|
|
|
|
"calculator_graph_test.cc",
|
|
|
|
],
|
|
|
|
linkstatic = 1,
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":calculator_framework",
|
|
|
|
":calculator_graph",
|
|
|
|
":collection_item_id",
|
|
|
|
":counter_factory",
|
|
|
|
":executor",
|
|
|
|
":input_stream_handler",
|
|
|
|
":lifetime_tracker",
|
2022-12-21 01:39:52 +01:00
|
|
|
":mediapipe_options_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":output_stream_poller",
|
|
|
|
":packet_set",
|
|
|
|
":packet_type",
|
|
|
|
":status_handler",
|
|
|
|
":subgraph",
|
|
|
|
":test_calculators",
|
|
|
|
":thread_pool_executor",
|
2022-12-21 01:39:52 +01:00
|
|
|
":thread_pool_executor_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":timestamp",
|
|
|
|
":type_map",
|
|
|
|
"//mediapipe/calculators/core:counting_source_calculator",
|
|
|
|
"//mediapipe/calculators/core:mux_calculator",
|
|
|
|
"//mediapipe/calculators/core:pass_through_calculator",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:parse_text_proto",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/stream_handler:barrier_input_stream_handler",
|
|
|
|
"//mediapipe/framework/stream_handler:early_close_input_stream_handler",
|
2020-04-07 04:10:12 +02:00
|
|
|
"//mediapipe/framework/stream_handler:fixed_size_input_stream_handler",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/stream_handler:immediate_input_stream_handler",
|
|
|
|
"//mediapipe/framework/stream_handler:mux_input_stream_handler",
|
2020-04-07 04:10:12 +02:00
|
|
|
"//mediapipe/framework/stream_handler:sync_set_input_stream_handler",
|
|
|
|
"//mediapipe/framework/stream_handler:timestamp_align_input_stream_handler",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/tool:sink",
|
|
|
|
"//mediapipe/framework/tool:status_util",
|
2023-03-06 17:40:18 +01:00
|
|
|
"//mediapipe/gpu:gpu_service",
|
2019-06-17 01:03:25 +02:00
|
|
|
"@com_google_absl//absl/container:fixed_array",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
"@com_google_absl//absl/strings",
|
2020-04-07 04:10:12 +02:00
|
|
|
"@com_google_absl//absl/strings:str_format",
|
2019-06-17 01:03:25 +02:00
|
|
|
"@com_google_absl//absl/time",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-08-17 03:49:25 +02:00
|
|
|
cc_test(
|
|
|
|
name = "calculator_graph_bounds_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = [
|
|
|
|
"calculator_graph_bounds_test.cc",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":calculator_context",
|
|
|
|
":calculator_framework",
|
2019-09-30 19:18:09 +02:00
|
|
|
":test_calculators",
|
|
|
|
":thread_pool_executor",
|
2019-08-17 03:49:25 +02:00
|
|
|
":timestamp",
|
2019-09-30 19:18:09 +02:00
|
|
|
":type_map",
|
|
|
|
"//mediapipe/calculators/core:counting_source_calculator",
|
|
|
|
"//mediapipe/calculators/core:mux_calculator",
|
2019-08-17 03:49:25 +02:00
|
|
|
"//mediapipe/calculators/core:pass_through_calculator",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:parse_text_proto",
|
|
|
|
"//mediapipe/framework/port:status",
|
2019-09-30 19:18:09 +02:00
|
|
|
"//mediapipe/framework/stream_handler:barrier_input_stream_handler",
|
|
|
|
"//mediapipe/framework/stream_handler:early_close_input_stream_handler",
|
|
|
|
"//mediapipe/framework/stream_handler:fixed_size_input_stream_handler",
|
2019-08-17 03:49:25 +02:00
|
|
|
"//mediapipe/framework/stream_handler:immediate_input_stream_handler",
|
2019-09-30 19:18:09 +02:00
|
|
|
"//mediapipe/framework/stream_handler:mux_input_stream_handler",
|
2019-11-21 21:01:51 +01:00
|
|
|
"//mediapipe/framework/stream_handler:sync_set_input_stream_handler",
|
2019-09-30 19:18:09 +02:00
|
|
|
"//mediapipe/framework/tool:sink",
|
2022-11-17 09:06:17 +01:00
|
|
|
"//mediapipe/util:packet_test_util",
|
2019-11-21 21:01:51 +01:00
|
|
|
"@com_google_absl//absl/strings",
|
2019-09-30 19:18:09 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "calculator_graph_side_packet_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = [
|
|
|
|
"calculator_graph_side_packet_test.cc",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2022-12-21 01:39:52 +01:00
|
|
|
":calculator_cc_proto",
|
2019-09-30 19:18:09 +02:00
|
|
|
":calculator_framework",
|
|
|
|
":test_calculators",
|
|
|
|
"//mediapipe/calculators/core:counting_source_calculator",
|
|
|
|
"//mediapipe/calculators/core:mux_calculator",
|
|
|
|
"//mediapipe/calculators/core:pass_through_calculator",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:parse_text_proto",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:sink",
|
|
|
|
"@com_google_absl//absl/time",
|
2019-08-17 03:49:25 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
cc_test(
|
|
|
|
name = "collection_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["collection_test.cc"],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
|
|
|
":collection",
|
|
|
|
":packet_set",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
|
|
|
"//mediapipe/framework/tool:tag_map_helper",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "graph_service_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = [
|
|
|
|
"graph_service_test.cc",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":calculator_contract",
|
|
|
|
":calculator_framework",
|
|
|
|
":graph_service",
|
|
|
|
":test_service",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:logging",
|
|
|
|
"//mediapipe/framework/port:parse_text_proto",
|
|
|
|
"//mediapipe/framework/port:ret_check",
|
|
|
|
"//mediapipe/framework/port:status",
|
2023-03-04 01:59:29 +01:00
|
|
|
"//mediapipe/framework/port:status_matchers",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/tool:sink",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "input_stream_manager_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["input_stream_manager_test.cc"],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
|
|
|
":input_stream_manager",
|
|
|
|
":input_stream_shard",
|
|
|
|
":lifetime_tracker",
|
|
|
|
":packet",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "output_stream_manager_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["output_stream_manager_test.cc"],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
|
|
|
":input_stream_handler",
|
|
|
|
":input_stream_manager",
|
|
|
|
":output_stream_manager",
|
|
|
|
":output_stream_shard",
|
|
|
|
":packet",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/stream_handler:default_input_stream_handler",
|
|
|
|
"//mediapipe/framework/tool:tag_map_helper",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "packet_delete_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["packet_delete_test.cc"],
|
|
|
|
copts = [
|
|
|
|
"-Werror",
|
|
|
|
],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
|
|
|
":packet",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "executor_external_build_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["executor_external_build_test.cc"],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
|
|
|
":executor",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:threadpool",
|
|
|
|
"@com_google_absl//absl/memory",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "packet_test",
|
|
|
|
size = "medium",
|
|
|
|
srcs = ["packet_test.cc"],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
|
|
|
":packet",
|
|
|
|
":packet_test_cc_proto",
|
|
|
|
":type_map",
|
2020-07-09 02:34:05 +02:00
|
|
|
"//mediapipe/framework/port:core_proto",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "packet_registration_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["packet_registration_test.cc"],
|
|
|
|
deps = [
|
|
|
|
":calculator_framework",
|
|
|
|
":packet",
|
|
|
|
":packet_test_cc_proto",
|
|
|
|
":type_map",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/framework/port:core_proto",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "packet_generator_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["packet_generator_test.cc"],
|
|
|
|
deps = [
|
|
|
|
":packet_generator",
|
2022-12-21 01:39:52 +01:00
|
|
|
":packet_generator_cc_proto",
|
2019-06-17 01:03:25 +02:00
|
|
|
":packet_type",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/tool:validate_type",
|
|
|
|
"@com_google_absl//absl/strings",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "timestamp_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["timestamp_test.cc"],
|
|
|
|
linkstatic = 1,
|
|
|
|
deps = [
|
|
|
|
":timestamp",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "graph_validation_test",
|
|
|
|
srcs = ["graph_validation_test.cc"],
|
|
|
|
deps = [
|
|
|
|
":calculator_contract_test_cc_proto",
|
|
|
|
":calculator_framework",
|
|
|
|
":graph_validation",
|
2021-05-10 21:19:00 +02:00
|
|
|
"//mediapipe/calculators/core:constant_side_packet_calculator",
|
|
|
|
"//mediapipe/calculators/core:default_side_packet_calculator",
|
2019-06-17 01:03:25 +02:00
|
|
|
"//mediapipe/calculators/core:pass_through_calculator",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
|
|
|
"//mediapipe/framework/port:parse_text_proto",
|
|
|
|
"//mediapipe/framework/tool:template_parser",
|
|
|
|
],
|
|
|
|
)
|
2019-08-17 03:49:25 +02:00
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "subgraph_test",
|
|
|
|
srcs = ["subgraph_test.cc"],
|
|
|
|
deps = [
|
2023-04-07 00:16:50 +02:00
|
|
|
":calculator_cc_proto",
|
2019-08-17 03:49:25 +02:00
|
|
|
":calculator_framework",
|
2021-03-25 23:01:44 +01:00
|
|
|
":graph_service_manager",
|
2019-08-17 03:49:25 +02:00
|
|
|
":subgraph",
|
|
|
|
":test_calculators",
|
2021-03-25 23:01:44 +01:00
|
|
|
"//mediapipe/calculators/core:constant_side_packet_calculator",
|
2023-03-03 02:59:15 +01:00
|
|
|
"//mediapipe/calculators/core:constant_side_packet_calculator_cc_proto",
|
2019-08-17 03:49:25 +02:00
|
|
|
"//mediapipe/calculators/core:pass_through_calculator",
|
|
|
|
"//mediapipe/framework/port:gtest_main",
|
2021-03-25 23:01:44 +01:00
|
|
|
"//mediapipe/framework/port:parse_text_proto",
|
2019-08-17 03:49:25 +02:00
|
|
|
"//mediapipe/framework/tool:sink",
|
|
|
|
"//mediapipe/framework/tool/testdata:dub_quad_test_subgraph",
|
2023-04-07 00:16:50 +02:00
|
|
|
"@com_google_absl//absl/status:statusor",
|
2021-03-25 23:01:44 +01:00
|
|
|
"@com_google_absl//absl/strings:str_format",
|
2019-08-17 03:49:25 +02:00
|
|
|
],
|
|
|
|
)
|