TuSDKAssetVideoTrackPixelBufferOutput Class Reference

Inherits from NSObject
Declared in TuSDKAssetVideoTrackPixelBufferOutput.h

Overview

读取视频轨道像素数据

– initWithAsset:outputSettings:

初始化 TuSDKAssetVideoTrackPixelBufferOutput

- (instancetype _Nullable)initWithAsset:(AVAsset *_Nonnull)asset outputSettings:(TuSDKAssetVideoTrackPixelBufferOutputSettings *_Nullable)outputSettings

Parameters

asset

资产文件

outputSettings

输出设置

Return Value

TuSDKAssetVideoTrackPixelBufferOutput

Declared In

TuSDKAssetVideoTrackPixelBufferOutput.h

  videoComposition

Indicates the video composition settings to be applied during playback.

@property (nonatomic, copy, nullable) AVVideoComposition *videoComposition

Availability

v3.0.1

Declared In

TuSDKAssetVideoTrackPixelBufferOutput.h

  delegate

委托时间

@property (nonatomic, weak) id<TuSDKAssetVideoTrackPixelBufferOutputDelegate> delegate

Availability

v3.4.1

Declared In

TuSDKAssetVideoTrackPixelBufferOutput.h

– hasNewPixelBufferForItemTime:

Query if any new video output is available for an item time.

- (BOOL)hasNewPixelBufferForItemTime:(CMTime)itemTime

Return Value

A BOOL indicating if there is newer output.

Declared In

TuSDKAssetVideoTrackPixelBufferOutput.h

– copyPixelBufferForItemTime:itemTimeForDisplay:completionHandler:

Retrieves an image that is appropriate for display at the specified item time, and marks the image as acquired.

- (void)copyPixelBufferForItemTime:(CMTime)seekTime itemTimeForDisplay:(nullable CMTime *)outItemTimeForDisplay completionHandler:(TuSDKAssetVideoTrackPixelBufferOutputCompletionHandler)completionHandler

Declared In

TuSDKAssetVideoTrackPixelBufferOutput.h

– destory

取消所有输出

- (void)destory

Declared In

TuSDKAssetVideoTrackPixelBufferOutput.h