MeiCam SDK For iOS  3.11.1
NvsAVFileInfo.h
Go to the documentation of this file.
1 //================================================================================
2 //
3 // (c) Copyright China Digital Video (Beijing) Limited, 2017. All rights reserved.
4 //
5 // This code and information is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the implied
7 // warranties of merchantability and/or fitness for a particular purpose.
8 //
9 //--------------------------------------------------------------------------------
10 // Birth Date: Jan 3. 2017
11 // Author: NewAuto video team
12 //================================================================================
13 
14 #pragma once
15 
16 #import "NvsCommonDef.h"
17 #import <Foundation/NSObject.h>
18 
33 NVS_EXPORT @interface NvsAVFileInfo : NSObject
34 
35 @property (readonly) NvsAVFileType avFileType;
36 @property (readonly) int64_t duration;
37 @property (readonly) uint64_t dataRate;
38 @property (readonly) unsigned int videoStreamCount;
39 @property (readonly) unsigned int audioStreamCount;
40 
52 - (int64_t)getVideoStreamDuration:(unsigned int)videoStreamIndex;
53 
64 - (NvsSize)getVideoStreamDimension:(unsigned int)videoStreamIndex;
65 
77 - (NvsRational)getVideoStreamPixelAspectRatio:(unsigned int)videoStreamIndex;
78 
90 - (NvsRational)getVideoStreamFrameRate:(unsigned int)videoStreamIndex;
91 
102 - (NvsVideoRotation)getVideoStreamRotation:(unsigned int)videoStreamIndex;
103 
114 - (unsigned int)getVideoStreamComponentBitCount:(unsigned int)videoStreamIndex;
115 
126 - (NvsVideoCodecType)getVideoStreamCodecType:(unsigned int)videoStreamIndex;
127 
128 
139 - (int)getVideoCodecProfile:(unsigned int)videoStreamIndex;
140 
151 - (int)getVideoCodecLevel:(unsigned int)videoStreamIndex;
152 
165 - (NvsVideoColorTransfer)getVideoStreamColorTranfer:(unsigned int)videoStreamIndex;
166 
179 - (NvsVideoHDRType)getVideoStreamHDRType:(unsigned int)videoStreamIndex;
180 
192 - (int64_t)getAudioStreamDuration:(unsigned int)audioStreamIndex;
193 
204 - (unsigned int)getAudioStreamSampleRate:(unsigned int)audioStreamIndex;
205 
216 - (unsigned int)getAudioStreamChannelCount:(unsigned int)audioStreamIndex;
217 
228 - (BOOL)getAudioStreamCodecSupport:(unsigned int)audioStreamIndex;
229 @end
230 
NvsAVFileInfo::dataRate
uint64_t dataRate
Data rate.
Definition: NvsAVFileInfo.h:37
NvsAVFileInfo::avFileType
NvsAVFileType avFileType
File type.
Definition: NvsAVFileInfo.h:35
NvsRational
Rational value.
Definition: NvsCommonDef.h:270
NvsAVFileInfo
Audio and video file information.
Definition: NvsAVFileInfo.h:34
NvsVideoCodecType
NvsVideoCodecType
Video codec type.
Definition: NvsCommonDef.h:79
NvsAVFileType
NvsAVFileType
File type.
Definition: NvsCommonDef.h:51
NvsVideoRotation
NvsVideoRotation
Video rotation.
Definition: NvsCommonDef.h:65
NvsAVFileInfo::audioStreamCount
unsigned int audioStreamCount
Audio stream count.
Definition: NvsAVFileInfo.h:39
NvsVideoColorTransfer
NvsVideoColorTransfer
Color Transfer Characteristic.
Definition: NvsCommonDef.h:92
NvsAVFileInfo::videoStreamCount
unsigned int videoStreamCount
Video stream count.
Definition: NvsAVFileInfo.h:38
NvsVideoHDRType
NvsVideoHDRType
HDR type.
Definition: NvsCommonDef.h:105
NVS_EXPORT
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NvsCommonDef.h
NvsSize
Size.
Definition: NvsCommonDef.h:281
NvsAVFileInfo::duration
int64_t duration
Duration(in microseconds)
Definition: NvsAVFileInfo.h:36