![]() |
vitasdk
Documentation of the vitasdk
|
Exports for Kernel. More...
Data Structures | |
| struct | SceDisplayFrameBuf |
| Structure used with ksceDisplaySetFrameBuf to set/update framebuffer. More... | |
| struct | SceDisplayFrameBufExt |
| Extended framebuffer descriptor accepted by FW 3.60. More... | |
| struct | SceDisplayCaptureFrameBuf |
| Framebuffer capture destination. More... | |
| struct | SceDisplayResolutionInfo |
| struct | SceDisplayFrameBufInfo |
| Extended framebuffer information. More... | |
| struct | SceDisplayViewportConf |
Typedefs | |
| typedef SceUInt32 | SceDisplayScreenMode |
| Storage type for one of SceDisplayScreenModeId. | |
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 (4, SceDisplayFrameBufFlag) | |
| VITASDK_BUILD_ASSERT_EQ (0x1C, SceDisplayFrameBufExt) | |
| VITASDK_BUILD_ASSERT_EQ (1, SceDisplayFrameBufType) | |
| VITASDK_BUILD_ASSERT_EQ (1, SceDisplayHead) | |
| VITASDK_BUILD_ASSERT_EQ (2, SceDisplayScreenModeId) | |
| VITASDK_BUILD_ASSERT_EQ (4, SceDisplayScreenMode) | |
| VITASDK_BUILD_ASSERT_EQ (1, SceDisplayScanMode) | |
| VITASDK_BUILD_ASSERT_EQ (0x18, SceDisplayCaptureFrameBuf) | |
| VITASDK_BUILD_ASSERT_EQ (0x1C, SceDisplayResolutionInfo) | |
| VITASDK_BUILD_ASSERT_EQ (0x2C, SceDisplayFrameBufInfo) | |
| int | ksceDisplaySetFrameBuf (const SceDisplayFrameBuf *pParam, int sync) |
| Set/Update framebuffer parameters. | |
| int | ksceDisplaySetFrameBufInternal (int head, int index, const SceDisplayFrameBuf *pParam, int sync) |
| Set/Update framebuffer parameters for display. | |
| int | ksceDisplayGetFrameBuf (SceDisplayFrameBuf *pParam, int sync) |
| Get current framebuffer parameters. | |
| 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 | ksceDisplayGetMaximumFrameBufResolution (int *width, int *height) |
| Get maximum framebuffer resolution. | |
| int | ksceDisplayGetPrimaryHead (void) |
| Primary display index. | |
| int | ksceDisplayGetVcountInternal (int display) |
| Number of vertical blank pulses up to now for a display. | |
| int | ksceDisplayWaitVblankStart (void) |
| Wait for vertical blank start. | |
| int | ksceDisplayWaitVblankStartInternal (int display) |
| Wait for vertical blank start for display. | |
| int | ksceDisplayWaitVblankStartCB (void) |
| Wait for vertical blank start with callback. | |
| int | ksceDisplayWaitVblankStartCBInternal (int display) |
| Wait for vertical blank start with callback for display. | |
| int | ksceDisplayWaitVblankStartMulti (unsigned int vcount) |
| Wait for vertical blank start after specified number of vertical periods. | |
| int | ksceDisplayWaitVblankStartMultiInternal (int display, unsigned int vcount) |
| Wait for vertical blank start after specified number of vertical periods for display. | |
| int | ksceDisplayWaitVblankStartMultiCB (unsigned int vcount) |
| Wait for vertical blank start with callback after specified number of vertical periods. | |
| int | ksceDisplayWaitVblankStartMultiCBInternal (int display, unsigned int vcount) |
| Wait for vertical blank start with callback after specified number of vertical periods for display. | |
| 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. | |
| int | ksceDisplayWaitSetFrameBufMultiCB (unsigned int vcount) |
| Wait for vertical blank start with callback after specified number of vertical periods since last update of framebuffer. | |
| int | ksceDisplayRegisterVblankStartCallback (SceUID uid) |
| Register callback to be used at each vertical blank start. | |
| int | ksceDisplayRegisterVblankStartCallbackInternal (int display, SceUID uid) |
| Register callback to be used at each vertical blank start for a display. | |
| int | ksceDisplayUnregisterVblankStartCallback (SceUID uid) |
| Unregister callback used at each vertical blank start. | |
| int | ksceDisplayUnregisterVblankStartCallbackInternal (int display, SceUID uid) |
| Unregister callback used at each vertical blank start for a display. | |
| int | ksceDisplayRegisterFrameBufCallback (SceUID uid) |
| Register callback to be used when the framebuffer changes. | |
| int | ksceDisplayRegisterFrameBufCallbackInternal (int display, SceUID uid) |
| Register callback to be used when the framebuffer changes for a display. | |
| int | ksceDisplaySetInvertColors (int display, int enable) |
| Enable/disable color inversion for a display. | |
| int | ksceDisplaySetOwner (int head, int index, SceUID pid) |
| Set display plane owner. | |
| VITASDK_BUILD_ASSERT_EQ (0x14, SceDisplayViewportConf) | |
| VITASDK_BUILD_ASSERT_EQ (1, SceDisplayDeviceType) | |
| VITASDK_BUILD_ASSERT_EQ (1, SceDisplayColorSpaceMode) | |
| SceInt32 | ksceDisplayCaptureFrameBufDMAC (SceUID pid, SceDisplayCaptureFrameBuf *capture_frame_buf) |
| Capture the current process's primary GAME_APP framebuffer through DMAC. | |
| SceInt32 | ksceDisplayCaptureFrameBufDMACInternal (SceUID pid, SceDisplayHead head, SceDisplayFrameBufType fb_idx, SceDisplayCaptureFrameBuf *capture_frame_buf) |
| Capture a selected process framebuffer through DMAC. | |
| SceInt32 | ksceDisplayCaptureFrameBufIFTU (SceUID pid, const SceDisplayCaptureFrameBuf *capture_frame_buf) |
| Convert and capture the current process's primary GAME_APP framebuffer through IFTU. | |
| SceInt32 | ksceDisplayCaptureFrameBufIFTUInternal (SceUID pid, SceDisplayHead head, SceDisplayFrameBufType fb_idx, const SceDisplayCaptureFrameBuf *capture_frame_buf) |
| Convert and capture a selected process framebuffer through IFTU. | |
| int | ksceDisplayDisableHead (SceDisplayHead head) |
| Disable a display head. | |
| int | ksceDisplayEnableHead (SceDisplayHead head) |
| Enable a display head. | |
| int | ksceDisplayGetActualViewportConf (SceDisplayHead head, SceDisplayFrameBufType fb_idx, SceDisplayViewportConf *viewport_conf) |
| Get the effective viewport for a framebuffer slot. | |
| int | ksceDisplayGetDeviceType (SceDisplayHead head, SceUInt32 *device_info) |
| Get the hardware type for a display head. | |
| int | ksceDisplayGetFrameBufInternal (SceDisplayHead head, SceDisplayFrameBufType fb_idx, SceDisplayFrameBufExt *frame_buf, SceDisplaySetBufSync update_timing_mode) |
| Get one current process framebuffer slot. | |
| int | ksceDisplayGetOutputMode (SceDisplayHead head, SceDisplayScreenMode *screen_mode, SceUInt32 *output_format) |
| Get the configured screen-mode ID and output-format value for a head. | |
| SceInt32 | ksceDisplayGetRefreshRateInternal (SceDisplayHead head, float *fps, SceUInt32 *scan_mode) |
| Get a head's theoretical refresh rate and scan mode. | |
| int | ksceDisplayGetResolutionInfoInternal (SceDisplayHead head, SceDisplayResolutionInfo *info) |
| Get complete resolution and output-mode information for a head. | |
| int | ksceDisplaySetBrightness (SceDisplayHead head, SceUInt32 brightness) |
| Set display brightness. | |
| int | ksceDisplaySetColorSpaceMode (SceDisplayHead head, SceUInt32 mode) |
| Set the main panel's device-dependent color-space mode. | |
| int | ksceDisplaySetMergeConf (SceDisplayHead head, int control, SceUInt32 alpha) |
| Configure overlay-plane blending for a head. | |
| int | ksceDisplaySetOutputMode (SceDisplayHead head, SceDisplayScreenMode screen_mode, SceUInt32 output_format) |
| Set a head's complete screen-mode ID and output-format value. | |
| int | ksceDisplaySetScaleConf (float scale, SceDisplayHead head, SceDisplayFrameBufType fb_idx, int scaling) |
| Set scaling for a display head's framebuffer slot. | |
| int | ksceDisplaySetViewportConf (SceDisplayHead head, SceDisplayFrameBufType fb_idx, const SceDisplayViewportConf *viewport_conf) |
| Set viewport scaling for a framebuffer slot. | |
| SceInt32 | ksceDisplayWaitSetFrameBufCBInternal (SceDisplayHead head, SceDisplayFrameBufType fb_idx) |
| Wait for the next vertical blank start since the last update of the selected framebuffer, processing callbacks while waiting. | |
| SceInt32 | ksceDisplayWaitSetFrameBufInternal (SceDisplayHead head, SceDisplayFrameBufType fb_idx) |
| Wait for the next vertical blank start since the last update of the selected framebuffer. | |
| SceInt32 | ksceDisplayWaitSetFrameBufMultiCBInternal (SceDisplayHead head, SceDisplayFrameBufType fb_idx, SceUInt32 vcount) |
| Wait for vertical blank start after the specified number of vertical periods since the last update of the selected framebuffer, processing callbacks while waiting. | |
| SceInt32 | ksceDisplayWaitSetFrameBufMultiInternal (SceDisplayHead head, SceDisplayFrameBufType fb_idx, SceUInt32 vcount) |
| Wait for vertical blank start after the specified number of vertical periods since the last update of the selected framebuffer. | |
Variables | |
| SceSize | SceDisplayFrameBuf::size |
| sizeof(SceDisplayFrameBuf) | |
| void * | SceDisplayFrameBuf::base |
| Pointer to framebuffer. | |
| unsigned int | SceDisplayFrameBuf::pitch |
| pitch pixels | |
| unsigned int | SceDisplayFrameBuf::pixelformat |
| Combined pixel-format and RGB-range encoding. | |
| unsigned int | SceDisplayFrameBuf::width |
| framebuffer width | |
| unsigned int | SceDisplayFrameBuf::height |
| framebuffer height | |
| SceSize | SceDisplayFrameBufExt::size |
| Must be set to sizeof(SceDisplayFrameBufExt). | |
| void * | SceDisplayFrameBufExt::base |
| Framebuffer base address. | |
| unsigned int | SceDisplayFrameBufExt::pitch |
| Pitch in pixels. | |
| unsigned int | SceDisplayFrameBufExt::pixelformat |
| Combined pixel-format and RGB-range encoding. | |
| unsigned int | SceDisplayFrameBufExt::width |
| Framebuffer width in pixels. | |
| unsigned int | SceDisplayFrameBufExt::height |
| Framebuffer height in pixels. | |
| SceUInt32 | SceDisplayFrameBufExt::flags |
| Bitwise OR of SceDisplayFrameBufFlag values and other firmware-defined bits. | |
| SceSize | SceDisplayCaptureFrameBuf::size |
| Must be set to sizeof(SceDisplayCaptureFrameBuf). | |
| void * | SceDisplayCaptureFrameBuf::base |
| Capture destination; must be aligned to 0x100 bytes on FW 3.60. | |
| unsigned int | SceDisplayCaptureFrameBuf::pitch |
| Destination pitch in pixels. | |
| unsigned int | SceDisplayCaptureFrameBuf::pixelformat |
| Format value; see the capture function being used. | |
| unsigned int | SceDisplayCaptureFrameBuf::width |
| Requested or resulting width in pixels. | |
| unsigned int | SceDisplayCaptureFrameBuf::height |
| Requested or resulting height in pixels. | |
| SceSize | SceDisplayResolutionInfo::size |
| Must be set to sizeof(SceDisplayResolutionInfo). | |
| SceDisplayScreenMode | SceDisplayResolutionInfo::screen_mode |
| One of SceDisplayScreenModeId. | |
| SceUInt32 | SceDisplayResolutionInfo::width |
| Output width in pixels. | |
| SceUInt32 | SceDisplayResolutionInfo::height |
| Output height in pixels. | |
| SceUInt32 | SceDisplayResolutionInfo::output_format |
| Combined pixel-format and RGB-range encoding. | |
| SceUInt32 | SceDisplayResolutionInfo::scan_mode |
| One of SceDisplayScanMode; stored as a 32-bit value. | |
| float | SceDisplayResolutionInfo::fps |
| Driver refresh-rate value; approximately 59.940056 on FW 3.60. | |
| SceSize | SceDisplayFrameBufInfo::size |
| sizeof(SceDisplayFrameBufInfo) | |
| SceUID | SceDisplayFrameBufInfo::pid |
| PID of the process owning this framebuffer. | |
| unsigned int | SceDisplayFrameBufInfo::vblankcount |
| Amount of VBlanks this framebuffer has been displayed. | |
| uintptr_t | SceDisplayFrameBufInfo::paddr |
| Physical address. | |
| SceDisplayFrameBuf | SceDisplayFrameBufInfo::framebuf |
| First 0x18 bytes of the framebuffer descriptor. | |
| unsigned int | SceDisplayFrameBufInfo::resolution |
| Extended framebuffer flags; same value as SceDisplayFrameBufExt::flags. | |
| SceSize | SceDisplayViewportConf::size |
| Must be set to 0x14. | |
| unsigned int | SceDisplayViewportConf::x |
| Horizontal viewport offset in pixels. | |
| unsigned int | SceDisplayViewportConf::y |
| Vertical viewport offset in pixels. | |
| unsigned int | SceDisplayViewportConf::width |
| Viewport width in pixels. | |
| unsigned int | SceDisplayViewportConf::height |
| Viewport height in pixels. | |
Exports for Kernel.
Include the header file in your project:
Include the header file in your project:
Link the library to the executable:
| 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 | Combined pixel-format and RGB-range encoding. |
| unsigned int | width | framebuffer width |
| unsigned int | height | framebuffer height |
| struct SceDisplayFrameBufExt |
Extended framebuffer descriptor accepted by FW 3.60.
SceDisplayFrameBuf remains 0x18 bytes for backwards compatibility. The raw and internal framebuffer APIs also accept this 0x1C-byte structure. To use it, set size to sizeof(SceDisplayFrameBufExt). FW 3.60 permits only bits in the mask 0x001F0000 in flags. The purposes of bits 0x00020000 and 0x00080000 are unknown. For a 0x18-byte structure, the driver sets SCE_DISPLAY_FRAMEBUF_FLAG_BILINEAR internally.
| Data Fields | ||
|---|---|---|
| SceSize | size | Must be set to sizeof(SceDisplayFrameBufExt). |
| void * | base | Framebuffer base address. |
| unsigned int | pitch | Pitch in pixels. |
| unsigned int | pixelformat | Combined pixel-format and RGB-range encoding. |
| unsigned int | width | Framebuffer width in pixels. |
| unsigned int | height | Framebuffer height in pixels. |
| SceUInt32 | flags | Bitwise OR of SceDisplayFrameBufFlag values and other firmware-defined bits. |
| struct SceDisplayCaptureFrameBuf |
Framebuffer capture destination.
The DMAC capture functions use width and height as maximum dimensions, ignore the input pixelformat, and replace all three fields with the copied source values. The IFTU capture functions instead use all three fields as destination parameters and leave the structure unchanged.
| Data Fields | ||
|---|---|---|
| SceSize | size | Must be set to sizeof(SceDisplayCaptureFrameBuf). |
| void * | base | Capture destination; must be aligned to 0x100 bytes on FW 3.60. |
| unsigned int | pitch | Destination pitch in pixels. |
| unsigned int | pixelformat | Format value; see the capture function being used. |
| unsigned int | width | Requested or resulting width in pixels. |
| unsigned int | height | Requested or resulting height in pixels. |
| struct SceDisplayResolutionInfo |
| Data Fields | ||
|---|---|---|
| SceSize | size | Must be set to sizeof(SceDisplayResolutionInfo). |
| SceDisplayScreenMode | screen_mode | One of SceDisplayScreenModeId. |
| SceUInt32 | width | Output width in pixels. |
| SceUInt32 | height | Output height in pixels. |
| SceUInt32 | output_format | Combined pixel-format and RGB-range encoding. |
| SceUInt32 | scan_mode | One of SceDisplayScanMode; stored as a 32-bit value. |
| float | fps | Driver refresh-rate value; approximately 59.940056 on FW 3.60. |
| 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 | First 0x18 bytes of the framebuffer descriptor. |
| unsigned int | resolution | Extended framebuffer flags; same value as SceDisplayFrameBufExt::flags. |
| struct SceDisplayViewportConf |
| Data Fields | ||
|---|---|---|
| SceSize | size | Must be set to 0x14. |
| unsigned int | x | Horizontal viewport offset in pixels. |
| unsigned int | y | Vertical viewport offset in pixels. |
| unsigned int | width | Viewport width in pixels. |
| unsigned int | height | Viewport height in pixels. |
| typedef SceUInt32 SceDisplayScreenMode |
Storage type for one of SceDisplayScreenModeId.
| enum SceDisplayErrorCode |
| enum SceDisplaySetBufSync |
Flags stored in SceDisplayFrameBufExt::flags.
| Enumerator | |
|---|---|
| SCE_DISPLAY_FRAMEBUF_FLAG_SHARED | Identifies a shared framebuffer. |
| SCE_DISPLAY_FRAMEBUF_FLAG_BILINEAR | Enable bilinear filtering. |
| enum SceDisplayHead |
Complete screen-mode identifiers accepted by the FW 3.60 DSI driver.
Use these IDs as listed; do not combine them as flags. For example, 1080p at 24 Hz is 0x8730; ORing 0x0700 with 0x0020 produces 0x0720, which FW 3.60 rejects.
| enum SceDisplayScanMode |
| enum SceDisplayDeviceType |
Non-negative device types returned by ksceDisplayGetDeviceType.
| Enumerator | |
|---|---|
| SCE_DISPLAY_DEVICE_TYPE_NONE | |
| SCE_DISPLAY_DEVICE_TYPE_OLED | |
| SCE_DISPLAY_DEVICE_TYPE_LCD | |
| SCE_DISPLAY_DEVICE_TYPE_HDMI | |
Device-dependent values accepted by ksceDisplaySetColorSpaceMode.
| 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 | ( | 4 | , |
| SceDisplayFrameBufFlag | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x1C | , |
| SceDisplayFrameBufExt | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 1 | , |
| SceDisplayFrameBufType | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 1 | , |
| SceDisplayHead | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 2 | , |
| SceDisplayScreenModeId | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
| SceDisplayScreenMode | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 1 | , |
| SceDisplayScanMode | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x18 | , |
| SceDisplayCaptureFrameBuf | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x1C | , |
| SceDisplayResolutionInfo | |||
| ) |
| 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 SceDisplaySetBufSync |
| 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 SceDisplaySetBufSync |
| 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 SceDisplaySetBufSync |
| 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 |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x14 | , |
| SceDisplayViewportConf | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 1 | , |
| SceDisplayDeviceType | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 1 | , |
| SceDisplayColorSpaceMode | |||
| ) |
| SceInt32 ksceDisplayCaptureFrameBufDMAC | ( | SceUID | pid, |
| SceDisplayCaptureFrameBuf * | capture_frame_buf | ||
| ) |
Capture the current process's primary GAME_APP framebuffer through DMAC.
The destination address must be aligned to 0x100 bytes. Pitch must be a multiple of 64 pixels and at least the requested width. On success, FW 3.60 replaces the structure's width, height, and pixel format with the actual copied source values.
| [in] | pid | - Source process ID, or 0 for the calling process. |
| [in,out] | capture_frame_buf | - Capture destination and resulting format. |
| SceInt32 ksceDisplayCaptureFrameBufDMACInternal | ( | SceUID | pid, |
| SceDisplayHead | head, | ||
| SceDisplayFrameBufType | fb_idx, | ||
| SceDisplayCaptureFrameBuf * | capture_frame_buf | ||
| ) |
Capture a selected process framebuffer through DMAC.
| [in] | pid | - Source process ID, or 0 for the calling process. |
| [in] | head | - Main or HDMI display head. |
| [in] | fb_idx | - One of SceDisplayFrameBufType. |
| [in,out] | capture_frame_buf | - Capture destination and resulting format. The same rules apply as for ksceDisplayCaptureFrameBufDMAC. |
| SceInt32 ksceDisplayCaptureFrameBufIFTU | ( | SceUID | pid, |
| const SceDisplayCaptureFrameBuf * | capture_frame_buf | ||
| ) |
Convert and capture the current process's primary GAME_APP framebuffer through IFTU.
The destination address must be aligned to 0x100 bytes. FW 3.60 accepts pixel format values 0x00000000, 0x00008000, 0x00100000, 0x00108000, 0x60800000, 0x60808000, 0x60900000, and 0x60908000. The destination buffer must contain at least pitch * height * 4 bytes.
| [in] | pid | - Source process ID, or 0 for the calling process. |
| [in] | capture_frame_buf | - Capture destination description. |
| SceInt32 ksceDisplayCaptureFrameBufIFTUInternal | ( | SceUID | pid, |
| SceDisplayHead | head, | ||
| SceDisplayFrameBufType | fb_idx, | ||
| const SceDisplayCaptureFrameBuf * | capture_frame_buf | ||
| ) |
Convert and capture a selected process framebuffer through IFTU.
| [in] | pid | - Source process ID, or 0 for the calling process. |
| [in] | head | - Main or HDMI display head. |
| [in] | fb_idx | - One of SceDisplayFrameBufType. |
| [in] | capture_frame_buf | - Capture destination description. The same rules apply as for ksceDisplayCaptureFrameBufIFTU. |
| int ksceDisplayDisableHead | ( | SceDisplayHead | head | ) |
Disable a display head.
| [in] | head | - Main or HDMI display head. |
| int ksceDisplayEnableHead | ( | SceDisplayHead | head | ) |
Enable a display head.
| [in] | head | - Main or HDMI display head. |
| int ksceDisplayGetActualViewportConf | ( | SceDisplayHead | head, |
| SceDisplayFrameBufType | fb_idx, | ||
| SceDisplayViewportConf * | viewport_conf | ||
| ) |
Get the effective viewport for a framebuffer slot.
The output must be non-NULL with its size member set to 0x14. FW 3.60 returns zero for x, y, width, and height when the slot has no owner or active framebuffer.
| [in] | head | - Main or HDMI display head. |
| [in] | fb_idx | - One of SceDisplayFrameBufType. |
| [in,out] | viewport_conf | - Receives the viewport; set its size member first. |
| int ksceDisplayGetDeviceType | ( | SceDisplayHead | head, |
| SceUInt32 * | device_info | ||
| ) |
Get the hardware type for a display head.
On FW 3.60, OLED returns 1 and writes 0x103, LCD returns 2 and writes 0x101, HDMI returns 3 and writes 0x101, and an absent device returns 0 and writes 0. The output pointer is optional.
| [in] | head | - Display head. |
| [out] | device_info | - Optional device-information output. |
| int ksceDisplayGetFrameBufInternal | ( | SceDisplayHead | head, |
| SceDisplayFrameBufType | fb_idx, | ||
| SceDisplayFrameBufExt * | frame_buf, | ||
| SceDisplaySetBufSync | update_timing_mode | ||
| ) |
Get one current process framebuffer slot.
FW 3.60 always writes 0x1C bytes. Although the size member may be 0x18 or 0x1C, callers must provide storage for the complete extended framebuffer structure.
| [in] | head | - Main or HDMI display head. |
| [in] | fb_idx | - One of SceDisplayFrameBufType. |
| [in,out] | frame_buf | - Receives the extended framebuffer information; set its size member first. |
| [in] | update_timing_mode | - One of SceDisplaySetBufSync. FW 3.60 validates but otherwise ignores this value. |
| int ksceDisplayGetOutputMode | ( | SceDisplayHead | head, |
| SceDisplayScreenMode * | screen_mode, | ||
| SceUInt32 * | output_format | ||
| ) |
Get the configured screen-mode ID and output-format value for a head.
| [in] | head | - Display head. |
| [out] | screen_mode | - Optional complete screen-mode ID output. |
| [out] | output_format | - Optional pixel-format/RGB-range output. |
| SceInt32 ksceDisplayGetRefreshRateInternal | ( | SceDisplayHead | head, |
| float * | fps, | ||
| SceUInt32 * | scan_mode | ||
| ) |
Get a head's theoretical refresh rate and scan mode.
Either output pointer may be NULL. The scan-mode output is a 32-bit value containing one of SceDisplayScanMode. FW 3.60 reports approximately 59.940056 through fps for every configured screen mode; this value is not calculated from the selected DSI timing.
| [in] | head | - Display head. |
| [out] | fps | - Optional stored refresh-rate output. |
| [out] | scan_mode | - Optional 32-bit scan-mode output. |
| int ksceDisplayGetResolutionInfoInternal | ( | SceDisplayHead | head, |
| SceDisplayResolutionInfo * | info | ||
| ) |
Get complete resolution and output-mode information for a head.
| [in] | head | - Display head. |
| [in,out] | info | - Receives the information; set its size member to 0x1C. |
| int ksceDisplaySetBrightness | ( | SceDisplayHead | head, |
| SceUInt32 | brightness | ||
| ) |
Set display brightness.
For the main panel, values from 0 through 0x10000 are passed to the active OLED or LCD driver. For HDMI, zero remains zero, one becomes 0x8000, and values from two through 0x10000 become 0x8000 + (brightness >> 1) before being applied to the IFTU color-conversion matrices.
| [in] | head | - Main or HDMI display head. |
| [in] | brightness | - Brightness value from zero through 0x10000. |
| int ksceDisplaySetColorSpaceMode | ( | SceDisplayHead | head, |
| SceUInt32 | mode | ||
| ) |
Set the main panel's device-dependent color-space mode.
| [in] | head | - Must be SCE_DISPLAY_HEAD_MAIN_LCD_OLED. |
| [in] | mode | - One of SceDisplayColorSpaceMode. |
| int ksceDisplaySetMergeConf | ( | SceDisplayHead | head, |
| int | control, | ||
| SceUInt32 | alpha | ||
| ) |
Configure overlay-plane blending for a head.
The control value is passed unchanged to IFTU. Value 0x80 disables blending; every other value enables blending. FW 3.60 performs no other validation of this value.
| [in] | head | - Main or HDMI display head. |
| [in] | control | - Raw IFTU merge-control value. |
| [in] | alpha | - Overlay alpha from 0 through 0x100. |
| int ksceDisplaySetOutputMode | ( | SceDisplayHead | head, |
| SceDisplayScreenMode | screen_mode, | ||
| SceUInt32 | output_format | ||
| ) |
Set a head's complete screen-mode ID and output-format value.
The output-format value combines a pixel-format encoding with RGB-range bit 0 where supported. For the main head, FW 3.60 accepts values 0x00000000, 0x00100000, 0x60800000, and 0x60900000. For HDMI it additionally accepts values 0x00000001, 0x00008000, 0x00100001, 0x00108000, 0x60800001, 0x60808000, 0x60900001, and 0x60908000.
| [in] | head | - Main or HDMI display head. |
| [in] | screen_mode | - One of SceDisplayScreenModeId. Use these IDs as listed; do not combine them as flags. |
| [in] | output_format | - Combined pixel-format and RGB-range encoding. |
| int ksceDisplaySetScaleConf | ( | float | scale, |
| SceDisplayHead | head, | ||
| SceDisplayFrameBufType | fb_idx, | ||
| int | scaling | ||
| ) |
Set scaling for a display head's framebuffer slot.
On FW 3.60, scale must be 0 when bit 0 of scaling is clear. When bit 0 is set, bits 6 and 7 must be clear and scale must be between 0.8 and 1.2, inclusive. Observed callers also use scaling values 0x40 and 0x80 with a zero scale.
| [in] | scale | - Per-slot scale factor. |
| [in] | head | - Main or HDMI display head. |
| [in] | fb_idx | - One of SceDisplayFrameBufType. |
| [in] | scaling | - Scaling-control bits described above. |
| int ksceDisplaySetViewportConf | ( | SceDisplayHead | head, |
| SceDisplayFrameBufType | fb_idx, | ||
| const SceDisplayViewportConf * | viewport_conf | ||
| ) |
Set viewport scaling for a framebuffer slot.
NULL, or x = 0, y = 0, width = 960, and height = 544, selects the default full viewport. A non-NULL structure must have its size member set to 0x14; FW 3.60 rejects x values above 640 and y values above 364.
| [in] | head | - Main or HDMI display head. |
| [in] | fb_idx | - One of SceDisplayFrameBufType. |
| [in] | viewport_conf | - Viewport configuration, or NULL for the default. |
| SceInt32 ksceDisplayWaitSetFrameBufCBInternal | ( | SceDisplayHead | head, |
| SceDisplayFrameBufType | fb_idx | ||
| ) |
Wait for the next vertical blank start since the last update of the selected framebuffer, processing callbacks while waiting.
| [in] | head | - Display head. |
| [in] | fb_idx | - Framebuffer slot. FW 3.60 uses only the low bit. |
| SceInt32 ksceDisplayWaitSetFrameBufInternal | ( | SceDisplayHead | head, |
| SceDisplayFrameBufType | fb_idx | ||
| ) |
Wait for the next vertical blank start since the last update of the selected framebuffer.
| [in] | head | - Display head. |
| [in] | fb_idx | - Framebuffer slot. FW 3.60 uses only the low bit. |
| SceInt32 ksceDisplayWaitSetFrameBufMultiCBInternal | ( | SceDisplayHead | head, |
| SceDisplayFrameBufType | fb_idx, | ||
| SceUInt32 | vcount | ||
| ) |
Wait for vertical blank start after the specified number of vertical periods since the last update of the selected framebuffer, processing callbacks while waiting.
| [in] | head | - Display head. |
| [in] | fb_idx | - Framebuffer slot. FW 3.60 uses only the low bit. |
| [in] | vcount | - Number of vertical periods to wait, from 1 through 0xFFFF. |
| SceInt32 ksceDisplayWaitSetFrameBufMultiInternal | ( | SceDisplayHead | head, |
| SceDisplayFrameBufType | fb_idx, | ||
| SceUInt32 | vcount | ||
| ) |
Wait for vertical blank start after the specified number of vertical periods since the last update of the selected framebuffer.
| [in] | head | - Display head. |
| [in] | fb_idx | - Framebuffer slot. FW 3.60 uses only the low bit. |
| [in] | vcount | - Number of vertical periods to wait, from 1 through 0xFFFF. |
| SceSize SceDisplayFrameBuf::size |
sizeof(SceDisplayFrameBuf)
| void* SceDisplayFrameBuf::base |
Pointer to framebuffer.
| unsigned int SceDisplayFrameBuf::pitch |
pitch pixels
| unsigned int SceDisplayFrameBuf::pixelformat |
Combined pixel-format and RGB-range encoding.
| unsigned int SceDisplayFrameBuf::width |
framebuffer width
| unsigned int SceDisplayFrameBuf::height |
framebuffer height
| SceSize SceDisplayFrameBufExt::size |
Must be set to sizeof(SceDisplayFrameBufExt).
| void* SceDisplayFrameBufExt::base |
Framebuffer base address.
| unsigned int SceDisplayFrameBufExt::pitch |
Pitch in pixels.
| unsigned int SceDisplayFrameBufExt::pixelformat |
Combined pixel-format and RGB-range encoding.
| unsigned int SceDisplayFrameBufExt::width |
Framebuffer width in pixels.
| unsigned int SceDisplayFrameBufExt::height |
Framebuffer height in pixels.
| SceUInt32 SceDisplayFrameBufExt::flags |
Bitwise OR of SceDisplayFrameBufFlag values and other firmware-defined bits.
| SceSize SceDisplayCaptureFrameBuf::size |
Must be set to sizeof(SceDisplayCaptureFrameBuf).
| void* SceDisplayCaptureFrameBuf::base |
Capture destination; must be aligned to 0x100 bytes on FW 3.60.
| unsigned int SceDisplayCaptureFrameBuf::pitch |
Destination pitch in pixels.
| unsigned int SceDisplayCaptureFrameBuf::pixelformat |
Format value; see the capture function being used.
| unsigned int SceDisplayCaptureFrameBuf::width |
Requested or resulting width in pixels.
| unsigned int SceDisplayCaptureFrameBuf::height |
Requested or resulting height in pixels.
| SceSize SceDisplayResolutionInfo::size |
Must be set to sizeof(SceDisplayResolutionInfo).
| SceDisplayScreenMode SceDisplayResolutionInfo::screen_mode |
One of SceDisplayScreenModeId.
| SceUInt32 SceDisplayResolutionInfo::width |
Output width in pixels.
| SceUInt32 SceDisplayResolutionInfo::height |
Output height in pixels.
| SceUInt32 SceDisplayResolutionInfo::output_format |
Combined pixel-format and RGB-range encoding.
| SceUInt32 SceDisplayResolutionInfo::scan_mode |
One of SceDisplayScanMode; stored as a 32-bit value.
| float SceDisplayResolutionInfo::fps |
Driver refresh-rate value; approximately 59.940056 on FW 3.60.
| SceSize SceDisplayFrameBufInfo::size |
sizeof(SceDisplayFrameBufInfo)
| SceUID SceDisplayFrameBufInfo::pid |
PID of the process owning this framebuffer.
| unsigned int SceDisplayFrameBufInfo::vblankcount |
Amount of VBlanks this framebuffer has been displayed.
| uintptr_t SceDisplayFrameBufInfo::paddr |
Physical address.
| SceDisplayFrameBuf SceDisplayFrameBufInfo::framebuf |
First 0x18 bytes of the framebuffer descriptor.
| unsigned int SceDisplayFrameBufInfo::resolution |
Extended framebuffer flags; same value as SceDisplayFrameBufExt::flags.
| SceSize SceDisplayViewportConf::size |
Must be set to 0x14.
| unsigned int SceDisplayViewportConf::x |
Horizontal viewport offset in pixels.
| unsigned int SceDisplayViewportConf::y |
Vertical viewport offset in pixels.
| unsigned int SceDisplayViewportConf::width |
Viewport width in pixels.
| unsigned int SceDisplayViewportConf::height |
Viewport height in pixels.