BinarySearchSeeker.SeekOperationParams


protected class BinarySearchSeeker.SeekOperationParams


Contains parameters for a pending seek operation by BinarySearchSeeker.

This class holds parameters for a binary-search for the targetTimePosition in the range [floorPosition, ceilingPosition).

Summary

Protected constructors

SeekOperationParams(
    seekTimeUs: Long,
    targetTimePosition: Long,
    floorTimePosition: Long,
    ceilingTimePosition: Long,
    floorBytePosition: Long,
    ceilingBytePosition: Long,
    approxBytesPerFrame: Long
)

Protected functions

java-static Long
calculateNextSearchBytePosition(
    targetTimePosition: Long,
    floorTimePosition: Long,
    ceilingTimePosition: Long,
    floorBytePosition: Long,
    ceilingBytePosition: Long,
    approxBytesPerFrame: Long
)

Returns the next position in the stream to search for target frame, given [floorBytePosition, ceilingBytePosition), with corresponding [floorTimePosition, ceilingTimePosition).

Protected constructors

SeekOperationParams

protected SeekOperationParams(
    seekTimeUs: Long,
    targetTimePosition: Long,
    floorTimePosition: Long,
    ceilingTimePosition: Long,
    floorBytePosition: Long,
    ceilingBytePosition: Long,
    approxBytesPerFrame: Long
)

Protected functions

calculateNextSearchBytePosition

protected java-static fun calculateNextSearchBytePosition(
    targetTimePosition: Long,
    floorTimePosition: Long,
    ceilingTimePosition: Long,
    floorBytePosition: Long,
    ceilingBytePosition: Long,
    approxBytesPerFrame: Long
): Long

Returns the next position in the stream to search for target frame, given [floorBytePosition, ceilingBytePosition), with corresponding [floorTimePosition, ceilingTimePosition).