rc_pad_bin.h File Reference
RAPP Compute layer binary image padding.
More...
Go to the source code of this file.
Functions |
RC_EXPORT void | rc_pad_const_left_bin (uint8_t *buf, int dim, int off, int width, int height, int size, int set) |
| Pad to the left with a constant value.
|
RC_EXPORT void | rc_pad_const_right_bin (uint8_t *buf, int dim, int off, int width, int height, int size, int set) |
| Pad to the right with a constant value.
|
RC_EXPORT void | rc_pad_clamp_left_bin (uint8_t *buf, int dim, int off, int width, int height, int size) |
| Pad to the left by clamping (replication).
|
RC_EXPORT void | rc_pad_clamp_right_bin (uint8_t *buf, int dim, int off, int width, int height, int size) |
| Pad to the right by clamping (replication).
|
Detailed Description
RAPP Compute layer binary image padding.
Function Documentation
RC_EXPORT void rc_pad_clamp_left_bin |
( |
uint8_t * |
buf, |
|
|
int |
dim, |
|
|
int |
off, |
|
|
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. |
| off | Binary offset of the pixel buffer, 0-7. |
| width | Image width in pixels. |
| height | Image height in pixels. |
| size | Number of pixels to pad. |
RC_EXPORT void rc_pad_clamp_right_bin |
( |
uint8_t * |
buf, |
|
|
int |
dim, |
|
|
int |
off, |
|
|
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. |
| off | Binary offset of the pixel buffer, 0-7. |
| width | Image width in pixels. |
| height | Image height in pixels. |
| size | Number of pixels to pad. |
RC_EXPORT void rc_pad_const_left_bin |
( |
uint8_t * |
buf, |
|
|
int |
dim, |
|
|
int |
off, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
size, |
|
|
int |
set | |
|
) |
| | |
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. |
| off | Binary offset of the pixel buffer, 0-7. |
| width | Image width in pixels. |
| height | Image height in pixels. |
| size | Number of pixels to pad. |
| set | The value to set, 0 or 1. |
RC_EXPORT void rc_pad_const_right_bin |
( |
uint8_t * |
buf, |
|
|
int |
dim, |
|
|
int |
off, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
size, |
|
|
int |
set | |
|
) |
| | |
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. |
| off | Binary offset of the pixel buffer, 0-7. |
| width | Image width in pixels. |
| height | Image height in pixels. |
| size | Number of pixels to pad. |
| set | The value to set, 0 or 1. |