No public description

PiperOrigin-RevId: 563163901
This commit is contained in:
MediaPipe Team 2023-09-06 11:26:03 -07:00 committed by Copybara-Service
parent 967007f250
commit e58ec2d039

View File

@ -39,16 +39,16 @@ typedef NS_ENUM(NSUInteger, MPPRunningMode) {
} NS_SWIFT_NAME(RunningMode);
NS_INLINE NSString *MPPRunningModeDisplayName(MPPRunningMode runningMode) {
if (runningMode > MPPRunningModeLiveStream) {
switch (runningMode) {
case MPPRunningModeImage:
return @"Image";
case MPPRunningModeVideo:
return @"Video";
case MPPRunningModeLiveStream:
return @"Live Stream";
default:
return nil;
}
NSString *displayNameMap[MPPRunningModeLiveStream + 1] = {
[MPPRunningModeImage] = @"Image",
[MPPRunningModeVideo] = @"Video",
[MPPRunningModeLiveStream] = @"Live Stream"};
return displayNameMap[runningMode];
}
NS_ASSUME_NONNULL_END