Gather

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.

Detailed Description

Perform the Gather operation with a binary mask.

All images must be aligned.

Next section: Scatter


Function Documentation

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.

Parameters:
[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.
Returns:
The number of pixels gathered per row, which is equal to the number of set pixels in the map, a negative error code on error.
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.

Parameters:
[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.
Returns:
The number of pixels gathered, or a negative error code on error.

Generated on 1 Jun 2016 for RAPP by  doxygen 1.6.1