OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [mw/] [src/] [drivers/] [mou_tp.h] - Blame information for rev 1772

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 673 markom
/* mou_tp.h */
2
 
3
#define TRANSFORMATION_UNITS_PER_PIXEL 4
4
 
5
typedef struct
6
{
7
        /*
8
         * Coefficients for the transformation formulas:
9
         *
10
         *     m = (ax + by + c) / s
11
         *     n = (dx + ey + f) / s
12
         *
13
         * These formulas will transform a device point (x, y) to a
14
         * screen point (m, n) in fractional pixels.  The fraction
15
         * is 1 / TRANSFORMATION_UNITS_PER_PIXEL.
16
         */
17
 
18
        int a, b, c, d, e, f, s;
19
} TRANSFORMATION_COEFFICIENTS;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.