From 18b4caa7f3866e1ffaacb86a0a1c1c9bcdd834bc Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Wed, 22 Mar 2023 07:12:05 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 518559368 --- mediapipe/framework/profiler/BUILD | 6 +-- mediapipe/gpu/BUILD | 48 +++++++++---------- .../com/google/mediapipe/framework/jni/BUILD | 30 ++++++------ mediapipe/util/BUILD | 10 ++-- 4 files changed, 47 insertions(+), 47 deletions(-) diff --git a/mediapipe/framework/profiler/BUILD b/mediapipe/framework/profiler/BUILD index 6184ed45b..38d72b265 100644 --- a/mediapipe/framework/profiler/BUILD +++ b/mediapipe/framework/profiler/BUILD @@ -315,11 +315,11 @@ cc_library( visibility = ["//visibility:private"], deps = [ "@com_google_absl//absl/flags:flag", + "//mediapipe/framework/deps:file_path", "//mediapipe/framework/port:logging", "//mediapipe/framework/port:ret_check", - "//mediapipe/framework/port:statusor", "//mediapipe/framework/port:status", - "//mediapipe/framework/deps:file_path", + "//mediapipe/framework/port:statusor", ] + select({ "//conditions:default": [ "//mediapipe/framework/port:file_helpers", @@ -328,8 +328,8 @@ cc_library( "//mediapipe/framework/port:file_helpers", ], "//mediapipe:android": [ - "//mediapipe/java/com/google/mediapipe/framework/jni:jni_util", "//mediapipe/framework/port:file_helpers", + "//mediapipe/java/com/google/mediapipe/framework/jni:jni_util", ], "//mediapipe:apple": [ "//mediapipe/framework/port:file_helpers", diff --git a/mediapipe/gpu/BUILD b/mediapipe/gpu/BUILD index 018b1b247..9b538a7f2 100644 --- a/mediapipe/gpu/BUILD +++ b/mediapipe/gpu/BUILD @@ -288,16 +288,16 @@ cc_library( deps = [ ":gpu_buffer_format", ":gpu_buffer_storage", + ":gpu_buffer_storage_image_frame", "@com_google_absl//absl/functional:bind_front", "@com_google_absl//absl/strings", "@com_google_absl//absl/synchronization", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/port:logging", - ":gpu_buffer_storage_image_frame", ] + select({ "//conditions:default": [ - ":gl_texture_view", ":gl_texture_buffer", + ":gl_texture_view", ], ":platform_ios_with_gpu": [ ":gl_texture_view", @@ -305,9 +305,9 @@ cc_library( "//mediapipe/objc:CFHolder", ], ":platform_macos_with_gpu": [ - "//mediapipe/objc:CFHolder", - ":gl_texture_view", ":gl_texture_buffer", + ":gl_texture_view", + "//mediapipe/objc:CFHolder", ], ":disable_gpu": [], }) + select({ @@ -324,9 +324,9 @@ cc_library( hdrs = ["gpu_buffer_format.h"], visibility = ["//visibility:public"], deps = [ - "//mediapipe/framework/formats:image_format_cc_proto", "@com_google_absl//absl/container:flat_hash_map", "//mediapipe/framework/deps:no_destructor", + "//mediapipe/framework/formats:image_format_cc_proto", "//mediapipe/framework/port:logging", ] + select({ "//conditions:default": [ @@ -613,22 +613,22 @@ cc_library( }), visibility = ["//visibility:private"], deps = [ - ":gl_context_options_cc_proto", - ":graph_support", - "//mediapipe/framework:calculator_context", - "//mediapipe/framework:executor", - "//mediapipe/framework:calculator_node", - "//mediapipe/framework/port:ret_check", - "//mediapipe/framework/deps:no_destructor", ":gl_base", ":gl_context", + ":gl_context_options_cc_proto", ":gpu_buffer_multi_pool", ":gpu_shared_data_header", + ":graph_support", + "//mediapipe/framework:calculator_context", + "//mediapipe/framework:calculator_node", + "//mediapipe/framework:executor", + "//mediapipe/framework/deps:no_destructor", + "//mediapipe/framework/port:ret_check", ] + select({ "//conditions:default": [], "//mediapipe:apple": [ - ":metal_shared_resources", ":cv_texture_cache_manager", + ":metal_shared_resources", ], }), ) @@ -697,13 +697,13 @@ cc_library( ":gpu_buffer", ":gpu_shared_data_header", ":multi_pool", + "@com_google_absl//absl/hash", + "@com_google_absl//absl/memory", + "@com_google_absl//absl/synchronization", "//mediapipe/framework:calculator_context", "//mediapipe/framework:calculator_node", "//mediapipe/framework/port:logging", "//mediapipe/util:resource_cache", - "@com_google_absl//absl/hash", - "@com_google_absl//absl/memory", - "@com_google_absl//absl/synchronization", ] + select({ "//conditions:default": [ ":gl_texture_buffer", @@ -719,9 +719,9 @@ cc_library( "//mediapipe:macos": [ ":cv_pixel_buffer_pool_wrapper", ":cv_texture_cache_manager", - ":pixel_buffer_pool_util", ":gl_texture_buffer", ":gl_texture_buffer_pool", + ":pixel_buffer_pool_util", ], }), ) @@ -789,31 +789,31 @@ cc_library( ":gpu_buffer", ":gpu_buffer_format", ":gpu_buffer_multi_pool", - ":gpu_shared_data_internal", ":gpu_service", + ":gpu_shared_data_internal", ":graph_support", ":image_frame_view", ":shader_util", - "//mediapipe/framework:calculator_framework", "@com_google_absl//absl/base:core_headers", + "@com_google_absl//absl/memory", + "@com_google_absl//absl/synchronization", "//mediapipe/framework:calculator_context", - "//mediapipe/framework:calculator_node", "//mediapipe/framework:calculator_contract", + "//mediapipe/framework:calculator_framework", + "//mediapipe/framework:calculator_node", "//mediapipe/framework:demangle", "//mediapipe/framework:legacy_calculator_support", "//mediapipe/framework:packet", "//mediapipe/framework:packet_set", "//mediapipe/framework:packet_type", "//mediapipe/framework:timestamp", + "//mediapipe/framework/deps:registration", "//mediapipe/framework/formats:image", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/port:logging", + "//mediapipe/framework/port:map_util", "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", - "@com_google_absl//absl/memory", - "@com_google_absl//absl/synchronization", - "//mediapipe/framework/deps:registration", - "//mediapipe/framework/port:map_util", ] + select({ "//conditions:default": [ ], diff --git a/mediapipe/java/com/google/mediapipe/framework/jni/BUILD b/mediapipe/java/com/google/mediapipe/framework/jni/BUILD index 4540f63a6..fa9ccffe9 100644 --- a/mediapipe/java/com/google/mediapipe/framework/jni/BUILD +++ b/mediapipe/java/com/google/mediapipe/framework/jni/BUILD @@ -30,11 +30,11 @@ cc_library( "compat_jni.cc", "graph.cc", "graph_jni.cc", + "graph_profiler_jni.cc", "graph_service_jni.cc", "packet_context_jni.cc", "packet_creator_jni.cc", "packet_getter_jni.cc", - "graph_profiler_jni.cc", ] + select({ "//conditions:default": [], "//mediapipe:android": [ @@ -54,11 +54,11 @@ cc_library( "compat_jni.h", "graph.h", "graph_jni.h", + "graph_profiler_jni.h", "graph_service_jni.h", "packet_context_jni.h", "packet_creator_jni.h", "packet_getter_jni.h", - "graph_profiler_jni.h", ] + select({ "//conditions:default": [], "//mediapipe:android": [ @@ -84,40 +84,40 @@ cc_library( deps = [ ":class_registry", ":jni_util", - "//mediapipe/framework/formats:image_format_cc_proto", - "//mediapipe/framework/formats:time_series_header_cc_proto", - "//mediapipe/framework:calculator_cc_proto", - "//mediapipe/framework:calculator_profile_cc_proto", - "//mediapipe/framework:calculator_framework", "@com_google_absl//absl/strings", "@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/synchronization", "@eigen_archive//:eigen3", + "//mediapipe/framework:calculator_cc_proto", + "//mediapipe/framework:calculator_framework", + "//mediapipe/framework:calculator_profile_cc_proto", "//mediapipe/framework:camera_intrinsics", "//mediapipe/framework/formats:image", + "//mediapipe/framework/formats:image_format_cc_proto", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:matrix", + "//mediapipe/framework/formats:time_series_header_cc_proto", "//mediapipe/framework/formats:video_stream_header", - "//mediapipe/framework/stream_handler:fixed_size_input_stream_handler", - "//mediapipe/framework/tool:name_util", - "//mediapipe/framework/tool:executor_util", "//mediapipe/framework/port:core_proto", "//mediapipe/framework/port:logging", - "//mediapipe/framework/port:threadpool", "//mediapipe/framework/port:singleton", "//mediapipe/framework/port:status", + "//mediapipe/framework/port:threadpool", + "//mediapipe/framework/stream_handler:fixed_size_input_stream_handler", + "//mediapipe/framework/tool:executor_util", + "//mediapipe/framework/tool:name_util", ] + select({ "//conditions:default": [ "//mediapipe/framework/port:file_helpers", ], "//mediapipe:android": [ - "//mediapipe/util/android/file/base", "//mediapipe/util/android:asset_manager_util", + "//mediapipe/util/android/file/base", ], }) + select({ "//conditions:default": [ - "//mediapipe/gpu:gl_quad_renderer", "//mediapipe/gpu:gl_calculator_helper", + "//mediapipe/gpu:gl_quad_renderer", "//mediapipe/gpu:gl_surface_sink_calculator", "//mediapipe/gpu:gpu_buffer", "//mediapipe/gpu:gpu_shared_data_internal", @@ -153,9 +153,9 @@ cc_library( srcs = ["class_registry.cc"], hdrs = ["class_registry.h"], deps = [ + "@com_google_absl//absl/container:node_hash_map", "@com_google_absl//absl/strings", "@com_google_absl//absl/strings:str_format", - "@com_google_absl//absl/container:node_hash_map", ] + select({ "//conditions:default": [ ], @@ -172,9 +172,9 @@ cc_library( ":class_registry", ":loose_headers", ":mediapipe_framework_jni", + "@com_google_absl//absl/container:node_hash_map", "@com_google_absl//absl/strings", "@com_google_absl//absl/strings:str_format", - "@com_google_absl//absl/container:node_hash_map", "//mediapipe/framework/port:logging", ] + select({ "//conditions:default": [ diff --git a/mediapipe/util/BUILD b/mediapipe/util/BUILD index 59d03361e..9c9c19b2b 100644 --- a/mediapipe/util/BUILD +++ b/mediapipe/util/BUILD @@ -198,15 +198,15 @@ cc_library( visibility = ["//visibility:public"], deps = [ ":resource_util_custom", + "@com_google_absl//absl/strings", "@com_google_absl//absl/strings:str_format", "//mediapipe/framework/deps:file_path", + "//mediapipe/framework/port:file_helpers", "//mediapipe/framework/port:logging", "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:singleton", "//mediapipe/framework/port:status", "//mediapipe/framework/port:statusor", - "//mediapipe/framework/port:file_helpers", - "@com_google_absl//absl/strings", ] + select({ "//conditions:default": [ "@com_google_absl//absl/flags:flag", @@ -253,13 +253,13 @@ cc_library( ], visibility = ["//visibility:public"], deps = [ + "@com_google_absl//absl/strings:str_format", + "@com_google_absl//absl/types:variant", "//mediapipe/framework/formats:detection_cc_proto", "//mediapipe/framework/formats:location", "//mediapipe/framework/formats:location_opencv", - "@com_google_absl//absl/strings:str_format", - "@com_google_absl//absl/types:variant", - "//mediapipe/framework/port:status", "//mediapipe/framework/port:map_util", + "//mediapipe/framework/port:status", ] + select({ "//conditions:default": [ "@org_tensorflow//tensorflow/core:framework",