CjVideoCapture
CjVideoCaptureInterface.h
Go to the documentation of this file.
1 //
2 // CjVideoCaptureInterface.h
3 // CjVideoCapture
4 //
5 // Created by CJ on 5/9/19.
6 // Copyright © 2019 Seajei. All rights reserved.
7 //
8 
15 #import <Foundation/Foundation.h>
16 #import <UIKit/UIKit.h>
17 
18 NS_ASSUME_NONNULL_BEGIN
19 
23 typedef NS_ENUM(NSInteger, H264NaluType) {
28 };
29 
33 typedef NS_ENUM(NSInteger, Resolution) {
34  ResolutionNone,
40 };
41 
42 @protocol CjVideoCaptureDelegate;
43 
44 @interface CjVideoCapture : NSObject
45 
50 - (id)initWithResolution:(Resolution)resolution;
51 
55 - (void)start;
56 
60 - (void)stop;
61 
67 - (void)changeToResolution:(Resolution)resolution;
68 
73 - (void)setPreviewView:(UIView *)view;
74 
75 @property (nonatomic, weak) id<CjVideoCaptureDelegate> delegate;
76 
77 @end
78 
79 @protocol CjVideoCaptureDelegate <NSObject>
80 
86 - (void)h264NaluCaptured:(NSData *)nalu naluType:(H264NaluType)naluType;
87 
88 @end
89 
90 NS_ASSUME_NONNULL_END
640 x 360 pixels
Definition: CjVideoCaptureInterface.h:36
P-frame.
Definition: CjVideoCaptureInterface.h:27
Sequence parameter set.
Definition: CjVideoCaptureInterface.h:24
Definition: CjVideoCaptureInterface.h:44
void stop()
Stop capturing video.
Picture parameter set.
Definition: CjVideoCaptureInterface.h:25
852 x 480 pixels
Definition: CjVideoCaptureInterface.h:37
432 x 240 pixels
Definition: CjVideoCaptureInterface.h:35
void start()
Start capturing video.
1280 x 720 pixels
Definition: CjVideoCaptureInterface.h:38
1920 x 1080 pixels
Definition: CjVideoCaptureInterface.h:39
I-frame / keyframe.
Definition: CjVideoCaptureInterface.h:26
Definition: CjVideoCaptureInterface.h:79
H264NaluType
H.264 NALU type.
Definition: CjVideoCaptureInterface.h:23
Resolution
Resolution of the video to be captured.
Definition: CjVideoCaptureInterface.h:33