OliveappPhotoImage.h 970 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // PhotoImage.h
  3. //
  4. //
  5. // Created by Xiaoyang Lin on 5/1/15.
  6. // Copyright (c) 2015 Oliveapp. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <Foundation/Foundation.h>
  10. @interface OliveappPhotoImage : NSObject
  11. - (id)initWithCIImage: (CIImage*) ciImage
  12. withFrameId: (int) frameId
  13. withCaptureTimestamp: (long long) captureTimestamp
  14. withWidth: (size_t) width
  15. withHeight: (size_t) height
  16. withRowWidth: (size_t) rowSize;
  17. - (NSData*) getImageContent;
  18. @property NSData * imageContent;
  19. @property CIImage* ciImage;
  20. @property int frameId;
  21. @property long long captureTimestamp;
  22. @property size_t imageWidth;
  23. @property size_t imageHeight;
  24. @property size_t imageRowSize;
  25. + (CGRect) getCropWithWidth: (unsigned long) imageWidth
  26. withHeight: (unsigned long) imageHeight
  27. withApertureView: (UIView *) apertureView
  28. withCameraPreviewSuperViewAdapter: (UIView *) cameraPreviewSuperViewAdapter;
  29. @end