ZXIBarcodeReader.h 972 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2022 KURZ Digital Solutions GmbH
  2. //
  3. // SPDX-License-Identifier: Apache-2.0
  4. #import <Foundation/Foundation.h>
  5. #import <CoreGraphics/CoreGraphics.h>
  6. #import <CoreImage/CoreImage.h>
  7. #import "ZXIResult.h"
  8. #import "ZXIReaderOptions.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface ZXIBarcodeReader : NSObject
  11. @property(nonatomic, strong) ZXIReaderOptions *options;
  12. -(instancetype)initWithOptions:(ZXIReaderOptions*)options;
  13. -(nullable NSArray<ZXIResult *> *)readCIImage:(nonnull CIImage *)image
  14. error:(NSError *__autoreleasing _Nullable *)error;
  15. -(nullable NSArray<ZXIResult *> *)readCGImage:(nonnull CGImageRef)image
  16. error:(NSError *__autoreleasing _Nullable *)error;
  17. -(nullable NSArray<ZXIResult *> *)readCVPixelBuffer:(nonnull CVPixelBufferRef)pixelBuffer
  18. error:(NSError *__autoreleasing _Nullable *)error;
  19. @end
  20. NS_ASSUME_NONNULL_END