4dc4b19ddb
GitOrigin-RevId: 1e13be30e2c6838d4a2ff768a39c414bc80534bb
43 lines
1.6 KiB
Protocol Buffer
43 lines
1.6 KiB
Protocol Buffer
// 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.
|
|
|
|
syntax = "proto2";
|
|
|
|
// TODO: Switch to package mediapipe.
|
|
package mediapipe;
|
|
|
|
import "mediapipe/framework/calculator.proto";
|
|
|
|
message PacketLatencyCalculatorOptions {
|
|
extend mediapipe.CalculatorOptions {
|
|
optional PacketLatencyCalculatorOptions ext = 172681421;
|
|
}
|
|
|
|
// Number of intervals for the latency histogram output.
|
|
optional int64 num_intervals = 1 [default = 10];
|
|
|
|
// Interval size (in microseconds) for the histogram.
|
|
optional int64 interval_size_usec = 2 [default = 10000];
|
|
|
|
// Reset time (in microseconds) for histogram and average. The histogram and
|
|
// running average are initialized to zero periodically based on the specified
|
|
// duration. Negative value implies never resetting the statistics.
|
|
optional int64 reset_duration_usec = 3 [default = -1];
|
|
|
|
// Identifier labels for each input packet stream. The order of labels must
|
|
// correspond 1:1 with the input streams order. The labels are copied to the
|
|
// latency information output by the calculator.
|
|
repeated string packet_labels = 4;
|
|
}
|