TuSDKMediaTimeSliceEntity Class Reference
Inherits from | TuSDKMediaTimelineSlice : NSObject |
---|---|
Declared in | TuSDKMediaTimeSliceEntity.h |
– initWithSlice:
根据时间片段初始化实体计算对象
- (instancetype)initWithSlice:(TuSDKMediaTimelineSlice *)slice
Parameters
slice |
时间片段 |
---|
Return Value
TuSDKMediaTimeSliceEntity
Declared In
TuSDKMediaTimeSliceEntity.h
– initWithSlice:canSupportedReverseSlice:
根据时间片段初始化实体计算对象
- (instancetype)initWithSlice:(TuSDKMediaTimelineSlice *)slice canSupportedReverseSlice:(BOOL)canSupportedReverseSlice
Parameters
slice |
时间片段 |
---|
Return Value
TuSDKMediaTimeSliceEntity
Declared In
TuSDKMediaTimeSliceEntity.h
origSlice
原始切片信息
@property (nonatomic, readonly) TuSDKMediaTimelineSlice *origSlice
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
previous
前一个片段
@property (nonatomic, strong) TuSDKMediaTimeSliceEntity *previous
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
next
前一个片段
@property (nonatomic, weak) TuSDKMediaTimeSliceEntity *next
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
outputStartTime
输出的真实开始时间
@property (nonatomic, readonly) CMTime outputStartTime
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
outputEndTime
输出的真实结束时间
@property (nonatomic, readonly) CMTime outputEndTime
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
outputDuraiton
最终持续时间
@property (nonatomic, readonly) CMTime outputDuraiton
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
realEndOutputSampleBufferTime
最后一帧输出的时间戳。 设置的时间范围和实际分离的数据范围存在误差
@property (nonatomic) CMTime realEndOutputSampleBufferTime
Availability
3.0
Declared In
TuSDKMediaTimeSliceEntity.h
– overviewOutputTime:frameInterval:
检查输出时间在当前片段的相对位置
- (NSComparisonResult)overviewOutputTime:(CMTime)outputTime frameInterval:(CMTime)frameInterval
Parameters
frameInterval |
帧间隔 |
---|---|
outputTIme |
输出时间 |
Return Value
NSComparisonResult NSOrderedAscending : outputTIme 在当前片段之前 NSOrderedDescending: outputTIme 在当前片段之后 NSOrderedSame : outputTIme 在当前片段
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
– overviewInputTime:frameInterval:
检查输入时间是否在该时间切片内
- (NSComparisonResult)overviewInputTime:(CMTime)inputTime frameInterval:(CMTime)frameInterval
Parameters
inputTime |
输入时间 |
---|---|
frameInterval |
帧间隔 |
Return Value
NSComparisonResult NSOrderedAscending : inputTime 在当前片段之前 NSOrderedDescending: inputTime 在当前片段之后 NSOrderedSame : inputTime 在当前片段
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
– containsInputTime:
检查输入时间是否在该时间切片内
- (BOOL)containsInputTime:(CMTime)inputTime
Parameters
inputTime |
输入时间 |
---|---|
frameInterval |
帧间隔 |
Return Value
NSComparisonResult NSOrderedAscending : inputTime 在当前片段之前 NSOrderedDescending: inputTime 在当前片段之后 NSOrderedSame : inputTime 在当前片段
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
– calculateInputTimeWithOutputTime:
计算输出时间所在的输入时间
- (CMTime)calculateInputTimeWithOutputTime:(CMTime)outputTime
Parameters
outputTime |
输出时间 |
---|
Return Value
输入时间 CMTime
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
– calculateOutputWithInputTime:
根据输入时间计算输出时间
- (CMTime)calculateOutputWithInputTime:(CMTime)inputTime
Parameters
inputTime |
输入时间 |
---|
Return Value
输入时间 CMTime
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h
– fixSliceEntry:
按视频时间修正计算对象
- (void)fixSliceEntry:(CMTime)inputDuration
Parameters
inputDuration |
最大输入持续时间 |
---|
Availability
v3.0
Declared In
TuSDKMediaTimeSliceEntity.h