blit
Loading...
Searching...
No Matches
Data Structures | Functions
phase_align.h File Reference

Phase alignment for 8-bit bytes. More...

#include <blit/scan.h>
Include dependency graph for phase_align.h:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

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.

Function Documentation

◆ blit_phase_align_fetch()

blit_scanline_t blit_phase_align_fetch ( struct blit_phase_align align)

Fetches the next byte from the phase alignment structure.

Parameters
alignPointer to the phase alignment structure.
Returns
The fetched byte.

Definition at line 83 of file phase_align.c.

◆ blit_phase_align_prefetch()

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.

Parameters
alignPointer to the phase alignment structure.

Definition at line 79 of file phase_align.c.

◆ blit_phase_align_start()

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.

Parameters
alignPointer to the phase alignment structure.
xThe destination bit position.
x_storeThe source bit position.
storePointer to the data buffer.

Definition at line 48 of file phase_align.c.