docs/doc/reference/com/google/android/exoplayer2/extractor/BinarySearchSeeker.TimestampSearchResult.html
Package com.google.android.exoplayer2.extractor
Enclosing class:BinarySearchSeeker
public static final classBinarySearchSeeker.TimestampSearchResultextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Represents possible search results for BinarySearchSeeker.TimestampSeeker.searchForTimestamp(ExtractorInput, long).
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static BinarySearchSeeker.TimestampSearchResult | NO_TIMESTAMP_IN_RANGE_RESULT | |
| static int | TYPE_NO_TIMESTAMP |
The search didn't find any timestamps.
|
| static int | TYPE_POSITION_OVERESTIMATED |
The search found only timestamps larger than the target timestamp.
|
| static int | TYPE_POSITION_UNDERESTIMATED |
The search found only timestamps smaller than the target timestamp.
|
| static int | TYPE_TARGET_TIMESTAMP_FOUND |
The search found a timestamp that it deems close enough to the given target.
|
All Methods Static Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| static BinarySearchSeeker.TimestampSearchResult | overestimatedResult(long newCeilingTimestamp, long newCeilingBytePosition) |
Returns a result to signal that the current position in the input stream overestimates the true position of the target frame, and the BinarySearchSeeker should modify its BinarySearchSeeker.SeekOperationParams's ceiling timestamp and byte position using the given values.
|
| static BinarySearchSeeker.TimestampSearchResult | targetFoundResult(long resultBytePosition) |
Returns a result to signal that the target timestamp has been found at resultBytePosition, and the seek operation can stop.
|
| static BinarySearchSeeker.TimestampSearchResult | underestimatedResult(long newFloorTimestamp, long newCeilingBytePosition) |
Returns a result to signal that the current position in the input stream underestimates the true position of the target frame, and the BinarySearchSeeker should modify its BinarySearchSeeker.SeekOperationParams's floor timestamp and byte position using the given values.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final int TYPE_TARGET_TIMESTAMP_FOUND
The search found a timestamp that it deems close enough to the given target. See Also:Constant Field Values
-
public static final int TYPE_POSITION_OVERESTIMATED
The search found only timestamps larger than the target timestamp. See Also:Constant Field Values
-
public static final int TYPE_POSITION_UNDERESTIMATED
The search found only timestamps smaller than the target timestamp. See Also:Constant Field Values
-
public static final int TYPE_NO_TIMESTAMP
The search didn't find any timestamps. See Also:Constant Field Values
-
public static final[BinarySearchSeeker.TimestampSearchResult](BinarySearchSeeker.TimestampSearchResult.html "class in com.google.android.exoplayer2.extractor")NO_TIMESTAMP_IN_RANGE_RESULT
-
public static[BinarySearchSeeker.TimestampSearchResult](BinarySearchSeeker.TimestampSearchResult.html "class in com.google.android.exoplayer2.extractor")overestimatedResult(long newCeilingTimestamp,
long newCeilingBytePosition)
Returns a result to signal that the current position in the input stream overestimates the true position of the target frame, and the BinarySearchSeeker should modify its BinarySearchSeeker.SeekOperationParams's ceiling timestamp and byte position using the given values.
-
public static[BinarySearchSeeker.TimestampSearchResult](BinarySearchSeeker.TimestampSearchResult.html "class in com.google.android.exoplayer2.extractor")underestimatedResult(long newFloorTimestamp,
long newCeilingBytePosition)
Returns a result to signal that the current position in the input stream underestimates the true position of the target frame, and the BinarySearchSeeker should modify its BinarySearchSeeker.SeekOperationParams's floor timestamp and byte position using the given values.
-
public static[BinarySearchSeeker.TimestampSearchResult](BinarySearchSeeker.TimestampSearchResult.html "class in com.google.android.exoplayer2.extractor")targetFoundResult(long resultBytePosition)
Returns a result to signal that the target timestamp has been found at resultBytePosition, and the seek operation can stop.