| Streamaxia Open SDK 3.2

AXRecorderDefines.h
1 //
2 // AXRecorderDefines.h
3 // StreamaxiaSDK
4 //
5 // Created by Mihaita Babici on 7/15/16.
6 // Copyright © 2016 Agilio. All rights reserved.
7 //
8
9 @import Foundation;
10 @import CoreGraphics;
11
17 typedef NS_ENUM(NSInteger, AXAudioSampleRate) {
18 AXAudioSampleRate44100Hz = 44100
19 };
20
28 extern NSString *AXAudioSampleRateAsString(AXAudioSampleRate sampleRate);
29
38 typedef NS_ENUM(NSInteger, AXFrameRate) {
39 AXFrameRate15fps = 15,
40 AXFrameRate24fps = 24,
41 AXFrameRate30fps = 30,
42 AXFrameRate60fps = 60,
43 AXFrameRate120fps = 120,
44 AXFrameRate240fps = 240
45 };
46
54 extern NSString *AXFrameRateAsString(AXFrameRate frameRate);
55
81 typedef NS_ENUM(NSInteger, AXVideoFrameResolution) {
82 AXVideoFrameResolutionCustom = 0,
83 AXVideoFrameResolutionStandard144p,
84 AXVideoFrameResolutionStandard240p,
85 AXVideoFrameResolutionStandardWide240p,
86 AXVideoFrameResolutionStandard288p,
87 AXVideoFrameResolutionStandard360p,
88 AXVideoFrameResolutionStandardWide360p,
89 AXVideoFrameResolutionStandard480p,
90 AXVideoFrameResolutionStandardWide480p,
91 AXVideoFrameResolutionStandard720p,
92 AXVideoFrameResolutionStandard1080p,
93 AXVideoFrameResolutionStandard1440p,
94 AXVideoFrameResolutionStandard2160p,
95 AXVideoFrameResolutionStandard4320p,
96 AXVideoFrameResolutionSize192x144,
97 AXVideoFrameResolutionSize960x540,
98 AXVideoFrameResolutionSize320x240 = AXVideoFrameResolutionStandard240p,
99 AXVideoFrameResolutionSize352x288 = AXVideoFrameResolutionStandard288p,
100 AXVideoFrameResolutionSize640x480 = AXVideoFrameResolutionStandard480p,
101 AXVideoFrameResolutionSize1280x720 = AXVideoFrameResolutionStandard720p,
102 AXVideoFrameResolutionSize1920x1080 = AXVideoFrameResolutionStandard1080p
103 };
104
112 extern NSString *AXVideoFrameResolutionAsString(AXVideoFrameResolution resolution);
113
121 typedef NS_ENUM(NSInteger, AXVideoOrientation) {
122 AXVideoOrientationPortrait = 0,
123 AXVideoOrientationPortraitUpsideDown,
124 AXVideoOrientationLandscapeRight,
125 AXVideoOrientationLandscapeLeft,
126 AXVideoOrientationAutorotate,
127 };
128
136 extern NSString *AXVideoOrientationAsString(AXVideoOrientation orientation);
137
144 typedef NS_ENUM(NSInteger, AXCamera) {
145 AXCameraBack,
146 AXCameraFront
147 };
148
156 extern NSString *AXCameraAsString(AXCamera camera);
157
165 typedef NS_ENUM(NSInteger, AXRecordingMode) {
166 AXRecordingModeAudioAndVideo = 0,
167 AXRecordingModeAudioOnly,
168 AXRecordingModeVideoOnly
169 };
170
178 extern NSString *AXRecordingModeAsString(AXRecordingMode mode);
179
187 typedef NS_ENUM(NSInteger, AXTorchMode) {
188 AXTorchModeOff = 0,
189 AXTorchModeOn,
190 AXTorchModeAuto
191 };
192
200 extern NSString *AXTorchModeAsString(AXTorchMode mode);
201
205 typedef struct {
209 NSInteger width;
213 NSInteger height;
214 } AXVideoFrameSize;
215
224 extern AXVideoFrameSize AXVideoFrameSizeMake(NSInteger width, NSInteger height);
225
233 extern AXVideoFrameSize AXVideoFrameSizeRotated(AXVideoFrameSize frameSize);
234
242 extern AXVideoFrameSize AXVideoFrameSizeWithCGSize(CGSize size);
243
251 extern CGSize CGSizeWithAXVideoFrameSize(AXVideoFrameSize frameSize);
252
253 @interface AXRecorderDefines : NSObject
254
255 @end
AXVideoFrameSize::width
NSInteger width
Definition: AXRecorderDefines.h:209
AXRecorderDefines
Definition: AXRecorderDefines.h:253
AXVideoFrameSize::height
NSInteger height
Definition: AXRecorderDefines.h:213
AXVideoFrameSize
Definition: AXRecorderDefines.h:205