vitasdk
Documentation of the vitasdk
display.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2KERN_DISPLAY_H_
8 #define _PSP2KERN_DISPLAY_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2common/display.h>
12 #include <psp2kern/types.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
21 typedef struct SceDisplayFrameBufInfo {
24  unsigned int vblankcount;
25  uintptr_t paddr;
27  unsigned int resolution;
30 
40 int ksceDisplaySetFrameBuf(const SceDisplayFrameBuf *pParam, int sync);
41 
53 int ksceDisplaySetFrameBufInternal(int head, int index, const SceDisplayFrameBuf *pParam, int sync);
54 
66 
81 
90 int ksceDisplayGetMaximumFrameBufResolution(int *width, int *height);
91 
96 
103 
108 
115 
120 
127 
133 int ksceDisplayWaitVblankStartMulti(unsigned int vcount);
134 
141 int ksceDisplayWaitVblankStartMultiInternal(int display, unsigned int vcount);
142 
148 int ksceDisplayWaitVblankStartMultiCB(unsigned int vcount);
149 
156 int ksceDisplayWaitVblankStartMultiCBInternal(int display, unsigned int vcount);
157 
162 
167 
174 int ksceDisplayWaitSetFrameBufMulti(unsigned int vcount);
175 
182 int ksceDisplayWaitSetFrameBufMultiCB(unsigned int vcount);
183 
190 
198 
205 
213 
220 
228 
235 int ksceDisplaySetInvertColors(int display, int enable);
236 
246 int ksceDisplaySetOwner(int head, int index, SceUID pid);
247 
248 #ifdef __cplusplus
249 }
250 #endif
251 
252 #endif /* _PSP2KERN_DISPLAY_H_ */
253 
int ksceDisplayGetMaximumFrameBufResolution(int *width, int *height)
Get maximum framebuffer resolution.
int ksceDisplayGetProcFrameBufInternal(SceUID pid, int head, int index, SceDisplayFrameBufInfo *info)
Get the configured framebuffer information of a head and its framebuffer index for a PID.
int ksceDisplayWaitSetFrameBufMultiCB(unsigned int vcount)
Wait for vertical blank start with callback after specified number of vertical periods since last upd...
int ksceDisplaySetFrameBufInternal(int head, int index, const SceDisplayFrameBuf *pParam, int sync)
Set/Update framebuffer parameters for display.
int ksceDisplayUnregisterVblankStartCallback(SceUID uid)
Unregister callback used at each vertical blank start.
int ksceDisplayGetPrimaryHead(void)
Primary display index.
int ksceDisplayRegisterVblankStartCallbackInternal(int display, SceUID uid)
Register callback to be used at each vertical blank start for a display.
int ksceDisplayUnregisterVblankStartCallbackInternal(int display, SceUID uid)
Unregister callback used at each vertical blank start for a display.
int ksceDisplayWaitVblankStartMultiCBInternal(int display, unsigned int vcount)
Wait for vertical blank start with callback after specified number of vertical periods for display.
int ksceDisplayGetFrameBuf(SceDisplayFrameBuf *pParam, int sync)
Get current framebuffer parameters.
uintptr_t paddr
Physical address.
Definition: display.h:25
unsigned int vblankcount
Amount of VBlanks this framebuffer has been displayed.
Definition: display.h:24
unsigned int resolution
Resolution.
Definition: display.h:27
int ksceDisplayWaitSetFrameBuf(void)
Wait for vertical blank start since last update of framebuffer.
int ksceDisplayWaitVblankStartMulti(unsigned int vcount)
Wait for vertical blank start after specified number of vertical periods.
int ksceDisplayWaitVblankStartCB(void)
Wait for vertical blank start with callback.
SceUID pid
PID of the process owning this framebuffer.
Definition: display.h:23
int ksceDisplaySetOwner(int head, int index, SceUID pid)
Set display plane owner.
int ksceDisplayWaitVblankStartInternal(int display)
Wait for vertical blank start for display.
int ksceDisplayWaitVblankStartMultiInternal(int display, unsigned int vcount)
Wait for vertical blank start after specified number of vertical periods for display.
int ksceDisplayWaitSetFrameBufMulti(unsigned int vcount)
Wait for vertical blank start after specified number of vertical periods since last update of framebu...
int ksceDisplayWaitVblankStartCBInternal(int display)
Wait for vertical blank start with callback for display.
VITASDK_BUILD_ASSERT_EQ(4, SceDisplayErrorCode)
int ksceDisplayRegisterFrameBufCallback(SceUID uid)
Register callback to be used when the framebuffer changes.
int ksceDisplaySetInvertColors(int display, int enable)
Enable/disable color inversion for a display.
SceDisplayFrameBuf framebuf
SceDisplayFrameBuf information.
Definition: display.h:26
int ksceDisplaySetFrameBuf(const SceDisplayFrameBuf *pParam, int sync)
Set/Update framebuffer parameters.
int ksceDisplayWaitVblankStartMultiCB(unsigned int vcount)
Wait for vertical blank start with callback after specified number of vertical periods.
SceSize size
sizeof(SceDisplayFrameBufInfo)
Definition: display.h:22
int ksceDisplayRegisterVblankStartCallback(SceUID uid)
Register callback to be used at each vertical blank start.
int ksceDisplayWaitSetFrameBufCB(void)
Wait for vertical blank start with callback since last update of framebuffer.
int ksceDisplayGetVcountInternal(int display)
Number of vertical blank pulses up to now for a display.
int ksceDisplayWaitVblankStart(void)
Wait for vertical blank start.
int ksceDisplayRegisterFrameBufCallbackInternal(int display, SceUID uid)
Register callback to be used when the framebuffer changes for a display.
Structure used with ksceDisplaySetFrameBuf to set/update framebuffer.
Definition: display.h:56
Extended framebuffer information.
Definition: display.h:21
SceUID pid
Definition: debug.h:1
unsigned int SceSize
Definition: types.h:56
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90