29.11.2014 Views

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Peripheral and Interface Components<br />

Pixel data is represented as a one-dimensional array of bytes. The top-left pixel is pointed to by<br />

the buffer member. Each pixel takes up a number of bytes, given by format.pbytes.<br />

The pixel at location (x, y) is stored in the memory bytes starting at buffer[y * pitch + x *<br />

format.pbytes].<br />

Struct VisPixelFormat<br />

The VisPixelFormat struct specifies the format of pixel data within the buffer.<br />

The members are:<br />

uint32_t rbits, gbits, bbits<br />

The number of bits per color channel.<br />

uint32_t roff, goff, boff<br />

The offset within the pixel data value for the red/green/blue channels.<br />

uint32_t pbytes<br />

The size of a single pixel, in bytes.<br />

format.pbytes specifies the number of bytes that make up the data for a single pixel. These bytes<br />

represent a single pixel value, stored in host-endian order. The pixel value contains a number of<br />

the form (R

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!