ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Go to the source code of this file.
Functions | |
int | ps2_screenshot_file (const char *pFilename, unsigned int VramAdress, unsigned int Width, unsigned int Height, unsigned int Psm) |
int | ps2_screenshot (void *pTemp, unsigned int VramAdress, unsigned int x, unsigned int y, unsigned int Width, unsigned int Height, unsigned int Psm) |
Screenshot prototypes.
Definition in file screenshot.h.
int ps2_screenshot | ( | void * | pDest, |
unsigned int | VramAdress, | ||
unsigned int | x, | ||
unsigned int | y, | ||
unsigned int | Width, | ||
unsigned int | Height, | ||
unsigned int | Psm | ||
) |
Downloads vram back to host
pDest | Temporary storeage for the screen (allocated by user) |
VramAdress | pointer to where in vram to transfer from (wordaddress/64) |
Width | Width of Screen |
Height | Width of Screen |
Psm | Pixelformat of screen |
Definition at line 181 of file screenshot.c.
References ALIGNED, FlushCache(), GsGetIMR(), GsPutIMR(), PS2SS_CSR_FINISH, PS2SS_D1_CHCR, PS2SS_D1_MADR, PS2SS_D1_QWC, PS2SS_GIF_AD, PS2SS_GIFTAG, PS2SS_GS_BUSDIR, PS2SS_GS_CSR, PS2SS_GSBITBLTBUF, PS2SS_GSBITBLTBUF_SET, PS2SS_GSFINISH, PS2SS_GSPSMCT16, PS2SS_GSPSMCT24, PS2SS_GSTRXDIR, PS2SS_GSTRXDIR_SET, PS2SS_GSTRXPOS, PS2SS_GSTRXPOS_SET, PS2SS_GSTRXREG, PS2SS_GSTRXREG_SET, PS2SS_VIF1_DIRECT, PS2SS_VIF1_FIFO, PS2SS_VIF1_FLUSHA, PS2SS_VIF1_MSKPATH3, PS2SS_VIF1_NOP, PS2SS_VIF1_STAT, PS2SS_VIF1_STAT_FDR, x, and y.
Referenced by ps2_screenshot_file().
int ps2_screenshot_file | ( | const char * | pFilename, |
unsigned int | VramAdress, | ||
unsigned int | Width, | ||
unsigned int | Height, | ||
unsigned int | Psm | ||
) |
Definition at line 84 of file screenshot.c.
References ps2_screenshot(), PS2SS_GSPSMCT16, PS2SS_GSPSMCT24, x, and y.