美摄SDK For iOS  3.14.0
NvsAVFileInfo.h
浏览该文件的文档.
1 //================================================================================
2 //
3 // (c) Copyright Meishe Co. Ltd, 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: Meishe 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
数据速率
Definition: NvsAVFileInfo.h:37
NvsAVFileInfo::avFileType
NvsAVFileType avFileType
文件类型
Definition: NvsAVFileInfo.h:35
NvsRational
比例值
Definition: NvsCommonDef.h:339
NvsAVFileInfo
音视频文件信息
Definition: NvsAVFileInfo.h:34
NvsVideoCodecType
NvsVideoCodecType
视频编码类型
Definition: NvsCommonDef.h:79
NvsAVFileType
NvsAVFileType
文件类型
Definition: NvsCommonDef.h:51
NvsVideoRotation
NvsVideoRotation
视频旋转角度
Definition: NvsCommonDef.h:65
NvsAVFileInfo::audioStreamCount
unsigned int audioStreamCount
音频流数目
Definition: NvsAVFileInfo.h:39
NvsVideoColorTransfer
NvsVideoColorTransfer
颜色转换曲线
Definition: NvsCommonDef.h:92
NvsAVFileInfo::videoStreamCount
unsigned int videoStreamCount
视频流数目
Definition: NvsAVFileInfo.h:38
NvsVideoHDRType
NvsVideoHDRType
HDR 视频类型
Definition: NvsCommonDef.h:105
NVS_EXPORT
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NvsCommonDef.h
NvsSize
尺寸
Definition: NvsCommonDef.h:350
NvsAVFileInfo::duration
int64_t duration
时长(单位微秒)
Definition: NvsAVFileInfo.h:36