Internal change

PiperOrigin-RevId: 519010016
This commit is contained in:
Hadon Nash 2023-03-23 17:49:15 -07:00 committed by Copybara-Service
parent 6aab4e013d
commit 8a55f11952
6 changed files with 5 additions and 4 deletions

View File

@ -81,7 +81,6 @@ mediapipe_proto_library(
mediapipe_proto_library(
name = "location_data_proto",
srcs = ["location_data.proto"],
portable_deps = ["//mediapipe/framework/formats/annotation:rasterization_cc_proto"],
deps = ["//mediapipe/framework/formats/annotation:rasterization_proto"],
)

View File

@ -69,7 +69,7 @@ message Locus {
// Required if locus_type = REGION, Specifies a region using a scanline
// encoding
optional Rasterization region = 4;
optional mediapipe.Rasterization region = 4;
// Required if locus_type = VIDEO_TUBE. Specifies the component loci of the
// tube.

View File

@ -18,6 +18,7 @@ package mediapipe;
option java_package = "com.google.mediapipe.formats.annotation.proto";
option java_outer_classname = "RasterizationProto";
option cc_enable_arenas = true;
// A Region can be represented in each frame as a set of scanlines
// (compressed RLE, similar to rasterization of polygons).

View File

@ -35,7 +35,7 @@
namespace mediapipe {
namespace {
// Extracts from the BinaryMask, stored as Rasterization in
// Extracts from the BinaryMask, stored as mediapipe.Rasterization in
// the location_data, the tightest bounding box, that contains all pixels
// encoded in the rasterizations.
Rectangle_i MaskToRectangle(const LocationData& location_data) {

View File

@ -75,7 +75,7 @@ message LocationData {
optional int32 width = 1;
optional int32 height = 2;
// A rasterization-like format for storing the mask.
optional Rasterization rasterization = 3;
optional mediapipe.Rasterization rasterization = 3;
}
optional BinaryMask mask = 4;

View File

@ -33,6 +33,7 @@ def replace_deps(deps, old, new, drop_google_protobuf = True):
deps = [dep for dep in deps if not dep.startswith("@com_google_protobuf//")]
deps = [replace_suffix(dep, "any_proto", "cc_wkt_protos") for dep in deps]
deps = [dep for dep in deps if not dep.endswith("_annotations")]
deps = [replace_suffix(dep, old, new) for dep in deps]
return deps