|
Blender V4.3
|
#include <limits.h>#include <string.h>#include "BLI_bitmap.h"#include "BLI_math_bits.h"#include "BLI_utildefines.h"Go to the source code of this file.
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) |
| int | BLI_bitmap_find_first_unset (const BLI_bitmap *bitmap, const size_t bits) |
Utility functions for variable size bit-masks.
Definition in file bitmap.c.
| void BLI_bitmap_and_all | ( | BLI_bitmap * | dst, |
| const BLI_bitmap * | src, | ||
| size_t | bits ) |
Combine two bitmaps with boolean AND.
Definition at line 36 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 31 of file bitmap.c.
References BLI_BITMAP_SIZE.
Referenced by nlaevalchan_blendOrcombine_try_copy_to_lower().
| int BLI_bitmap_find_first_unset | ( | const BLI_bitmap * | bitmap, |
| size_t | bits ) |
Find index of the lowest unset bit. Returns -1 if all the bits are set.
Definition at line 52 of file bitmap.c.
References _BITMAP_NUM_BLOCKS, _BITMAP_POWER, bitscan_forward_uint(), BLI_assert, and result.
Referenced by blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and UniqueName_Value::use_smallest_unused().
| void BLI_bitmap_flip_all | ( | BLI_bitmap * | bitmap, |
| size_t | bits ) |
Invert all bits in the bitmap.
Definition at line 23 of file bitmap.c.
References _BITMAP_NUM_BLOCKS.
Referenced by blender::tests::TEST(), and blender::tests::TEST().
| void BLI_bitmap_or_all | ( | BLI_bitmap * | dst, |
| const BLI_bitmap * | src, | ||
| size_t | bits ) |
Combine two bitmaps with boolean OR.
Definition at line 44 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 18 of file bitmap.c.
References BLI_BITMAP_SIZE.
Referenced by BLI_astar_graph_solve(), DRW_sparse_uniform_buffer_clear(), gpencil_layer_cache_add(), grease_pencil_layer_cache_add(), nla_eval_domain_action(), nlaevalchan_blendOrcombine_get_inverted_upper_evalchan(), nlaevalchan_combine_quaternion_get_inverted_lower_evalchan(), nlaevalchan_combine_quaternion_get_inverted_upper_evalchan(), nlaevalchan_combine_quaternion_handle_undefined_blend_values(), nlasnapshot_enable_all_blend_domain(), and nlasnapshot_from_action().