From 54299919869020ee210ed72ea793d18ed70c0594 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Thu, 25 May 2023 18:57:56 +0530 Subject: [PATCH] Updated formatting --- .../containers/utils/sources/MPPCategory+Helpers.h | 13 ++++++++----- .../containers/utils/sources/MPPCategory+Helpers.mm | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.h b/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.h index b2417f4c6..8f5a84bc0 100644 --- a/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.h +++ b/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.h @@ -28,17 +28,20 @@ NS_ASSUME_NONNULL_BEGIN + (MPPCategory *)categoryWithProto:(const ::mediapipe::Classification &)classificationProto; /** - * Creates an `MPPCategory` with the given MediaPipe `Classification` proto and the given category index. - * The resulting `MPPCategory` is created with the given category index instead of the category index specified in the `Classification` proto. - * This method is useful for tasks like gesture recognizer which always returns a default index for the recognized gestures. + * Creates an `MPPCategory` with the given MediaPipe `Classification` proto and the given category + * index. The resulting `MPPCategory` is created with the given category index instead of the + * category index specified in the `Classification` proto. This method is useful for tasks like + * gesture recognizer which always returns a default index for the recognized gestures. * * @param classificationProto A MediaPipe `Classification` proto. - * @param index The index to be used for creating the `MPPCategory` instead of the category index specified in the `Classification` proto. + * @param index The index to be used for creating the `MPPCategory` instead of the category index + * specified in the `Classification` proto. * * @return An `MPPGestureRecognizerResult` object that contains the hand gesture recognition * results. */ -+ (MPPCategory *)categoryWithProto:(const ::mediapipe::Classification &)classificationProto andIndex:(NSInteger)index; ++ (MPPCategory *)categoryWithProto:(const ::mediapipe::Classification &)classificationProto + andIndex:(NSInteger)index; @end diff --git a/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.mm b/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.mm index ac7e02cca..f5605e56e 100644 --- a/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.mm +++ b/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.mm @@ -21,7 +21,8 @@ using ClassificationProto = ::mediapipe::Classification; @implementation MPPCategory (Helpers) -+ (MPPCategory *)categoryWithProto:(const ClassificationProto &)classificationProto andIndex:(NSInteger)index { ++ (MPPCategory *)categoryWithProto:(const ClassificationProto &)classificationProto + andIndex:(NSInteger)index { NSString *categoryName; NSString *displayName; @@ -39,7 +40,6 @@ using ClassificationProto = ::mediapipe::Classification; displayName:displayName]; } - + (MPPCategory *)categoryWithProto:(const ClassificationProto &)classificationProto { return [MPPCategory categoryWithProto:classificationProto andIndex:classificationProto.index()]; }