Template Function spdl::core::get_timestamps¶
Defined in File packets.h
Function Documentation¶
-
template<MediaType media>
std::vector<double> spdl::core::get_timestamps(const Packets<media> &packets, bool raw = false)¶ Get packet timestamps in seconds.
By default, applies user-specified window filtering and sorts timestamps for video packets. Setting raw=true disables filtering and sorting, returning timestamps as-is.
- Template Parameters:
media – Media type (Audio, Video, or Image).
- Parameters:
packets – Packets to extract timestamps from.
raw – If true, disable filtering and sorting.
- Returns:
Vector of timestamps in seconds.