protected static class BinarySearchSeeker.SeekOperationParams
extends java.lang.Object
BinarySearchSeeker.
This class holds parameters for a binary-search for the targetTimePosition in the
range [floorPosition, ceilingPosition).
| Modifier | Constructor and Description |
|---|---|
protected |
SeekOperationParams(long seekTimeUs,
long targetTimePosition,
long floorTimePosition,
long ceilingTimePosition,
long floorBytePosition,
long ceilingBytePosition,
long approxBytesPerFrame) |
| Modifier and Type | Method and Description |
|---|---|
protected static long |
calculateNextSearchBytePosition(long targetTimePosition,
long floorTimePosition,
long ceilingTimePosition,
long floorBytePosition,
long ceilingBytePosition,
long approxBytesPerFrame)
Returns the next position in the stream to search for target frame, given [floorBytePosition,
ceilingBytePosition), with corresponding [floorTimePosition, ceilingTimePosition).
|
protected SeekOperationParams(long seekTimeUs,
long targetTimePosition,
long floorTimePosition,
long ceilingTimePosition,
long floorBytePosition,
long ceilingBytePosition,
long approxBytesPerFrame)
protected static long calculateNextSearchBytePosition(long targetTimePosition,
long floorTimePosition,
long ceilingTimePosition,
long floorBytePosition,
long ceilingBytePosition,
long approxBytesPerFrame)