ImagePreprocessorBuffer: Dedicated class to handle buffer used by spot finding.
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 15m13s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 15m49s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 16m45s
Build Packages / build:rpm (rocky8) (push) Successful in 17m36s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 18m27s
Build Packages / build:rpm (rocky9) (push) Successful in 18m28s
Build Packages / Generate python client (push) Successful in 1m31s
Build Packages / Unit tests (push) Successful in 1h0m56s
Build Packages / build:rpm (ubuntu2204) (push) Failing after 9m13s
Build Packages / Create release (push) Has been skipped
Build Packages / Build documentation (push) Successful in 1m52s
Build Packages / XDS test (durin plugin) (push) Successful in 10m18s
Build Packages / XDS test (neggia plugin) (push) Successful in 8m22s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 9m24s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 13m6s
Build Packages / DIALS test (push) Successful in 13m14s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 11m15s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Failing after 14m5s

This commit is contained in:
2026-04-23 20:20:24 +02:00
parent e51a45a5ea
commit 17619bd19a
26 changed files with 223 additions and 117 deletions
@@ -0,0 +1,43 @@
// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#include "ImagePreprocessorBuffer.h"
ImagePreprocessorBuffer::ImagePreprocessorBuffer(size_t npixels) : buffer(npixels) {}
// Standard CPU operation
std::vector<int32_t> &ImagePreprocessorBuffer::getBuffer() {
return buffer;
}
const std::vector<int32_t> &ImagePreprocessorBuffer::getBuffer() const {
return buffer;
}
int32_t &ImagePreprocessorBuffer::operator[](size_t i) {
return buffer[i];
}
const int32_t &ImagePreprocessorBuffer::operator[](size_t i) const {
return buffer[i];
}
size_t ImagePreprocessorBuffer::size() const {
return buffer.size();
}
int32_t *ImagePreprocessorBuffer::data() {
return buffer.data();
}
const int32_t *ImagePreprocessorBuffer::data() const {
return buffer.data();
}
int32_t *ImagePreprocessorBuffer::getGPUBuffer() {
return nullptr;
}
const int32_t *ImagePreprocessorBuffer::getGPUBuffer() const {
return nullptr;
}