protected class

BinarySearchSeeker.SeekOperationParams

extends java.lang.Object

 java.lang.Object

↳androidx.media3.extractor.BinarySearchSeeker.SeekOperationParams

Overview

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

Constructors
protectedSeekOperationParams(long seekTimeUs, long targetTimePosition, long floorTimePosition, long ceilingTimePosition, long floorBytePosition, long ceilingBytePosition, long approxBytesPerFrame)

Methods
protected static longcalculateNextSearchBytePosition(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).

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

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

Methods

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).