15#ifndef __BLIT_PHASE_ALIGN_H__
16#define __BLIT_PHASE_ALIGN_H__
89static inline uint8_t blit_phase_align_byte(
int x_store,
102static inline uint16_t blit_phase_align_be16(
int x_store,
115static inline uint16_t blit_phase_align_le16(
int x_store,
128static inline uint32_t blit_phase_align_be32(
int x_store,
143static inline uint32_t blit_phase_align_le32(
int x_store,
void blit_phase_align_prefetch(struct blit_phase_align *align)
Prefetches the next byte into the alignment structure.
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.
blit_scanline_t blit_phase_align_fetch(struct blit_phase_align *align)
Fetches the next byte from the phase alignment structure.
Scanline structure definition.
uint8_t blit_scanline_t
Type definition for a scanline element.
Phase alignment structure.
blit_scanline_t(* fetch)(struct blit_phase_align *align)
Fetch the next byte with appropriate shifting.
void(* prefetch)(struct blit_phase_align *align)
Prefetch the next byte into the alignment structure.
const blit_scanline_t * store
Pointer to the data being processed.
blit_scanline_t carry
Overflow from the previous byte fetch.
int shift
Number of bits to shift the data.