rc_pad.h File Reference

RAPP Compute layer 8-bit image padding. More...

Go to the source code of this file.

Functions

RC_EXPORT void rc_pad_const_left_u8 (uint8_t *buf, int dim, int width, int height, int size, int value)
 Pad to the left with a constant value.
RC_EXPORT void rc_pad_const_right_u8 (uint8_t *buf, int dim, int width, int height, int size, int value)
 Pad to the right with a constant value.
RC_EXPORT void rc_pad_clamp_left_u8 (uint8_t *buf, int dim, int width, int height, int size)
 Pad to the left by clamping (replication).
RC_EXPORT void rc_pad_clamp_right_u8 (uint8_t *buf, int dim, int width, int height, int size)
 Pad to the right by clamping (replication).

Detailed Description

RAPP Compute layer 8-bit image padding.


Function Documentation

RC_EXPORT void rc_pad_clamp_left_u8 ( uint8_t *  buf,
int  dim,
int  width,
int  height,
int  size 
)

Pad to the left by clamping (replication).

Parameters:
[in,out] buf Pixel buffer to pad. May be misaligned.
dim Row dimension of the pixel buffer.
width Image width in pixels.
height Image height in pixels.
size Number of pixels to pad.
RC_EXPORT void rc_pad_clamp_right_u8 ( uint8_t *  buf,
int  dim,
int  width,
int  height,
int  size 
)

Pad to the right by clamping (replication).

Parameters:
[in,out] buf Pixel buffer to pad. May be misaligned.
dim Row dimension of the pixel buffer.
width Image width in pixels.
height Image height in pixels.
size Number of pixels to pad.
RC_EXPORT void rc_pad_const_left_u8 ( uint8_t *  buf,
int  dim,
int  width,
int  height,
int  size,
int  value 
)

Pad to the left with a constant value.

Parameters:
[in,out] buf Pixel buffer to pad. May be misaligned.
dim Row dimension of the pixel buffer.
width Image width in pixels.
height Image height in pixels.
size Number of pixels to pad.
value The value to set, 0-255.
RC_EXPORT void rc_pad_const_right_u8 ( uint8_t *  buf,
int  dim,
int  width,
int  height,
int  size,
int  value 
)

Pad to the right with a constant value.

Parameters:
[in,out] buf Pixel buffer to pad. May be misaligned.
dim Row dimension of the pixel buffer.
width Image width in pixels.
height Image height in pixels.
size Number of pixels to pad.
value The value to set, 0-255.

Generated on 1 Jun 2016 for RAPP Compute by  doxygen 1.6.1