Blender  V3.3
BLO_blend_defs.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #pragma once
3 
9 /* INTEGER CODES */
10 #ifdef __BIG_ENDIAN__
11 /* Big Endian */
12 # define BLEND_MAKE_ID(a, b, c, d) ((int)(a) << 24 | (int)(b) << 16 | (c) << 8 | (d))
13 #else
14 /* Little Endian */
15 # define BLEND_MAKE_ID(a, b, c, d) ((int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a))
16 #endif
17 
23 enum {
28  DATA = BLEND_MAKE_ID('D', 'A', 'T', 'A'),
32  GLOB = BLEND_MAKE_ID('G', 'L', 'O', 'B'),
37  DNA1 = BLEND_MAKE_ID('D', 'N', 'A', '1'),
42  TEST = BLEND_MAKE_ID('T', 'E', 'S', 'T'),
47  REND = BLEND_MAKE_ID('R', 'E', 'N', 'D'),
52  USER = BLEND_MAKE_ID('U', 'S', 'E', 'R'),
56  ENDB = BLEND_MAKE_ID('E', 'N', 'D', 'B'),
57 };
58 
59 #define BLEN_THUMB_MEMSIZE_FILE(_x, _y) (sizeof(int) * (2 + (size_t)(_x) * (size_t)(_y)))
@ GLOB
@ DNA1
@ ENDB
@ DATA
@ TEST
@ USER
@ REND
#define BLEND_MAKE_ID(a, b, c, d)