iOS11 VideoToolbox硬解HEVC【待整理】
iOS11支持
iPhone机型 | 解码 | 编码 |
---|---|---|
iPhone 7 Plus | 硬 软 | 硬 |
iPhone 7 | 硬 软 | 硬 |
iPhone 6s Plus | 硬 软 | |
iPhone 6s | 硬 软 | |
iPhone SE | 硬 软 | |
iPhone 6 Plus | 软 | |
iPhone 6 | 软 | |
iPhone 5s | 软 |
硬解流程
具体处理
format desc
视频文件的“格式描述”(CMFormatDescriptionRef
)可通过以下两种方法创建: CMVideoFormatDescriptionCreate
CMVideoFormatDescriptionCreateFromHEVCParameterSets
CMVideoFormatDescriptionCreateFromH264ParameterSets
前者接受extradata,后者接受参数集(Parameter Sets)。
格式兼容
参考2014 wwdc的介绍,增加Elementary Stream格式(Annex-B)的转换支持。
hvcC格式处理
extradata size check
NAL size 3 to 4 check
annex-b格式处理
参14496-15,转hvcC ff_isom_write_hvcc
硬解性能
待补充。。。