KeyFrame voting
Some processors are very fast and then when they want to create a KF, the slower processors most probably cannot join a capture to this KF.
A useful functionality would be allow (fast) processors to ask for a KF to be created by another (slow) processors. That would imply:
- To change name of parameter:
ParamProcessorBase::voting_active
tovote_permissions
or something similar. -
vote_permissions
moves from boolean to enum or integer:
- Not allowed
- Asking allowed
- Creating allowed
- New function
Problem::keyFrameAsked()
returning if a processor asked a new KF to be created. That should be called even before callingProcessor::voteForKeyframe()
in order to create a KF - Remove
Problem::permittKeyFrame()
and replace byaskForKeyFrame()
to set some booleanProblem::key_frame_asked
to true (should be reset to false inProblem::keyFrameCallback()
.
@jsola @mederic_fourmy I put here what I remembered from our discussion, to be completed and further discussed.