rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
gfx_turn_ops_t Struct Reference

The copy engine. More...

#include <gfx_turn.h>

Data Fields

gfx_turn_copy_t(*) copy (void *ctx, const gfx_color_t *src, gfx_color_t *dst, gfx_rect_t r, uint32_t budget_us)
 Copy block r of src into dst, turned by 180°, and wait for it.
uint32_t(*) now_us (void *ctx)
 The time, us; differences wrap.
void * ctx

Detailed Description

The copy engine.

Field Documentation

◆ copy

gfx_turn_copy_t(*) gfx_turn_ops_t::copy(void *ctx, const gfx_color_t *src, gfx_color_t *dst, gfx_rect_t r, uint32_t budget_us)

Copy block r of src into dst, turned by 180°, and wait for it.

Parameters
ctxthe engine's context
srcthe logical buffer, width x height, packed
dstthe frame buffer, of the same size
rthe block, in src's coordinates
budget_usthe longest it may wait, us
Returns
how the copy ended

◆ ctx

void* gfx_turn_ops_t::ctx

passed to both

◆ now_us

uint32_t(*) gfx_turn_ops_t::now_us(void *ctx)

The time, us; differences wrap.

Parameters
ctxthe engine's context
Returns
the time

The documentation for this struct was generated from the following file: