Perform the Gather operation with a binary mask. More...
| |
int | rapp_gather_u8 (uint8_t *restrict pack, int pack_dim, const uint8_t *restrict src, int src_dim, const uint8_t *restrict map, int map_dim, int width, int height, int rows) |
Gather 8-bit pixels designated by a binary mask. | |
| |
int | rapp_gather_bin (uint8_t *restrict pack, const uint8_t *restrict src, int src_dim, const uint8_t *restrict map, int map_dim, int width, int height) |
Gather binary pixels designated by a binary mask. |
Perform the Gather operation with a binary mask.
All images must be aligned.
int rapp_gather_u8 | ( | uint8_t *restrict | pack, | |
int | pack_dim, | |||
const uint8_t *restrict | src, | |||
int | src_dim, | |||
const uint8_t *restrict | map, | |||
int | map_dim, | |||
int | width, | |||
int | height, | |||
int | rows | |||
) |
Gather 8-bit pixels designated by a binary mask.
[out] | pack | Pack pixel buffer. |
pack_dim | Row dimension of the pack buffer. It is only needed if rows are more than 1. | |
[in] | src | Source pixel buffer. |
src_dim | Row dimension of the source buffer. | |
map | Map pixel buffer. | |
map_dim | Row dimension of the map buffer. | |
width | Image width in pixels. | |
height | Image height in pixels. | |
rows | The number of rows to gather. This also determines height of the pack buffer. |
int rapp_gather_bin | ( | uint8_t *restrict | pack, | |
const uint8_t *restrict | src, | |||
int | src_dim, | |||
const uint8_t *restrict | map, | |||
int | map_dim, | |||
int | width, | |||
int | height | |||
) |
Gather binary pixels designated by a binary mask.
[out] | pack | Pack pixel buffer. |
[in] | src | Source pixel buffer. |
src_dim | Row dimension of the source buffer. | |
[in] | map | Map pixel buffer. |
map_dim | Row dimension of the map buffer. | |
width | Image width in pixels. | |
height | Image height in pixels. |