You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement two reading modes for IFrameReader: soft read and hard read.
Hard read is current behavior - return as much samples as possible (up to requested size), fill gaps caused by packet loss with zeros.
Soft read enables new behavior - stop reading when encountered gap (caused by packet loss). E.g. when 10 samples requested, but only 5 samples are available, and then there is a gap, only 5 samples will be returned (using partial read mechanism implemented in #615).
Use-cases
Soft reads are needed when next chunk in pipeline can help if it arrived earlier than deadline, but on the other hand if it haven't arrived yet, we don't want to mark it as late and create a gap.
IFrameReader::read() now supports two modes: soft read and hard read.
Hard read behaves as usual - returns as much samples as possible,
filling gaps with zeros.
Soft read is a new behavior - it stops when a packet loss is
encountered instead of filling loss with zeros.
Summary
Implement two reading modes for IFrameReader: soft read and hard read.
Hard read is current behavior - return as much samples as possible (up to requested size), fill gaps caused by packet loss with zeros.
Soft read enables new behavior - stop reading when encountered gap (caused by packet loss). E.g. when 10 samples requested, but only 5 samples are available, and then there is a gap, only 5 samples will be returned (using partial read mechanism implemented in #615).
Use-cases
Soft reads are needed when next chunk in pipeline can help if it arrived earlier than deadline, but on the other hand if it haven't arrived yet, we don't want to mark it as late and create a gap.
It can be used in:
Impl
The text was updated successfully, but these errors were encountered: