// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include #include // The files the viewer lists as openable, as wildcards in the QDir name-filter syntax. Only what is // listed is decided here: the readers tell the formats apart by content (.img is miniCBF, marCCD or // SMV depending on the writer). // // An HDF5 dataset is opened by its master or its processing result, never by the _data_NNNNNN.h5 // shards a master links to. A raw frame is one image per file, and naming any frame opens its whole // sweep; the marCCD and ADSC software number a frame in its extension ("name.001", "name.0001"). inline const std::vector OPENABLE_FILE_PATTERNS = { "*_master.h5", "*_process.h5", "*.nxs", "*.cxi", "*.xtc", "*.cbf", "*.cbf.gz", "*.img", "*.mccd", "*.marccd", "*.tif", "*.tiff", "*.smv", "*.osc", "*.sfrm", "*.[0-9][0-9][0-9]", "*.[0-9][0-9][0-9][0-9]", "*.[0-9][0-9][0-9][0-9][0-9]" };