Project import generated by Copybara.
PiperOrigin-RevId: 253489161
This commit is contained in:
Vendored
+72
@@ -0,0 +1,72 @@
|
||||
#
|
||||
# Copyright 2018 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.
|
||||
|
||||
licenses(["notice"]) # Apache 2.0
|
||||
|
||||
package(default_visibility = ["//visibility:private"])
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
load("//mediapipe/framework/port:build_config.bzl", "mediapipe_cc_proto_library")
|
||||
|
||||
proto_library(
|
||||
name = "sky_light_calculator_proto",
|
||||
srcs = ["sky_light_calculator.proto"],
|
||||
visibility = ["//mediapipe:__subpackages__"],
|
||||
deps = ["//mediapipe/framework:calculator_proto"],
|
||||
)
|
||||
|
||||
mediapipe_cc_proto_library(
|
||||
name = "sky_light_calculator_cc_proto",
|
||||
srcs = ["sky_light_calculator.proto"],
|
||||
cc_deps = ["//mediapipe/framework:calculator_cc_proto"],
|
||||
visibility = ["//mediapipe:__subpackages__"],
|
||||
deps = [":sky_light_calculator_proto"],
|
||||
)
|
||||
|
||||
proto_library(
|
||||
name = "night_light_calculator_proto",
|
||||
srcs = ["night_light_calculator.proto"],
|
||||
visibility = ["//mediapipe:__subpackages__"],
|
||||
deps = ["//mediapipe/framework:calculator_proto"],
|
||||
)
|
||||
|
||||
mediapipe_cc_proto_library(
|
||||
name = "night_light_calculator_cc_proto",
|
||||
srcs = ["night_light_calculator.proto"],
|
||||
cc_deps = ["//mediapipe/framework:calculator_cc_proto"],
|
||||
visibility = ["//mediapipe:__subpackages__"],
|
||||
deps = [":night_light_calculator_proto"],
|
||||
)
|
||||
|
||||
proto_library(
|
||||
name = "zoo_mutator_proto",
|
||||
srcs = ["zoo_mutator.proto"],
|
||||
visibility = ["//mediapipe:__subpackages__"],
|
||||
deps = ["@protobuf_archive//:any_proto"],
|
||||
)
|
||||
|
||||
proto_library(
|
||||
name = "zoo_mutation_calculator_proto",
|
||||
srcs = ["zoo_mutation_calculator.proto"],
|
||||
features = ["-proto_dynamic_mode_static_link"],
|
||||
visibility = ["//mediapipe:__subpackages__"],
|
||||
deps = [
|
||||
":zoo_mutator_proto",
|
||||
"//mediapipe/framework:calculator_options_proto",
|
||||
"//mediapipe/framework:packet_factory_proto",
|
||||
"//mediapipe/framework:packet_generator_proto",
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,54 @@
|
||||
// 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.
|
||||
//
|
||||
// Forked from mediapipe/framework/tool/source.proto.
|
||||
// The forked proto must remain identical to the original proto and should be
|
||||
// ONLY used by mediapipe open source project.
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package mediapipe;
|
||||
|
||||
import "mediapipe/framework/calculator.proto";
|
||||
|
||||
// A proto2 calculator options for testing.
|
||||
message NightLightCalculatorOptions {
|
||||
extend CalculatorOptions {
|
||||
optional NightLightCalculatorOptions ext = 190865679;
|
||||
}
|
||||
|
||||
// The output frame rate measured in frames per second.
|
||||
optional double frame_rate = 1;
|
||||
|
||||
enum OutputHeader {
|
||||
NONE = 0;
|
||||
PASS_HEADER = 1;
|
||||
UPDATE_VIDEO_HEADER = 2;
|
||||
}
|
||||
|
||||
// Whether and what kind of header to place on the output stream.
|
||||
optional OutputHeader output_header = 2;
|
||||
|
||||
// Adds jitter to resampling if set, so that Google's sampling is not
|
||||
optional double jitter = 4;
|
||||
|
||||
// If specified, output timestamps are aligned with base_timestamp.
|
||||
repeated int64 base_timestamp = 5;
|
||||
|
||||
// If set, the output timestamps nearest to start_time and end_time
|
||||
optional bool round_limits = 8;
|
||||
|
||||
// Format string used by string::Substitute to construct the output.
|
||||
optional string format_string = 9;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// 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.
|
||||
//
|
||||
// Forked from mediapipe/framework/tool/source.proto.
|
||||
// The forked proto must remain identical to the original proto and should be
|
||||
// ONLY used by mediapipe open source project.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package mediapipe;
|
||||
|
||||
// A proto3 calculator options for testing.
|
||||
message SkyLightCalculatorOptions {
|
||||
string sky_color = 1;
|
||||
repeated int32 sky_grid = 2;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// We need to use proto2 for now as proto3 does not support Extensions. We will
|
||||
// be able to switch to proto3 when MediaPipe supports Any.
|
||||
syntax = "proto2";
|
||||
|
||||
package google_zoo;
|
||||
|
||||
import "mediapipe/framework/packet_generator.proto";
|
||||
import "mediapipe/framework/testdata/zoo_mutator.proto";
|
||||
|
||||
// Configuration of a ZooMutator is stored as an extension of
|
||||
// mediapipe.PacketGeneratorOptions.
|
||||
extend mediapipe.PacketGeneratorOptions {
|
||||
optional ZooMutatorConfig zoo_mutator_config_ext = 235240278;
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package google_zoo;
|
||||
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
// Configurations for DragonMutator.
|
||||
message DragonMutatorConfig {
|
||||
// The confidence value of the dragon.
|
||||
double dragon_factor = 1;
|
||||
// Parameters passed to the dragon.
|
||||
string dragon_params = 2;
|
||||
}
|
||||
|
||||
// Configuration of a ZooMutator.
|
||||
message ZooMutatorConfig {
|
||||
string name = 1;
|
||||
string instance_name = 2;
|
||||
|
||||
// Subclass-specific configuration as a proto message or a file containing a
|
||||
// text proto message.
|
||||
oneof sub_config_oneof {
|
||||
google.protobuf.Any sub_config = 3;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user