| FFmpegKit iOS / macOS / tvOS API 6.0

Loading...
Searching...
No Matches
StreamInformation.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018-2022 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*)getCodecLong;
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- (id)getProperty:(NSString*)key;
197
203- (NSDictionary*)getAllProperties;
204
205@end
206
207#endif // FFMPEG_KIT_STREAM_INFORMATION_H
StreamKeyTags
NSString *const StreamKeyTags
Definition StreamInformation.m:39
StreamKeyChannelLayout
NSString *const StreamKeyChannelLayout
Definition StreamInformation.m:32
StreamKeyFormat
NSString *const StreamKeyFormat
Definition StreamInformation.m:26
StreamKeyDisplayAspectRatio
NSString *const StreamKeyDisplayAspectRatio
Definition StreamInformation.m:34
StreamKeyType
NSString *const StreamKeyType
Definition StreamInformation.m:23
StreamKeyBitRate
NSString *const StreamKeyBitRate
Definition StreamInformation.m:29
StreamKeyHeight
NSString *const StreamKeyHeight
Definition StreamInformation.m:28
StreamKeySampleAspectRatio
NSString *const StreamKeySampleAspectRatio
Definition StreamInformation.m:33
StreamKeyCodec
NSString *const StreamKeyCodec
Definition StreamInformation.m:24
StreamKeyCodecLong
NSString *const StreamKeyCodecLong
Definition StreamInformation.m:25
StreamKeyWidth
NSString *const StreamKeyWidth
Definition StreamInformation.m:27
StreamKeyTimeBase
NSString *const StreamKeyTimeBase
Definition StreamInformation.m:37
StreamKeyIndex
NSString *const StreamKeyIndex
Definition StreamInformation.m:22
StreamKeySampleRate
NSString *const StreamKeySampleRate
Definition StreamInformation.m:30
StreamKeyRealFrameRate
NSString *const StreamKeyRealFrameRate
Definition StreamInformation.m:36
StreamKeySampleFormat
NSString *const StreamKeySampleFormat
Definition StreamInformation.m:31
StreamKeyCodecTimeBase
NSString *const StreamKeyCodecTimeBase
Definition StreamInformation.m:38
StreamKeyAverageFrameRate
NSString *const StreamKeyAverageFrameRate
Definition StreamInformation.m:35
StreamInformation
Definition StreamInformation.h:48
-[StreamInformation getWidth]
NSNumber * getWidth()
Definition StreamInformation.m:79
-[StreamInformation getSampleFormat]
NSString * getSampleFormat()
Definition StreamInformation.m:95
-[StreamInformation getChannelLayout]
NSString * getChannelLayout()
Definition StreamInformation.m:99
-[StreamInformation getRealFrameRate]
NSString * getRealFrameRate()
Definition StreamInformation.m:115
-[StreamInformation getTags]
NSDictionary * getTags()
Definition StreamInformation.m:127
-[StreamInformation getTimeBase]
NSString * getTimeBase()
Definition StreamInformation.m:119
-[StreamInformation getHeight]
NSNumber * getHeight()
Definition StreamInformation.m:83
-[StreamInformation getCodec]
NSString * getCodec()
Definition StreamInformation.m:67
-[StreamInformation getCodecLong]
NSString * getCodecLong()
Definition StreamInformation.m:71
-[StreamInformation getBitrate]
NSString * getBitrate()
Definition StreamInformation.m:87
-[StreamInformation getSampleAspectRatio]
NSString * getSampleAspectRatio()
Definition StreamInformation.m:103
-[StreamInformation getDisplayAspectRatio]
NSString * getDisplayAspectRatio()
Definition StreamInformation.m:107
-[StreamInformation getFormat]
NSString * getFormat()
Definition StreamInformation.m:75
-[StreamInformation getAllProperties]
NSDictionary * getAllProperties()
Definition StreamInformation.m:158
-[StreamInformation getSampleRate]
NSString * getSampleRate()
Definition StreamInformation.m:91
-[StreamInformation getAverageFrameRate]
NSString * getAverageFrameRate()
Definition StreamInformation.m:111
-[StreamInformation getType]
NSString * getType()
Definition StreamInformation.m:63
-[StreamInformation getCodecTimeBase]
NSString * getCodecTimeBase()
Definition StreamInformation.m:123
-[StreamInformation getIndex]
NSNumber * getIndex()
Definition StreamInformation.m:59