|
blit
|
Phase alignment for 8-bit bytes. More...
#include <blit/scan.h>

Go to the source code of this file.
Data Structures | |
| struct | blit_phase_align |
| Phase alignment structure. More... | |
Functions | |
| void | blit_phase_align_start (struct blit_phase_align *align, int x, int x_store, const blit_scanline_t *store) |
| Initialises the phase alignment structure. | |
| void | blit_phase_align_prefetch (struct blit_phase_align *align) |
| Prefetches the next byte into the alignment structure. | |
| blit_scanline_t | blit_phase_align_fetch (struct blit_phase_align *align) |
| Fetches the next byte from the phase alignment structure. | |
Phase alignment for 8-bit bytes.
This header file defines the phase_align structure and functions for managing phase alignment of 8-bit bytes. It allows for fetching bytes with a specified shift, which is useful in scenarios where data needs to be aligned or shifted for processing, such as in graphics or display memory management.
Definition in file phase_align.h.
| blit_scanline_t blit_phase_align_fetch | ( | struct blit_phase_align * | align | ) |
Fetches the next byte from the phase alignment structure.
| align | Pointer to the phase alignment structure. |
Definition at line 83 of file phase_align.c.
| void blit_phase_align_prefetch | ( | struct blit_phase_align * | align | ) |
Prefetches the next byte into the alignment structure.
This function prepares the phase alignment structure for the next byte fetch.
| align | Pointer to the phase alignment structure. |
Definition at line 79 of file phase_align.c.
| void blit_phase_align_start | ( | struct blit_phase_align * | align, |
| int | x, | ||
| int | x_store, | ||
| const blit_scanline_t * | store | ||
| ) |
Initialises the phase alignment structure.
This function sets up the phase alignment structure with the given parameters.
| align | Pointer to the phase alignment structure. |
| x | The destination bit position. |
| x_store | The source bit position. |
| store | Pointer to the data buffer. |
Definition at line 48 of file phase_align.c.