TBDecoder+Debug.h 589 B

123456789101112131415161718192021222324252627
  1. //
  2. // Created by yinhai.tyh on 2017/7/10.
  3. //
  4. #ifndef MA_SDK_CORE_DECODEDEBUG_H_H
  5. #define MA_SDK_CORE_DECODEDEBUG_H_H
  6. #import <Foundation/Foundation.h>
  7. #import <CoreGraphics/CoreGraphics.h>
  8. #import "TBDecoder.h"
  9. typedef struct _DecodeInfo{
  10. NSInteger triedLength,possibleLength,guessLength;
  11. CGPoint triedCorners[200],possibleCorners[200],guessCorners[200];
  12. }_DecodeInfo;
  13. @interface TBDecoder (DecodeDebug)
  14. + (_DecodeInfo *)getDecodeInfo:(_DecodeInfo*) info;
  15. + (UIImage *)imageFromLumaData:(void *)lumaData W:(size_t)w H:(size_t)h;
  16. @end
  17. #endif //MA_SDK_CORE_DECODEDEBUG_H_H