StreamInformation.h
Go to the documentation of this file.
/*
* Copyright (c) 2018-2021 Taner Sener
*
* This file is part of FFmpegKit.
*
* FFmpegKit is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FFmpegKit is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FFMPEG_KIT_STREAM_INFORMATION_H
#define FFMPEG_KIT_STREAM_INFORMATION_H
#import <Foundation/Foundation.h>
extern NSString* const StreamKeyIndex;
extern NSString* const StreamKeyType;
extern NSString* const StreamKeyCodec;
extern NSString* const StreamKeyCodecLong;
extern NSString* const StreamKeyFormat;
extern NSString* const StreamKeyWidth;
extern NSString* const StreamKeyHeight;
extern NSString* const StreamKeyBitRate;
extern NSString* const StreamKeySampleRate;
extern NSString* const StreamKeySampleFormat;
extern NSString* const StreamKeyChannelLayout;
extern NSString* const StreamKeySampleAspectRatio;
extern NSString* const StreamKeyDisplayAspectRatio;
extern NSString* const StreamKeyAverageFrameRate;
extern NSString* const StreamKeyRealFrameRate;
extern NSString* const StreamKeyTimeBase;
extern NSString* const StreamKeyCodecTimeBase;
extern NSString* const StreamKeyTags;
@interface StreamInformation : NSObject
- (instancetype)init:(NSDictionary*)streamDictionary;
- (NSNumber*)getIndex;
- (NSString*)getType;
- (NSString*)getCodec;
- (NSString*)getFullCodec;
- (NSString*)getFormat;
- (NSNumber*)getWidth;
- (NSNumber*)getHeight;
- (NSString*)getBitrate;
- (NSString*)getSampleRate;
- (NSString*)getSampleFormat;
- (NSString*)getChannelLayout;
- (NSString*)getSampleAspectRatio;
- (NSString*)getDisplayAspectRatio;
- (NSString*)getAverageFrameRate;
- (NSString*)getRealFrameRate;
- (NSString*)getTimeBase;
- (NSString*)getCodecTimeBase;
- (NSDictionary*)getTags;
- (NSString*)getStringProperty:(NSString*)key;
- (NSNumber*)getNumberProperty:(NSString*)key;
- (NSDictionary*)getProperties:(NSString*)key;
- (NSDictionary*)getAllProperties;
@end
#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 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 getFullCodec]
NSString * getFullCodec()
Definition: StreamInformation.m:71
-[StreamInformation getType]
NSString * getType()
Definition: StreamInformation.m:63
-[StreamInformation getCodecTimeBase]
NSString * getCodecTimeBase()
Definition: StreamInformation.m:123
-[StreamInformation getIndex]
NSNumber * getIndex()
Definition: StreamInformation.m:59