Spatial Expansion

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.

Detailed Description

Perform 2x spatial expansion (upscaling).

The images must be aligned.

Next section: Rotations


Function Documentation

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.

Parameters:
[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.
Returns:
A negative error code on error, zero otherwise.
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.

Parameters:
[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.
Returns:
A negative error code on error, zero otherwise.
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.

Parameters:
[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.
Returns:
A negative error code on error, zero otherwise.

Generated on 1 Jun 2016 for RAPP by  doxygen 1.6.1