|
Blender
V2.93
|
#include "BLI_utildefines.h"Go to the source code of this file.
Macros | |
| #define | _BITMAP_POWER 5 |
| #define | _BITMAP_MASK 31 |
| #define | _BITMAP_NUM_BLOCKS(_tot) (((_tot) >> _BITMAP_POWER) + 1) |
| #define | BLI_BITMAP_SIZE(_tot) ((size_t)(_BITMAP_NUM_BLOCKS(_tot)) * sizeof(BLI_bitmap)) |
| #define | BLI_BITMAP_NEW(_tot, _alloc_string) ((BLI_bitmap *)MEM_callocN(BLI_BITMAP_SIZE(_tot), _alloc_string)) |
| #define | BLI_BITMAP_NEW_ALLOCA(_tot) ((BLI_bitmap *)memset(alloca(BLI_BITMAP_SIZE(_tot)), 0, BLI_BITMAP_SIZE(_tot))) |
| #define | BLI_BITMAP_NEW_MEMARENA(_mem, _tot) |
| #define | BLI_BITMAP_TEST(_bitmap, _index) |
| #define | BLI_BITMAP_TEST_AND_SET_ATOMIC(_bitmap, _index) |
| #define | BLI_BITMAP_TEST_BOOL(_bitmap, _index) |
| #define | BLI_BITMAP_ENABLE(_bitmap, _index) |
| #define | BLI_BITMAP_DISABLE(_bitmap, _index) |
| #define | BLI_BITMAP_FLIP(_bitmap, _index) |
| #define | BLI_BITMAP_SET(_bitmap, _index, _set) |
| #define | BLI_BITMAP_RESIZE(_bitmap, _tot) |
Typedefs | |
| typedef unsigned int | BLI_bitmap |
Functions | |
| void | BLI_bitmap_set_all (BLI_bitmap *bitmap, bool set, size_t bits) |
| void | BLI_bitmap_flip_all (BLI_bitmap *bitmap, size_t bits) |
| void | BLI_bitmap_copy_all (BLI_bitmap *dst, const BLI_bitmap *src, size_t bits) |
| void | BLI_bitmap_and_all (BLI_bitmap *dst, const BLI_bitmap *src, size_t bits) |
| void | BLI_bitmap_or_all (BLI_bitmap *dst, const BLI_bitmap *src, size_t bits) |
| #define _BITMAP_MASK 31 |
Definition at line 41 of file BLI_bitmap.h.
| #define _BITMAP_NUM_BLOCKS | ( | _tot | ) | (((_tot) >> _BITMAP_POWER) + 1) |
Definition at line 44 of file BLI_bitmap.h.
| #define _BITMAP_POWER 5 |
Definition at line 39 of file BLI_bitmap.h.
| #define BLI_BITMAP_DISABLE | ( | _bitmap, | |
| _index | |||
| ) |
Definition at line 83 of file BLI_bitmap.h.
| #define BLI_BITMAP_ENABLE | ( | _bitmap, | |
| _index | |||
| ) |
Definition at line 78 of file BLI_bitmap.h.
| #define BLI_BITMAP_FLIP | ( | _bitmap, | |
| _index | |||
| ) |
Definition at line 88 of file BLI_bitmap.h.
| #define BLI_BITMAP_NEW | ( | _tot, | |
| _alloc_string | |||
| ) | ((BLI_bitmap *)MEM_callocN(BLI_BITMAP_SIZE(_tot), _alloc_string)) |
Definition at line 50 of file BLI_bitmap.h.
| #define BLI_BITMAP_NEW_ALLOCA | ( | _tot | ) | ((BLI_bitmap *)memset(alloca(BLI_BITMAP_SIZE(_tot)), 0, BLI_BITMAP_SIZE(_tot))) |
Definition at line 54 of file BLI_bitmap.h.
| #define BLI_BITMAP_NEW_MEMARENA | ( | _mem, | |
| _tot | |||
| ) |
Definition at line 58 of file BLI_bitmap.h.
| #define BLI_BITMAP_RESIZE | ( | _bitmap, | |
| _tot | |||
| ) |
Definition at line 106 of file BLI_bitmap.h.
| #define BLI_BITMAP_SET | ( | _bitmap, | |
| _index, | |||
| _set | |||
| ) |
Definition at line 93 of file BLI_bitmap.h.
| #define BLI_BITMAP_SIZE | ( | _tot | ) | ((size_t)(_BITMAP_NUM_BLOCKS(_tot)) * sizeof(BLI_bitmap)) |
Definition at line 47 of file BLI_bitmap.h.
| #define BLI_BITMAP_TEST | ( | _bitmap, | |
| _index | |||
| ) |
Definition at line 63 of file BLI_bitmap.h.
| #define BLI_BITMAP_TEST_AND_SET_ATOMIC | ( | _bitmap, | |
| _index | |||
| ) |
Definition at line 67 of file BLI_bitmap.h.
| #define BLI_BITMAP_TEST_BOOL | ( | _bitmap, | |
| _index | |||
| ) |
Definition at line 73 of file BLI_bitmap.h.
| typedef unsigned int BLI_bitmap |
Definition at line 32 of file BLI_bitmap.h.
| void BLI_bitmap_and_all | ( | BLI_bitmap * | dst, |
| const BLI_bitmap * | src, | ||
| size_t | bits | ||
| ) |
Combine two bitmaps with boolean AND.
Definition at line 54 of file bitmap.c.
References _BITMAP_NUM_BLOCKS.
| void BLI_bitmap_copy_all | ( | BLI_bitmap * | dst, |
| const BLI_bitmap * | src, | ||
| size_t | bits | ||
| ) |
Copy all bits from one bitmap to another.
Definition at line 48 of file bitmap.c.
References BLI_BITMAP_SIZE.
| void BLI_bitmap_flip_all | ( | BLI_bitmap * | bitmap, |
| size_t | bits | ||
| ) |
Invert all bits in the bitmap.
Definition at line 39 of file bitmap.c.
References _BITMAP_NUM_BLOCKS.
| void BLI_bitmap_or_all | ( | BLI_bitmap * | dst, |
| const BLI_bitmap * | src, | ||
| size_t | bits | ||
| ) |
Combine two bitmaps with boolean OR.
Definition at line 63 of file bitmap.c.
References _BITMAP_NUM_BLOCKS.
| void BLI_bitmap_set_all | ( | BLI_bitmap * | bitmap, |
| bool | set, | ||
| size_t | bits | ||
| ) |
Set or clear all bits in the bitmap.
Definition at line 33 of file bitmap.c.
References BLI_BITMAP_SIZE.
Referenced by BKE_mesh_remap_calc_loops_from_mesh(), BKE_sculpt_sync_face_sets_visibility_to_grids(), BLI_astar_graph_solve(), DRW_sparse_uniform_buffer_clear(), EEVEE_shadows_cache_init(), EEVEE_shadows_update(), gpencil_layer_cache_add(), lib_relocate_do(), loose_verts_map_get(), mesh_normals_loop_custom_set(), nla_eval_domain_action(), nlasnapshot_enable_all_blend_domain(), nlasnapshot_from_action(), SCULPT_geodesic_mesh_create(), subdiv_foreach_ctx_init(), and wm_link_do().