ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
zoom_internal.h
Go to the documentation of this file.
1
20
21#pragma once
22
23#include <stdint.h>
24
25#include "ra8_attributes.h"
26
51typedef struct {
52 int32_t d0;
53 int32_t d1;
54 uint32_t s0;
55 uint32_t count;
57
90void priv_zoom_axis(int32_t anchor,
91 int32_t extent,
92 int32_t scale,
93 int32_t src_dim,
94 zoom_axis_t* out);
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
One axis of the viewport resolved against the image: coverage + source span.
uint32_t count
Source indices feeding the covered span (0 if none).
int32_t d1
One past the last covered destination offset.
uint32_t s0
First source index feeding the covered span.
int32_t d0
First covered destination offset inside the viewport.
void priv_zoom_axis(int32_t anchor, int32_t extent, int32_t scale, int32_t src_dim, zoom_axis_t *out)
Resolve one viewport axis against the image at the current magnification.
Definition zoom.c:60