Blender V4.3
BLO_blend_defs.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
11/* INTEGER CODES */
12#ifdef __BIG_ENDIAN__
13/* Big Endian */
14# define BLEND_MAKE_ID(a, b, c, d) ((int)(a) << 24 | (int)(b) << 16 | (c) << 8 | (d))
15#else
16/* Little Endian */
17# define BLEND_MAKE_ID(a, b, c, d) ((int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a))
18#endif
19
25enum {
30 BLO_CODE_DATA = BLEND_MAKE_ID('D', 'A', 'T', 'A'),
34 BLO_CODE_GLOB = BLEND_MAKE_ID('G', 'L', 'O', 'B'),
39 BLO_CODE_DNA1 = BLEND_MAKE_ID('D', 'N', 'A', '1'),
44 BLO_CODE_TEST = BLEND_MAKE_ID('T', 'E', 'S', 'T'),
49 BLO_CODE_REND = BLEND_MAKE_ID('R', 'E', 'N', 'D'),
54 BLO_CODE_USER = BLEND_MAKE_ID('U', 'S', 'E', 'R'),
58 BLO_CODE_ENDB = BLEND_MAKE_ID('E', 'N', 'D', 'B'),
59};
60
61#define BLEN_THUMB_MEMSIZE_FILE(_x, _y) (sizeof(int) * (2 + (size_t)(_x) * (size_t)(_y)))
#define BLEND_MAKE_ID(a, b, c, d)
@ BLO_CODE_ENDB
@ BLO_CODE_REND
@ BLO_CODE_TEST
@ BLO_CODE_GLOB
@ BLO_CODE_DATA
@ BLO_CODE_DNA1
@ BLO_CODE_USER