PreviewImage: remove mutex

This commit is contained in:
2024-05-23 22:58:52 +02:00
parent 500222bdcc
commit f85b87bfd2
10 changed files with 181 additions and 139 deletions

View File

@@ -17,6 +17,8 @@ JFJochReceiver::JFJochReceiver(const DiffractionExperiment& in_experiment,
Logger &in_logger, int64_t in_forward_and_sum_nthreads,
const NUMAHWPolicy &in_numa_policy,
const SpotFindingSettings &in_spot_finding_settings,
PreviewImage &in_preview_image,
PreviewImage &in_preview_image_indexed,
SendBuffer &buf) :
experiment(in_experiment),
calibration(nullptr),
@@ -33,8 +35,8 @@ JFJochReceiver::JFJochReceiver(const DiffractionExperiment& in_experiment,
az_int_mapping(experiment),
plots(experiment, az_int_mapping),
spot_finding_settings(in_spot_finding_settings),
preview_image(experiment),
preview_image_indexed(experiment),
preview_image(in_preview_image),
preview_image_indexed(in_preview_image_indexed),
serialmx_filter(experiment)
{
if (experiment.GetDetectorSetup().GetDetectorType() == DetectorType::JUNGFRAU)
@@ -573,20 +575,6 @@ JFJochReceiverStatus JFJochReceiver::GetStatus() const {
return ret;
}
std::string JFJochReceiver::GetTIFF(bool calibration_run) const {
if (calibration_run)
return preview_image.GenerateTIFFDioptas();
else
return preview_image.GenerateTIFF();
}
std::string JFJochReceiver::GetJPEG(const PreviewJPEGSettings &settings) const {
if (settings.show_indexed)
return preview_image_indexed.GenerateJPEG(settings);
else
return preview_image.GenerateJPEG(settings);
}
void JFJochReceiver::GetXFELEventCode(std::vector<uint64_t> &v) const {
if (experiment.IsPulsedSource())
plots.GetXFELEventCode(v);