HmsBitMap.h 830 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. //
  3. // Copyright (c) Huawei Technologies Co., Ltd. 2020-2028. All rights reserved.
  4. //
  5. #import <UIKit/UIKit.h>
  6. #import <Foundation/Foundation.h>
  7. #import "HmsScanFormat.h"
  8. #import <AVFoundation/AVFoundation.h>
  9. @interface HmsBitMap : NSObject
  10. /*
  11. get result from the UIImage
  12. */
  13. +(NSDictionary *)bitMapForImage:(UIImage *)image withOptions:(HmsScanOptions *)options;
  14. /*
  15. get multiple result from the UIImage
  16. */
  17. + (NSArray *)multiDecodeBitMapForImage:(UIImage *)image withOptions:(HmsScanOptions *)options;
  18. /*
  19. get result from the sampleBuffer
  20. */
  21. +(NSDictionary *)bitMapForSampleBuffer:(CMSampleBufferRef)sampleBuffer withOptions:(HmsScanOptions *)options;
  22. /*
  23. get multiple result from the sampleBuffer
  24. */
  25. +(NSArray *)multiDecodeBitMapForSampleBuffer:(CMSampleBufferRef)sampleBuffer withOptions:(HmsScanOptions *)options;
  26. @end