libsdfio 1.0.0
Reader and writer for ISO 25178-71 SDF surface data files in C
Loading...
Searching...
No Matches
layout.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Thomas Ascher <thomas.ascher@gmx.at>
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
15
16#ifndef SDFIO_LAYOUT_H
17#define SDFIO_LAYOUT_H
18
19#include <sdfio/sdfio_export.h>
20#include <sdfio/types.h>
21
22#include <stddef.h>
23
24#ifdef __cplusplus
25extern "C"
26{
27#endif
28
64
72SDFIO_API void sdfio_layout_init(sdfio_layout *layout);
73
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif /* SDFIO_LAYOUT_H */
const sdfio_layout * sdfio_layout_packed(sdfio_data_type type)
Returns the layout of a plain array: the elements follow each other and the rows follow each other.
void sdfio_layout_init(sdfio_layout *layout)
Initializes a layout of a plain array of float elements: the elements follow each other and the rows ...
Description of a buffer of the caller for heights or for the values of the data area: the type of its...
Definition layout.h:45
ptrdiff_t element_stride
Distance in bytes between consecutive elements within a row.
Definition layout.h:54
ptrdiff_t row_stride
Distance in bytes between consecutive rows.
Definition layout.h:62
sdfio_data_type type
Type of the elements of the buffer.
Definition layout.h:49
Status codes, enumerations, constants, and the structures for allocator, stream and time zone.
sdfio_data_type
Type of the coded values of the data area of a file, and of the elements of a buffer of heights.
Definition types.h:112