libmsx
C library for MSX
Loading...
Searching...
No Matches
Shift operators for 8x8px 1bpp bitmap images.

Shift / Rotate (Scroll) operators for 8x8px 1bpp bitmap images. More...

+ Collaboration diagram for Shift operators for 8x8px 1bpp bitmap images.:

Functions

void im_shift_u_BM8x8 (uint8_t sft, const BM8x8 *src, BM8x8 *dst)
 MSX Shift an 8x8 pixel 1bpp image upward.
 
void im_shift_u_v_BM8x8 (uint8_t sft, const BM8x8 *src)
 MSX Shift an 8x8 pixel 1bpp image upward.
 
void im_shift_d_BM8x8 (uint8_t sft, const BM8x8 *src, BM8x8 *dst)
 MSX Shift an 8x8 pixel 1bpp image downward.
 
void im_shift_d_v_BM8x8 (uint8_t sft, const BM8x8 *src)
 MSX Shift an 8x8 pixel 1bpp image downward.
 
void im_shift_l_BM8x8 (uint8_t sft, const BM8x8 *src, BM8x8 *dst)
 MSX Shift an 8x8 pixel 1bpp image to the left.
 
void im_shift_l_v_BM8x8 (uint8_t sft, const BM8x8 *src)
 MSX Shift an 8x8 pixel 1bpp image to the left.
 
void im_shift_r_BM8x8 (uint8_t sft, const BM8x8 *src, BM8x8 *dst)
 MSX Shift an 8x8 pixel 1bpp image to the right.
 
void im_shift_r_v_BM8x8 (uint8_t sft, const BM8x8 *src)
 MSX Shift an 8x8 pixel 1bpp image to the right.
 
void im_rotate_u_BM8x8 (uint8_t sft, const BM8x8 *src, BM8x8 *dst)
 MSX Rotate (scroll) an 8x8 pixel 1bpp image upward.
 
void im_rotate_u_v_BM8x8 (uint8_t sft, const BM8x8 *src)
 MSX Rotate (scroll) an 8x8 pixel 1bpp image upward.
 
void im_rotate_d_BM8x8 (uint8_t sft, const BM8x8 *src, BM8x8 *dst)
 MSX Rotate (scroll) an 8x8 pixel 1bpp image downward.
 
void im_rotate_d_v_BM8x8 (uint8_t sft, const BM8x8 *src)
 MSX Rotate (scroll) an 8x8 pixel 1bpp image downward.
 
void im_rotate_l_BM8x8 (uint8_t sft, const BM8x8 *src, BM8x8 *dst)
 MSX Rotate (scroll) an 8x8 pixel 1bpp image to the left.
 
void im_rotate_l_v_BM8x8 (uint8_t sft, const BM8x8 *src)
 MSX Rotate (scroll) an 8x8 pixel 1bpp image to the left.
 
void im_rotate_r_BM8x8 (uint8_t sft, const BM8x8 *src, BM8x8 *dst)
 MSX Rotate (scroll) an 8x8 pixel 1bpp image to the right.
 
void im_rotate_r_v_BM8x8 (uint8_t sft, const BM8x8 *src)
 MSX Rotate (scroll) an 8x8 pixel 1bpp image to the right.
 
void im_shift_l_vec_BM8x8 (uint8_t sft, size_t n, const BM8x8 *src, BM8x8 *dst)
 MSX Shift n-columns row vector of 8x8 pixel 1bpp image to the left.
 
void im_shift_r_vec_BM8x8 (uint8_t sft, size_t n, const BM8x8 *src, BM8x8 *dst)
 MSX Shift n-columns row vector of 8x8 pixel 1bpp image to the right.
 
void im_rotate_l_vec_BM8x8 (uint8_t sft, size_t n, const BM8x8 *src, BM8x8 *dst)
 MSX Rotate (scroll) n-columns row vector of 8x8 pixel 1bpp image to the left.
 
void im_rotate_r_vec_BM8x8 (uint8_t sft, size_t n, const BM8x8 *src, BM8x8 *dst)
 MSX Rotate (scroll) n-columns row vector of 8x8 pixel 1bpp image to the right.
 

Detailed Description

Shift / Rotate (Scroll) operators for 8x8px 1bpp bitmap images.

OPERATOR ROM/RAM to RAM ROM/RAM to VRAM
SHIFT UPWARD im_shift_u_BM8x8() im_shift_u_v_BM8x8()
SHIFT DOWNWARD im_shift_d_BM8x8() im_shift_d_v_BM8x8()
SHIFT LEFT im_shift_l_BM8x8() im_shift_l_v_BM8x8()
SHIFT RIGHT im_shift_r_BM8x8() im_shift_r_v_BM8x8()
ROTATE UPWARD im_rotate_u_BM8x8() im_rotate_u_v_BM8x8()
ROTATE DOWNWARD im_rotate_d_BM8x8() im_rotate_d_v_BM8x8()
ROTATE LEFT im_rotate_l_BM8x8() im_rotate_l_v_BM8x8()
ROTATE RIGHT im_rotate_r_BM8x8() im_rotate_r_v_BM8x8()
VECTOR SHIFT LEFT im_shift_l_vec_BM8x8() n/a
VECTOR SHIFT RIGHT im_shift_r_vec_BM8x8() n/a
VECTOR ROTATE LEFT im_rotate_l_vec_BM8x8() n/a
VECTOR ROTATE RIGHT im_rotate_r_vec_BM8x8() n/a

Function Documentation

◆ im_shift_u_BM8x8()

void im_shift_u_BM8x8 ( uint8_t  sft,
const BM8x8 src,
BM8x8 dst 
)

MSX Shift an 8x8 pixel 1bpp image upward.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_shift_u_v_BM8x8()

void im_shift_u_v_BM8x8 ( uint8_t  sft,
const BM8x8 src 
)

MSX Shift an 8x8 pixel 1bpp image upward.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_shift_d_BM8x8()

void im_shift_d_BM8x8 ( uint8_t  sft,
const BM8x8 src,
BM8x8 dst 
)

MSX Shift an 8x8 pixel 1bpp image downward.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_shift_d_v_BM8x8()

void im_shift_d_v_BM8x8 ( uint8_t  sft,
const BM8x8 src 
)

MSX Shift an 8x8 pixel 1bpp image downward.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_shift_l_BM8x8()

void im_shift_l_BM8x8 ( uint8_t  sft,
const BM8x8 src,
BM8x8 dst 
)

MSX Shift an 8x8 pixel 1bpp image to the left.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_shift_l_v_BM8x8()

void im_shift_l_v_BM8x8 ( uint8_t  sft,
const BM8x8 src 
)

MSX Shift an 8x8 pixel 1bpp image to the left.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_shift_r_BM8x8()

void im_shift_r_BM8x8 ( uint8_t  sft,
const BM8x8 src,
BM8x8 dst 
)

MSX Shift an 8x8 pixel 1bpp image to the right.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_shift_r_v_BM8x8()

void im_shift_r_v_BM8x8 ( uint8_t  sft,
const BM8x8 src 
)

MSX Shift an 8x8 pixel 1bpp image to the right.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_rotate_u_BM8x8()

void im_rotate_u_BM8x8 ( uint8_t  sft,
const BM8x8 src,
BM8x8 dst 
)

MSX Rotate (scroll) an 8x8 pixel 1bpp image upward.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_rotate_u_v_BM8x8()

void im_rotate_u_v_BM8x8 ( uint8_t  sft,
const BM8x8 src 
)

MSX Rotate (scroll) an 8x8 pixel 1bpp image upward.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_rotate_d_BM8x8()

void im_rotate_d_BM8x8 ( uint8_t  sft,
const BM8x8 src,
BM8x8 dst 
)

MSX Rotate (scroll) an 8x8 pixel 1bpp image downward.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_rotate_d_v_BM8x8()

void im_rotate_d_v_BM8x8 ( uint8_t  sft,
const BM8x8 src 
)

MSX Rotate (scroll) an 8x8 pixel 1bpp image downward.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_rotate_l_BM8x8()

void im_rotate_l_BM8x8 ( uint8_t  sft,
const BM8x8 src,
BM8x8 dst 
)

MSX Rotate (scroll) an 8x8 pixel 1bpp image to the left.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_rotate_l_v_BM8x8()

void im_rotate_l_v_BM8x8 ( uint8_t  sft,
const BM8x8 src 
)

MSX Rotate (scroll) an 8x8 pixel 1bpp image to the left.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_rotate_r_BM8x8()

void im_rotate_r_BM8x8 ( uint8_t  sft,
const BM8x8 src,
BM8x8 dst 
)

MSX Rotate (scroll) an 8x8 pixel 1bpp image to the right.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_rotate_r_v_BM8x8()

void im_rotate_r_v_BM8x8 ( uint8_t  sft,
const BM8x8 src 
)

MSX Rotate (scroll) an 8x8 pixel 1bpp image to the right.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_shift_l_vec_BM8x8()

void im_shift_l_vec_BM8x8 ( uint8_t  sft,
size_t  n,
const BM8x8 src,
BM8x8 dst 
)

MSX Shift n-columns row vector of 8x8 pixel 1bpp image to the left.

Parameters
sftAmount of shift in pixels. (0..7)
nNumber of columns. (n > 0)
srcPointer to n-element source images.
dstPointer to n-element destination images.

◆ im_shift_r_vec_BM8x8()

void im_shift_r_vec_BM8x8 ( uint8_t  sft,
size_t  n,
const BM8x8 src,
BM8x8 dst 
)

MSX Shift n-columns row vector of 8x8 pixel 1bpp image to the right.

Parameters
sftAmount of shift in pixels. (0..7)
nNumber of columns. (n > 0)
srcPointer to n-element source images.
dstPointer to n-element destination images.

◆ im_rotate_l_vec_BM8x8()

void im_rotate_l_vec_BM8x8 ( uint8_t  sft,
size_t  n,
const BM8x8 src,
BM8x8 dst 
)

MSX Rotate (scroll) n-columns row vector of 8x8 pixel 1bpp image to the left.

Parameters
sftAmount of rotation in pixels. (0..7)
nNumber of columns. (n > 0)
srcPointer to n-element source images.
dstPointer to n-element destination images.

◆ im_rotate_r_vec_BM8x8()

void im_rotate_r_vec_BM8x8 ( uint8_t  sft,
size_t  n,
const BM8x8 src,
BM8x8 dst 
)

MSX Rotate (scroll) n-columns row vector of 8x8 pixel 1bpp image to the right.

Parameters
sftAmount of rotation in pixels. (0..7)
nNumber of columns. (n > 0)
srcPointer to n-element source images.
dstPointer to n-element destination images.