diff --git a/mediapipe/framework/calculator.proto b/mediapipe/framework/calculator.proto index eecd033c9..9984ee250 100644 --- a/mediapipe/framework/calculator.proto +++ b/mediapipe/framework/calculator.proto @@ -347,7 +347,8 @@ message CalculatorGraphConfig { // PacketGenerators can take as a input side packet the output side // packet of another PacketGenerator. The graph of PacketGenerators // must be a directed acyclic graph. - repeated PacketGeneratorConfig packet_generator = 7; + // DEPRECATED: Use a Node to generate side packets. + repeated PacketGeneratorConfig packet_generator = 7 [deprecated = true]; // Number of threads for running calculators in multithreaded mode. // If not specified, the scheduler will pick an appropriate number // of threads depending on the number of available processors. diff --git a/mediapipe/framework/packet_generator.h b/mediapipe/framework/packet_generator.h index dbc1f07e0..aaf6b20d0 100644 --- a/mediapipe/framework/packet_generator.h +++ b/mediapipe/framework/packet_generator.h @@ -18,6 +18,7 @@ #include #include +#include "absl/base/attributes.h" #include "absl/base/macros.h" #include "absl/memory/memory.h" #include "mediapipe/framework/deps/registration.h" diff --git a/mediapipe/framework/packet_generator.proto b/mediapipe/framework/packet_generator.proto index 473908e05..ba269634d 100644 --- a/mediapipe/framework/packet_generator.proto +++ b/mediapipe/framework/packet_generator.proto @@ -17,6 +17,7 @@ // ONLY used by mediapipe open source project. // // Messages for specifying PacketGenerators. +// DEPRECATED: Use a Node to generate side packets. syntax = "proto2"; @@ -27,6 +28,8 @@ option java_outer_classname = "PacketGeneratorProto"; // Options used by a PacketGenerator. message PacketGeneratorOptions { + option deprecated = true; + // If true, this proto specifies a subset of field values, // which should override corresponding field values. optional bool merge_fields = 1 [default = true]; @@ -36,6 +39,8 @@ message PacketGeneratorOptions { // The settings specifying a packet generator and how it is connected. message PacketGeneratorConfig { + option deprecated = true; + // The name of the registered packet generator class. optional string packet_generator = 1; diff --git a/mediapipe/framework/packet_generator_graph.h b/mediapipe/framework/packet_generator_graph.h index 99ea6557c..1d1afec4a 100644 --- a/mediapipe/framework/packet_generator_graph.h +++ b/mediapipe/framework/packet_generator_graph.h @@ -20,6 +20,7 @@ #include #include +#include "absl/base/attributes.h" #include "absl/base/macros.h" #include "mediapipe/framework/executor.h" #include "mediapipe/framework/packet.h"