Skip to content

Commit 18458f0

Browse files
committed
Revised 3 enums' typedef.
1 parent 0406840 commit 18458f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CameraViewController.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@ void _tic(void); // not thread safe
4040
double _toc(void);
4141
double _tocp(void); // with printf
4242

43-
typedef enum {
43+
typedef enum _CameraViewControllerType{
4444
BufferTypeMask = 0x0f,
4545
BufferGrayColor = 0,
4646
BufferRGBColor = 1,
4747
}CameraViewControllerType;
4848

49-
typedef enum {
49+
typedef enum _CameraViewControllerSize{
5050
BufferSizeMask = 0xf0,
5151
BufferSize1280x720 = 0 << 4,
5252
BufferSize640x480 = 1 << 4,
5353
BufferSize480x360 = 2 << 4,
5454
BufferSize192x144 = 3 << 4,
5555
}CameraViewControllerSize;
5656

57-
typedef enum {
57+
typedef enum _CameraViewControllerMultiThreading{
5858
MultiThreadingMask = 0x100,
5959
NotSupportMultiThreading = 0 << 8,
6060
SupportMultiThreading = 1 << 8,
@@ -86,7 +86,7 @@ typedef enum {
8686
double fpsTimeStamp;
8787
BOOL canRotate;
8888
}
89-
- (id)initWithCameraViewControllerType:(int)value;
89+
- (id)initWithCameraViewControllerType:(CameraViewControllerType)value;
9090
- (void)startToMeasureFPS;
9191
@property (nonatomic, readonly) CGSize bufferSize;
9292
@property (nonatomic, assign) id <CameraViewControllerDelegate> delegate;

CameraViewController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ - (void)prepareWithCameraViewControllerType:(CameraViewControllerType)value {
173173
previewLayer = [AVCaptureVideoPreviewLayer layerWithSession:session];
174174
}
175175

176-
- (id)initWithCameraViewControllerType:(int)value {
176+
- (id)initWithCameraViewControllerType:(CameraViewControllerType)value {
177177
self = [super initWithNibName:nil bundle:nil];
178178
if (self) {
179179
// Custom initialization

0 commit comments

Comments
 (0)