vitasdk
Documentation of the vitasdk
|
Exports for Kernel.
Include the header file in your project:
Include the header file in your project:
Link the library to the executable:
Functions | |
VITASDK_BUILD_ASSERT_EQ (4, SceDisplayErrorCode) | |
VITASDK_BUILD_ASSERT_EQ (4, SceDisplayPixelFormat) | |
VITASDK_BUILD_ASSERT_EQ (4, SceDisplaySetBufSync) | |
VITASDK_BUILD_ASSERT_EQ (0x18, SceDisplayFrameBuf) | |
VITASDK_BUILD_ASSERT_EQ (0x2C, SceDisplayFrameBufInfo) | |
int | ksceDisplaySetFrameBuf (const SceDisplayFrameBuf *pParam, int sync) |
Set/Update framebuffer parameters. More... | |
int | ksceDisplaySetFrameBufInternal (int head, int index, const SceDisplayFrameBuf *pParam, int sync) |
Set/Update framebuffer parameters for display. More... | |
int | ksceDisplayGetFrameBuf (SceDisplayFrameBuf *pParam, int sync) |
Get current framebuffer parameters. More... | |
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. More... | |
int | ksceDisplayGetMaximumFrameBufResolution (int *width, int *height) |
Get maximum framebuffer resolution. More... | |
int | ksceDisplayGetPrimaryHead (void) |
Primary display index. More... | |
int | ksceDisplayGetVcountInternal (int display) |
Number of vertical blank pulses up to now for a display. More... | |
int | ksceDisplayWaitVblankStart (void) |
Wait for vertical blank start. More... | |
int | ksceDisplayWaitVblankStartInternal (int display) |
Wait for vertical blank start for display. More... | |
int | ksceDisplayWaitVblankStartCB (void) |
Wait for vertical blank start with callback. More... | |
int | ksceDisplayWaitVblankStartCBInternal (int display) |
Wait for vertical blank start with callback for display. More... | |
int | ksceDisplayWaitVblankStartMulti (unsigned int vcount) |
Wait for vertical blank start after specified number of vertical periods. More... | |
int | ksceDisplayWaitVblankStartMultiInternal (int display, unsigned int vcount) |
Wait for vertical blank start after specified number of vertical periods for display. More... | |
int | ksceDisplayWaitVblankStartMultiCB (unsigned int vcount) |
Wait for vertical blank start with callback after specified number of vertical periods. More... | |
int | ksceDisplayWaitVblankStartMultiCBInternal (int display, unsigned int vcount) |
Wait for vertical blank start with callback after specified number of vertical periods for display. More... | |
int | ksceDisplayWaitSetFrameBuf (void) |
Wait for vertical blank start since last update of framebuffer. More... | |
int | ksceDisplayWaitSetFrameBufCB (void) |
Wait for vertical blank start with callback since last update of framebuffer. More... | |
int | ksceDisplayWaitSetFrameBufMulti (unsigned int vcount) |
Wait for vertical blank start after specified number of vertical periods since last update of framebuffer. More... | |
int | ksceDisplayWaitSetFrameBufMultiCB (unsigned int vcount) |
Wait for vertical blank start with callback after specified number of vertical periods since last update of framebuffer. More... | |
int | ksceDisplayRegisterVblankStartCallback (SceUID uid) |
Register callback to be used at each vertical blank start. More... | |
int | ksceDisplayRegisterVblankStartCallbackInternal (int display, SceUID uid) |
Register callback to be used at each vertical blank start for a display. More... | |
int | ksceDisplayUnregisterVblankStartCallback (SceUID uid) |
Unregister callback used at each vertical blank start. More... | |
int | ksceDisplayUnregisterVblankStartCallbackInternal (int display, SceUID uid) |
Unregister callback used at each vertical blank start for a display. More... | |
int | ksceDisplayRegisterFrameBufCallback (SceUID uid) |
Register callback to be used when the framebuffer changes. More... | |
int | ksceDisplayRegisterFrameBufCallbackInternal (int display, SceUID uid) |
Register callback to be used when the framebuffer changes for a display. More... | |
int | ksceDisplaySetInvertColors (int display, int enable) |
Enable/disable color inversion for a display. More... | |
int | ksceDisplaySetOwner (int head, int index, SceUID pid) |
Set display plane owner. More... | |
struct SceDisplayFrameBuf |
Structure used with ksceDisplaySetFrameBuf to set/update framebuffer.
Original screen resolution is 960x544, but the following resolutions can also be supplied as width and height : 480x272, 640x368, 720x408
Data Fields | ||
---|---|---|
SceSize | size | sizeof(SceDisplayFrameBuf) |
void * | base | Pointer to framebuffer. |
unsigned int | pitch | pitch pixels |
unsigned int | pixelformat | pixel format (one of SceDisplayPixelFormat) |
unsigned int | width | framebuffer width |
unsigned int | height | framebuffer height |
struct SceDisplayFrameBufInfo |
Extended framebuffer information.
Data Fields | ||
---|---|---|
SceSize | size | sizeof(SceDisplayFrameBufInfo) |
SceUID | pid | PID of the process owning this framebuffer. |
unsigned int | vblankcount | Amount of VBlanks this framebuffer has been displayed. |
uintptr_t | paddr | Physical address. |
SceDisplayFrameBuf | framebuf | SceDisplayFrameBuf information. |
unsigned int | resolution | Resolution. |
enum SceDisplayErrorCode |
enum SceDisplaySetBufSync |
VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
SceDisplayErrorCode | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
SceDisplayPixelFormat | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
SceDisplaySetBufSync | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x18 | , |
SceDisplayFrameBuf | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x2C | , |
SceDisplayFrameBufInfo | |||
) |
int ksceDisplaySetFrameBuf | ( | const SceDisplayFrameBuf * | pParam, |
int | sync | ||
) |
Set/Update framebuffer parameters.
[in] | pParam | - Pointer to a SceDisplayFrameBuf structure. |
[in] | sync | - One of ::DisplaySetBufSync |
int ksceDisplaySetFrameBufInternal | ( | int | head, |
int | index, | ||
const SceDisplayFrameBuf * | pParam, | ||
int | sync | ||
) |
Set/Update framebuffer parameters for display.
[in] | head | - Use 0 for OLED/LCD and 1 for HDMI |
[in] | index | - Can be 0 or 1 |
[in] | pParam | - Pointer to a SceDisplayFrameBuf structure. |
[in] | sync | - One of ::DisplaySetBufSync |
int ksceDisplayGetFrameBuf | ( | SceDisplayFrameBuf * | pParam, |
int | sync | ||
) |
Get current framebuffer parameters.
[out] | pParam | - Pointer to a SceDisplayFrameBuf structure which will receive framebuffer parameters. |
[in] | sync | - One of ::DisplaySetBufSync |
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.
[in] | pid | - PID of the process to get the framebuffer information from. It can either be a vallid PID, -1 to use the current configured framebuffer for the head and index, or 0 to use the PID of the caller. |
[in] | head | - Use 0 for OLED/LCD and 1 for HDMI |
[in] | index | - Can be 0 or 1 |
[out] | info | - Pointer to a SceDisplayFrameBufInfo structure which will receive the framebuffer information. |
int ksceDisplayGetMaximumFrameBufResolution | ( | int * | width, |
int * | height | ||
) |
Get maximum framebuffer resolution.
[out] | width | - Maximum width |
[out] | height | - Maximum height |
int ksceDisplayGetPrimaryHead | ( | void | ) |
Primary display index.
int ksceDisplayGetVcountInternal | ( | int | display | ) |
Number of vertical blank pulses up to now for a display.
[in] | display | - Display index |
int ksceDisplayWaitVblankStart | ( | void | ) |
Wait for vertical blank start.
int ksceDisplayWaitVblankStartInternal | ( | int | display | ) |
Wait for vertical blank start for display.
[in] | display | - Display index |
int ksceDisplayWaitVblankStartCB | ( | void | ) |
Wait for vertical blank start with callback.
int ksceDisplayWaitVblankStartCBInternal | ( | int | display | ) |
Wait for vertical blank start with callback for display.
[in] | display | - Display index |
int ksceDisplayWaitVblankStartMulti | ( | unsigned int | vcount | ) |
Wait for vertical blank start after specified number of vertical periods.
[in] | vcount | - Number of vertical periods before waiting for vertical blank start |
int ksceDisplayWaitVblankStartMultiInternal | ( | int | display, |
unsigned int | vcount | ||
) |
Wait for vertical blank start after specified number of vertical periods for display.
[in] | display | - Display index |
[in] | vcount | - Number of vertical periods before waiting for vertical blank start |
int ksceDisplayWaitVblankStartMultiCB | ( | unsigned int | vcount | ) |
Wait for vertical blank start with callback after specified number of vertical periods.
[in] | vcount | - Number of vertical periods before waiting for vertical blank start |
int ksceDisplayWaitVblankStartMultiCBInternal | ( | int | display, |
unsigned int | vcount | ||
) |
Wait for vertical blank start with callback after specified number of vertical periods for display.
[in] | display | - Display index |
[in] | vcount | - Number of vertical periods before waiting for vertical blank start |
int ksceDisplayWaitSetFrameBuf | ( | void | ) |
Wait for vertical blank start since last update of framebuffer.
int ksceDisplayWaitSetFrameBufCB | ( | void | ) |
Wait for vertical blank start with callback since last update of framebuffer.
int ksceDisplayWaitSetFrameBufMulti | ( | unsigned int | vcount | ) |
Wait for vertical blank start after specified number of vertical periods since last update of framebuffer.
[in] | vcount | - Number of vertical periods before waiting for vertical blank start |
int ksceDisplayWaitSetFrameBufMultiCB | ( | unsigned int | vcount | ) |
Wait for vertical blank start with callback after specified number of vertical periods since last update of framebuffer.
[in] | vcount | - Number of vertical periods before waiting for vertical blank start |
int ksceDisplayRegisterVblankStartCallback | ( | SceUID | uid | ) |
Register callback to be used at each vertical blank start.
[in] | uid | - Callback UID |
int ksceDisplayRegisterVblankStartCallbackInternal | ( | int | display, |
SceUID | uid | ||
) |
Register callback to be used at each vertical blank start for a display.
[in] | display | - Display index |
[in] | uid | - Callback UID |
int ksceDisplayUnregisterVblankStartCallback | ( | SceUID | uid | ) |
Unregister callback used at each vertical blank start.
[in] | uid | - Callback UID |
int ksceDisplayUnregisterVblankStartCallbackInternal | ( | int | display, |
SceUID | uid | ||
) |
Unregister callback used at each vertical blank start for a display.
[in] | display | - Display index |
[in] | uid | - Callback UID |
int ksceDisplayRegisterFrameBufCallback | ( | SceUID | uid | ) |
Register callback to be used when the framebuffer changes.
[in] | uid | - Callback UID |
int ksceDisplayRegisterFrameBufCallbackInternal | ( | int | display, |
SceUID | uid | ||
) |
Register callback to be used when the framebuffer changes for a display.
[in] | display | - Display index |
[in] | uid | - Callback UID |
int ksceDisplaySetInvertColors | ( | int | display, |
int | enable | ||
) |
Enable/disable color inversion for a display.
[in] | display | - Display index |
[in] | enable | - Enable/disable color inversion |
int ksceDisplaySetOwner | ( | int | head, |
int | index, | ||
SceUID | pid | ||
) |
Set display plane owner.
[in] | head | - Use 0 for OLED/LCD and 1 for HDMI |
[in] | index | - Can be 0 or 1 |
[in] | pid | - PID of the new owner |