Updated timestamp variable name

This commit is contained in:
Prianka Liz Kariat 2023-04-14 12:13:46 +05:30
parent 2c154e20cc
commit 7b1b94416a
2 changed files with 8 additions and 8 deletions

View File

@ -41,7 +41,7 @@
* timestamp. * timestamp.
* *
* @param image The image to send to the MediaPipe graph. * @param image The image to send to the MediaPipe graph.
* @param timestampMs The timestamp (in milliseconds) to assign to the packet. * @param timestampInMilliseconds The timestamp (in milliseconds) to assign to the packet.
* @param error Pointer to the memory location where errors if any should be saved. If @c NULL, no * @param error Pointer to the memory location where errors if any should be saved. If @c NULL, no
* error will be saved. * error will be saved.
* *
@ -49,7 +49,7 @@
* occurred during the conversion. * occurred during the conversion.
*/ */
+ (mediapipe::Packet)createPacketWithMPPImage:(MPPImage *)image + (mediapipe::Packet)createPacketWithMPPImage:(MPPImage *)image
timestampMs:(NSInteger)timestampMs timestampInMilliseconds:(NSInteger)timestampInMilliseconds
error:(NSError **)error; error:(NSError **)error;
/** /**
@ -66,11 +66,11 @@
* specified timestamp. * specified timestamp.
* *
* @param image The `NormalizedRect` to send to the MediaPipe graph. * @param image The `NormalizedRect` to send to the MediaPipe graph.
* @param timestampMs The timestamp (in milliseconds) to assign to the packet. * @param timestampInMilliseconds The timestamp (in milliseconds) to assign to the packet.
* *
* @return The MediaPipe packet containing the normalized rect. * @return The MediaPipe packet containing the normalized rect.
*/ */
+ (mediapipe::Packet)createPacketWithNormalizedRect:(mediapipe::NormalizedRect &)normalizedRect + (mediapipe::Packet)createPacketWithNormalizedRect:(mediapipe::NormalizedRect &)normalizedRect
timestampMs:(NSInteger)timestampMs; timestampInMilliseconds:(NSInteger)timestampInMilliseconds;
@end @end

View File

@ -42,7 +42,7 @@ using ::mediapipe::Timestamp;
} }
+ (Packet)createPacketWithMPPImage:(MPPImage *)image + (Packet)createPacketWithMPPImage:(MPPImage *)image
timestampMs:(NSInteger)timestampMs timestampInMilliseconds:(NSInteger)timestampInMilliseconds
error:(NSError **)error { error:(NSError **)error {
std::unique_ptr<ImageFrame> imageFrame = [image imageFrameWithError:error]; std::unique_ptr<ImageFrame> imageFrame = [image imageFrameWithError:error];
@ -51,7 +51,7 @@ using ::mediapipe::Timestamp;
} }
return MakePacket<Image>(std::move(imageFrame)) return MakePacket<Image>(std::move(imageFrame))
.At(Timestamp(int64(timestampMs * kMicroSecondsPerMilliSecond))); .At(Timestamp(int64(timestampInMilliseconds * kMicroSecondsPerMilliSecond)));
} }
+ (Packet)createPacketWithNormalizedRect:(NormalizedRect &)normalizedRect { + (Packet)createPacketWithNormalizedRect:(NormalizedRect &)normalizedRect {
@ -59,9 +59,9 @@ using ::mediapipe::Timestamp;
} }
+ (Packet)createPacketWithNormalizedRect:(NormalizedRect &)normalizedRect + (Packet)createPacketWithNormalizedRect:(NormalizedRect &)normalizedRect
timestampMs:(NSInteger)timestampMs { timestampInMilliseconds:(NSInteger)timestampInMilliseconds {
return MakePacket<NormalizedRect>(std::move(normalizedRect)) return MakePacket<NormalizedRect>(std::move(normalizedRect))
.At(Timestamp(int64(timestampMs * kMicroSecondsPerMilliSecond))); .At(Timestamp(int64(timestampInMilliseconds * kMicroSecondsPerMilliSecond)));
} }
@end @end