Internal change

PiperOrigin-RevId: 524229420
This commit is contained in:
MediaPipe Team 2023-04-14 01:48:19 -07:00 committed by Copybara-Service
parent 06bbd9c599
commit 215465bee0

View File

@ -70,7 +70,7 @@ class Lift2DFrameAnnotationTo3DCalculator : public CalculatorBase {
// In a single MediaPipe session, the IDs are unique. // In a single MediaPipe session, the IDs are unique.
// Also assign timestamp for the FrameAnnotation to be the input packet // Also assign timestamp for the FrameAnnotation to be the input packet
// timestamp. // timestamp.
void AssignObjectIdAndTimestamp(int64 timestamp_us, void AssignObjectIdAndTimestamp(int64_t timestamp_us,
FrameAnnotation* annotation); FrameAnnotation* annotation);
std::unique_ptr<Decoder> decoder_; std::unique_ptr<Decoder> decoder_;
Lift2DFrameAnnotationTo3DCalculatorOptions options_; Lift2DFrameAnnotationTo3DCalculatorOptions options_;
@ -159,7 +159,7 @@ absl::Status Lift2DFrameAnnotationTo3DCalculator::LoadOptions(
} }
void Lift2DFrameAnnotationTo3DCalculator::AssignObjectIdAndTimestamp( void Lift2DFrameAnnotationTo3DCalculator::AssignObjectIdAndTimestamp(
int64 timestamp_us, FrameAnnotation* annotation) { int64_t timestamp_us, FrameAnnotation* annotation) {
for (auto& ann : *annotation->mutable_annotations()) { for (auto& ann : *annotation->mutable_annotations()) {
ann.set_object_id(GetNextObjectId()); ann.set_object_id(GetNextObjectId());
} }