This PR fixes an issue in the Depth Maps that was highlighted following the merge of alicevision/Meshroom#2203 by correctly limiting the number of simultaneous RCs based on the maximum memory that is available for camera parameters and which is constant. If the number of RCs is too large compared to the available memory, it should be reduced.
Additionally, some code clean-up was performed (static casts instead of C-style casts, indentation harmonization, break-up of some lines that were too long).
Description
This PR fixes an issue in the Depth Maps that was highlighted following the merge of alicevision/Meshroom#2203 by correctly limiting the number of simultaneous RCs based on the maximum memory that is available for camera parameters and which is constant. If the number of RCs is too large compared to the available memory, it should be reduced.
Additionally, some code clean-up was performed (static casts instead of C-style casts, indentation harmonization, break-up of some lines that were too long).