Perform 2x spatial expansion (upscaling). More...
Functions | |
int | rapp_expand_1x2_bin (uint8_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height) |
Binary 1x2 expansion. | |
int | rapp_expand_2x1_bin (uint8_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height) |
Binary 2x1 expansion. | |
int | rapp_expand_2x2_bin (uint8_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height) |
Binary 2x2 expansion. |
Perform 2x spatial expansion (upscaling).
The images must be aligned.
int rapp_expand_1x2_bin | ( | uint8_t *restrict | dst, | |
int | dst_dim, | |||
const uint8_t *restrict | src, | |||
int | src_dim, | |||
int | width, | |||
int | height | |||
) |
Binary 1x2 expansion.
Upscaling to double size in horizontal direction using pixel replication. The size of the expanded image is 2*width, height.
[out] | dst | Destination pixel buffer. |
dst_dim | Row dimension of the destination buffer. | |
[in] | src | Source pixel buffer. |
src_dim | Row dimension of the source buffer. | |
width | Source image width in pixels. | |
height | Image height in pixels. |
int rapp_expand_2x1_bin | ( | uint8_t *restrict | dst, | |
int | dst_dim, | |||
const uint8_t *restrict | src, | |||
int | src_dim, | |||
int | width, | |||
int | height | |||
) |
Binary 2x1 expansion.
Upscaling to double size in vertical direction using pixel replication. The size of the expanded image is width, 2*height.
[out] | dst | Destination pixel buffer. |
dst_dim | Row dimension of the destination buffer. | |
[in] | src | Source pixel buffer. |
src_dim | Row dimension of the source buffer. | |
width | Image width in pixels. | |
height | Source image height in pixels. |
int rapp_expand_2x2_bin | ( | uint8_t *restrict | dst, | |
int | dst_dim, | |||
const uint8_t *restrict | src, | |||
int | src_dim, | |||
int | width, | |||
int | height | |||
) |
Binary 2x2 expansion.
Upscaling to double size using pixel replication. The size of the expanded image is 2*width, 2*height.
[out] | dst | Destination pixel buffer. |
dst_dim | Row dimension of the destination buffer. | |
[in] | src | Source pixel buffer. |
src_dim | Row dimension of the source buffer. | |
width | Source image width in pixels. | |
height | Source image height in pixels. |