PSPSDK 2025-05-14
Loading...
Searching...
No Matches
pspdisplay.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspdisplay.h - Prototypes for the sceDisplay library.
7 *
8 * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
9 * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
10 * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
11 * Copyright (c) 2007 Alexander Berl <raphael@fx-world.org>
12 *
13 */
14#ifndef __DISPLAY_H__
15#define __DISPLAY_H__
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
32
39
41#define PSP_DISPLAY_SETBUF_IMMEDIATE PSP_DISPLAY_SETBUF_NEXTHSYNC
42#define PSP_DISPLAY_SETBUF_NEXTFRAME PSP_DISPLAY_SETBUF_NEXTVSYNC
43
59
60
78int sceDisplaySetMode(int mode, int width, int height);
79
89int sceDisplayGetMode(int *pmode, int *pwidth, int *pheight);
90
101int sceDisplaySetFrameBuf(void *topaddr, int bufferwidth, int pixelformat, int sync);
102
113int sceDisplayGetFrameBuf(void **topaddr, int *bufferwidth, int *pixelformat, int sync);
114
118unsigned int sceDisplayGetVcount(void);
119
124
129
134
139
144
149
154
159
164
165#ifdef __cplusplus
166}
167#endif
168
169#endif
float sceDisplayGetFramePerSec(void)
Get number of frames per second.
int sceDisplaySetFrameBuf(void *topaddr, int bufferwidth, int pixelformat, int sync)
Display set framebuf.
int sceDisplayGetFrameBuf(void **topaddr, int *bufferwidth, int *pixelformat, int sync)
Get Display Framebuffer information.
int sceDisplayGetAccumulatedHcount(void)
Get accumlated HSYNC count.
int sceDisplayWaitVblankCB(void)
Wait for vertical blank with callback.
PspDisplayMode
Definition pspdisplay.h:45
@ PSP_DISPLAY_MODE_VESA1A
VESA VGA MAX 640x480 at 59.94047618Hz.
Definition pspdisplay.h:49
@ PSP_DISPLAY_MODE_PSEUDO_VGA
PSEUDO VGA MAX 640x480 at 59.94005995Hz.
Definition pspdisplay.h:51
@ PSP_DISPLAY_MODE_LCD
LCD MAX 480x272 at 59.94005995 Hz.
Definition pspdisplay.h:47
PspDisplaySetBufSync
Definition pspdisplay.h:33
@ PSP_DISPLAY_SETBUF_NEXTHSYNC
Buffer change effective next hsync.
Definition pspdisplay.h:35
@ PSP_DISPLAY_SETBUF_NEXTVSYNC
Buffer change effective next vsync.
Definition pspdisplay.h:37
int sceDisplaySetMode(int mode, int width, int height)
Set display mode.
int sceDisplayWaitVblankStartCB(void)
Wait for vertical blank start with callback.
int sceDisplayGetCurrentHcount(void)
Get current HSYNC count.
unsigned int sceDisplayGetVcount(void)
Number of vertical blank pulses up to now.
int sceDisplayIsForeground(void)
Get whether or not frame buffer is being displayed.
int sceDisplayWaitVblankStart(void)
Wait for vertical blank start.
PspDisplayPixelFormats
Framebuffer pixel formats.
Definition pspdisplay.h:22
@ PSP_DISPLAY_PIXEL_FORMAT_4444
Definition pspdisplay.h:28
@ PSP_DISPLAY_PIXEL_FORMAT_8888
Definition pspdisplay.h:30
@ PSP_DISPLAY_PIXEL_FORMAT_5551
16-bit RGBA 5:5:5:1.
Definition pspdisplay.h:26
@ PSP_DISPLAY_PIXEL_FORMAT_565
16-bit RGB 5:6:5.
Definition pspdisplay.h:24
int sceDisplayWaitVblank(void)
Wait for vertical blank.
int sceDisplayGetMode(int *pmode, int *pwidth, int *pheight)
Get display mode.
PspDisplayErrorCodes
Definition pspdisplay.h:54
@ SCE_DISPLAY_ERROR_ARGUMENT
Definition pspdisplay.h:57
@ SCE_DISPLAY_ERROR_POINTER
Definition pspdisplay.h:56
@ SCE_DISPLAY_ERROR_OK
Definition pspdisplay.h:55
int sceDisplayIsVblank(void)
Test whether VBLANK is active.