Blender  V2.93
Functions
bitmap.c File Reference
#include <limits.h>
#include <string.h>
#include "BLI_bitmap.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)
 

Detailed Description

Utility functions for variable size bit-masks.

Definition in file bitmap.c.

Function Documentation

◆ BLI_bitmap_and_all()

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.

◆ BLI_bitmap_copy_all()

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.

◆ BLI_bitmap_flip_all()

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.

◆ BLI_bitmap_or_all()

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.

◆ BLI_bitmap_set_all()

void BLI_bitmap_set_all ( BLI_bitmap bitmap,
bool  set,
size_t  bits 
)