File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,21 +40,21 @@ void _tic(void); // not thread safe
40
40
double _toc (void );
41
41
double _tocp (void ); // with printf
42
42
43
- typedef enum {
43
+ typedef enum _CameraViewControllerType {
44
44
BufferTypeMask = 0x0f ,
45
45
BufferGrayColor = 0 ,
46
46
BufferRGBColor = 1 ,
47
47
}CameraViewControllerType;
48
48
49
- typedef enum {
49
+ typedef enum _CameraViewControllerSize {
50
50
BufferSizeMask = 0xf0 ,
51
51
BufferSize1280x720 = 0 << 4 ,
52
52
BufferSize640x480 = 1 << 4 ,
53
53
BufferSize480x360 = 2 << 4 ,
54
54
BufferSize192x144 = 3 << 4 ,
55
55
}CameraViewControllerSize;
56
56
57
- typedef enum {
57
+ typedef enum _CameraViewControllerMultiThreading {
58
58
MultiThreadingMask = 0x100 ,
59
59
NotSupportMultiThreading = 0 << 8 ,
60
60
SupportMultiThreading = 1 << 8 ,
@@ -86,7 +86,7 @@ typedef enum {
86
86
double fpsTimeStamp;
87
87
BOOL canRotate;
88
88
}
89
- - (id )initWithCameraViewControllerType : (int )value ;
89
+ - (id )initWithCameraViewControllerType : (CameraViewControllerType )value ;
90
90
- (void )startToMeasureFPS ;
91
91
@property (nonatomic , readonly ) CGSize bufferSize;
92
92
@property (nonatomic , assign ) id <CameraViewControllerDelegate> delegate;
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ - (void)prepareWithCameraViewControllerType:(CameraViewControllerType)value {
173
173
previewLayer = [AVCaptureVideoPreviewLayer layerWithSession: session];
174
174
}
175
175
176
- - (id )initWithCameraViewControllerType : (int )value {
176
+ - (id )initWithCameraViewControllerType : (CameraViewControllerType )value {
177
177
self = [super initWithNibName: nil bundle: nil ];
178
178
if (self) {
179
179
// Custom initialization
You can’t perform that action at this time.
0 commit comments