FFmpegKit iOS / macOS / tvOS API  4.4
StreamInformation.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2021 Taner Sener
3  *
4  * This file is part of FFmpegKit.
5  *
6  * FFmpegKit is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * FFmpegKit is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef FFMPEG_KIT_STREAM_INFORMATION_H
21 #define FFMPEG_KIT_STREAM_INFORMATION_H
22 
23 #import <Foundation/Foundation.h>
24 
25 extern NSString* const StreamKeyIndex;
26 extern NSString* const StreamKeyType;
27 extern NSString* const StreamKeyCodec;
28 extern NSString* const StreamKeyCodecLong;
29 extern NSString* const StreamKeyFormat;
30 extern NSString* const StreamKeyWidth;
31 extern NSString* const StreamKeyHeight;
32 extern NSString* const StreamKeyBitRate;
33 extern NSString* const StreamKeySampleRate;
34 extern NSString* const StreamKeySampleFormat;
35 extern NSString* const StreamKeyChannelLayout;
36 extern NSString* const StreamKeySampleAspectRatio;
37 extern NSString* const StreamKeyDisplayAspectRatio;
38 extern NSString* const StreamKeyAverageFrameRate;
39 extern NSString* const StreamKeyRealFrameRate;
40 extern NSString* const StreamKeyTimeBase;
41 extern NSString* const StreamKeyCodecTimeBase;
42 extern NSString* const StreamKeyTags;
43 
47 @interface StreamInformation : NSObject
48 
49 - (instancetype)init:(NSDictionary*)streamDictionary;
50 
56 - (NSNumber*)getIndex;
57 
63 - (NSString*)getType;
64 
70 - (NSString*)getCodec;
71 
77 - (NSString*)getFullCodec;
78 
84 - (NSString*)getFormat;
85 
91 - (NSNumber*)getWidth;
92 
98 - (NSNumber*)getHeight;
99 
105 - (NSString*)getBitrate;
106 
112 - (NSString*)getSampleRate;
113 
119 - (NSString*)getSampleFormat;
120 
126 - (NSString*)getChannelLayout;
127 
133 - (NSString*)getSampleAspectRatio;
134 
140 - (NSString*)getDisplayAspectRatio;
141 
147 - (NSString*)getAverageFrameRate;
148 
154 - (NSString*)getRealFrameRate;
155 
161 - (NSString*)getTimeBase;
162 
168 - (NSString*)getCodecTimeBase;
169 
175 - (NSDictionary*)getTags;
176 
182 - (NSString*)getStringProperty:(NSString*)key;
183 
189 - (NSNumber*)getNumberProperty:(NSString*)key;
190 
196 - (NSDictionary*)getProperties:(NSString*)key;
197 
203 - (NSDictionary*)getAllProperties;
204 
205 @end
206 
207 #endif // FFMPEG_KIT_STREAM_INFORMATION_H
NSString *const StreamKeyTags
NSString *const StreamKeyChannelLayout
NSString *const StreamKeyFormat
NSString *const StreamKeyDisplayAspectRatio
NSString *const StreamKeyType
NSString *const StreamKeyBitRate
NSString *const StreamKeyHeight
NSString *const StreamKeySampleAspectRatio
NSString *const StreamKeyCodec
NSString *const StreamKeyCodecLong
NSString *const StreamKeyWidth
NSString *const StreamKeyTimeBase
NSString *const StreamKeyIndex
NSString *const StreamKeySampleRate
NSString *const StreamKeyRealFrameRate
NSString *const StreamKeySampleFormat
NSString *const StreamKeyCodecTimeBase
NSString *const StreamKeyAverageFrameRate
NSString * getSampleFormat()
NSString * getChannelLayout()
NSString * getRealFrameRate()
NSDictionary * getTags()
NSString * getSampleAspectRatio()
NSString * getDisplayAspectRatio()
NSDictionary * getAllProperties()
NSString * getSampleRate()
NSString * getAverageFrameRate()
NSString * getFullCodec()
NSString * getCodecTimeBase()