Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 310:00cd8897ad5e
prev308:10a5b5475fb0
next315:2d8ba198d62c
author nkeynes
date Mon Jan 22 11:45:37 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Add methods to detwiddle directly out of vram64
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Sun Jan 21 11:28:43 2007 +0000
1.2 +++ b/src/pvr2/pvr2.h Mon Jan 22 11:45:37 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.h,v 1.23 2007-01-21 11:28:43 nkeynes Exp $
1.6 + * $Id: pvr2.h,v 1.24 2007-01-22 11:45:37 nkeynes Exp $
1.7 *
1.8 * PVR2 (video chip) functions and macros.
1.9 *
1.10 @@ -129,6 +129,22 @@
1.11 void pvr2_vram64_read( char *dest, sh4addr_t src, uint32_t length );
1.12
1.13 /**
1.14 + * Read a twiddled image from interleaved memory address space (aka 64-bit address
1.15 + * space), writing the image to the destination buffer in detwiddled format.
1.16 + * Width and height must be powers of 2
1.17 + * This version reads 8-bit pixels.
1.18 + */
1.19 +void pvr2_vram64_read_twiddled_8( char *dest, sh4addr_t src, uint32_t width, uint32_t height );
1.20 +
1.21 +/**
1.22 + * Read a twiddled image from interleaved memory address space (aka 64-bit address
1.23 + * space), writing the image to the destination buffer in detwiddled format.
1.24 + * Width and height must be powers of 2, and src must be 16-bit aligned.
1.25 + * This version reads 16-bit pixels.
1.26 + */
1.27 +void pvr2_vram64_read_twiddled_16( char *dest, sh4addr_t src, uint32_t width, uint32_t height );
1.28 +
1.29 +/**
1.30 * Read an image from the interleaved memory address space (aka 64-bit address space)
1.31 * where the source and destination line sizes may differ. Note that both byte
1.32 * counts must be a multiple of 4, and the src address must be 32-bit aligned.
.