Module symphonia_core::formats::util
source · Expand description
Helper utilities for implementing FormatReader
s.
Structs§
- A
SeekIndex
storesSeekPoint
s (generally a sample or frame number to byte offset) within a media stream and provides methods to efficiently search for the nearestSeekPoint
(s) given a timestamp. - A
SeekPoint
is a mapping between a sample or frame number to byte offset within a media stream.
Enums§
SeekSearchResult
is the return value for a search on aSeekIndex
. It returns a range ofSeekPoint
s aFormatReader
should search to find the desired timestamp. Ranges are lower-bound inclusive, and upper-bound exclusive.
Functions§
- Given a
Packet
, the encoder delay in frames, and the number of non-delay or padding frames, adjust the packet’s timestamp and duration, and populate the trim information.