Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract some code out of pipeline executables to reusable modules (part 2) #1275

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

p12tic
Copy link
Contributor

@p12tic p12tic commented Oct 9, 2022

This PR moves code out of cameraInit executable to aliceVision libraries that can be linked into other executables which in turn allows code reuse.

The Extract ... commits only move code around reindenting it to 4-space indents in the process.

The last commit changes how warning reporting is done in cameraInit. This can be potentially be reused in external code now too.

In this PR 3 race conditions have been identified and fixed.

This PR is a followup to #1270 and is filled separately because it solves a more complicated case.

@p12tic p12tic force-pushed the pipeline-reuse branch 2 times, most recently from 83da1d2 to 28e870e Compare October 10, 2022 00:28
@fabiencastan fabiencastan added this to the 2.5.0 milestone Oct 10, 2022
viewHasDefinedIntrinsic() accesses intrinsics from SfMData without
synchronization, which races with intrinsics updates in the following
line below.

sfmData.getIntrinsics().emplace(intrinsicId, intrinsicBase);
This commit also fixes a couple of race conditions because access to
unsureSensors and intrinsicsSetFromFocal35mm was not protected.
@fabiencastan fabiencastan modified the milestones: 3.0.0, 3.1.0 Feb 8, 2023
@fabiencastan fabiencastan modified the milestones: 3.1.0, 3.2.0 Jun 5, 2023
@fabiencastan fabiencastan modified the milestones: 3.2.0, 3.3.0 Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants