Skip to content

Commit

Permalink
Add ds override on equivalent FR
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdawkins committed Oct 7, 2022
1 parent c84daed commit aa7b16d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions sprokit/processes/core/downsample_process.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,16 @@ ::_step()
push_datum_to_port_using_trait( frame_rate, sprokit::datum::complete_datum() );
}

if( d->target_frame_rate_ > 0.0 &&
( ts.has_valid_frame() || ts.has_valid_time() ) )
if( d->target_frame_rate_ > 0.0 )
{
send_frame = !d->skip_frame( ts, frame_rate );
if( frame_rate > 0.0 && d->target_frame_rate_ >= frame_rate )
{
send_frame = true;
}
else if( ts.has_valid_frame() || ts.has_valid_time() )
{
send_frame = !d->skip_frame( ts, frame_rate );
}
}

if( d->start_time_ >= 0.0 &&
Expand Down

0 comments on commit aa7b16d

Please sign in to comment.