Instance Method

maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan:)

Determines whether a sample later in decode order can have a presentation timestamp earlier than that of the specified sample cursor.

Declaration

func maySamplesWithLaterDecodeTimeStampsHavePresentationTimeStamps(earlierThan cursor: AVSampleCursor) -> Bool

Parameters

cursor

An instance of AVSampleCursor with which to test the sample reordering boundary.

Return Value

true if it's possible for any sample later in decode order than the sample at the position of the receiver can have a presentation timestamp earlier than that of the specified sample cursor; otherwise, false.

Discussion

If the receiver and cursor reference different sequences of samples, as when they're created by different instances of AVAssetTrack, results are undefined.

See Also

Getting Samples

func maySamplesWithEarlierDecodeTimeStampsHavePresentationTimeStamps(laterThan: AVSampleCursor) -> Bool

Determines whether a sample earlier in decode order can have a presentation timestamp later than that of the specified sample cursor.

var samplesRequiredForDecoderRefresh: Int

The number of samples prior to the current sample, in decode order, the decoder requires in order to achieve a coherent output at the current decode time.