Blender V5.3
spz_read.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <cstdio>
12
13#include "BLI_string_ref.hh"
14
15namespace blender {
16
17struct PointCloud;
18struct ReportList;
19
20namespace io::spz {
21
22/* Read the SPZ file pointed by the filepath.
23 * Supports multiple SPZ file formats. */
24PointCloud *read_spz_file(StringRefNull filepath, ReportList *reports);
25
26/* Read SZP file that uses a single GZip stream to compress the whole file.
27 * This applies to SPZ format versions 2 and 3. */
28PointCloud *read_spz_gzip_compressed_file(FILE *file, ReportList *reports);
29
30/* Read SZP file that uses NGSP format (introduced in version 4, uncompressed header, multiple
31 * zstd compressed streams). */
32PointCloud *read_spz_ngsp_file(FILE *file, ReportList *reports);
33
34} // namespace io::spz
35} // namespace blender
PointCloud * read_spz_file(const StringRefNull filepath, ReportList *reports)
Definition spz_read.cc:33
PointCloud * read_spz_gzip_compressed_file(FILE *file, ReportList *reports)
PointCloud * read_spz_ngsp_file(FILE *file, ReportList *reports)
BMesh Iterators.