Files
mobile-ios/Rosetta/Core/Utils/NativeBlurHashBridge.h

16 lines
419 B
Objective-C

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/// Objective-C++ bridge exposing native C++ BlurHash decoder to Swift.
@interface NativeBlurHashBridge : NSObject
+ (nullable NSData *)decodeBlurHash:(NSString *)blurHash
width:(NSInteger)width
height:(NSInteger)height
punch:(float)punch;
@end
NS_ASSUME_NONNULL_END