FFmpegKit iOS / macOS / tvOS API 4.5
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
25extern NSString* const StreamKeyIndex;
26extern NSString* const StreamKeyType;
27extern NSString* const StreamKeyCodec;
28extern NSString* const StreamKeyCodecLong;
29extern NSString* const StreamKeyFormat;
30extern NSString* const StreamKeyWidth;
31extern NSString* const StreamKeyHeight;
32extern NSString* const StreamKeyBitRate;
33extern NSString* const StreamKeySampleRate;
34extern NSString* const StreamKeySampleFormat;
35extern NSString* const StreamKeyChannelLayout;
36extern NSString* const StreamKeySampleAspectRatio;
37extern NSString* const StreamKeyDisplayAspectRatio;
38extern NSString* const StreamKeyAverageFrameRate;
39extern NSString* const StreamKeyRealFrameRate;
40extern NSString* const StreamKeyTimeBase;
41extern NSString* const StreamKeyCodecTimeBase;
42extern 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- (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 * getCodecLong()
NSString * getSampleAspectRatio()
NSString * getDisplayAspectRatio()
NSDictionary * getAllProperties()
NSString * getSampleRate()
NSString * getAverageFrameRate()
NSString * getCodecTimeBase()