Video mode management.
More...
#include <ppu-types.h>
Go to the source code of this file.
|
#define | VIDEO_STATE_DISABLED 0 |
|
#define | VIDEO_STATE_ENABLED 1 |
|
#define | VIDEO_STATE_BUSY 3 |
|
#define | VIDEO_PRIMARY 0 |
|
#define | VIDEO_SECONDARY 1 |
|
#define | VIDEO_SCANMODE_INTERLACE 0 |
|
#define | VIDEO_SCANMODE_PROGRESSIVE 1 |
|
#define | VIDEO_SCANMODE2_AUTO 0 |
|
#define | VIDEO_SCANMODE2_INTERLACE 1 |
|
#define | VIDEO_SCANMODE2_PROGRESSIVE 2 |
|
#define | VIDEO_BUFFER_FORMAT_XRGB 0 |
|
#define | VIDEO_BUFFER_FORMAT_XBGR 1 |
|
#define | VIDEO_BUFFER_FORMAT_FLOAT 2 |
|
#define | VIDEO_ASPECT_AUTO 0 |
|
#define | VIDEO_ASPECT_4_3 1 |
|
#define | VIDEO_ASPECT_16_9 2 |
|
#define | VIDEO_RESOLUTION_UNDEFINED 0 |
|
#define | VIDEO_RESOLUTION_1080 1 |
|
#define | VIDEO_RESOLUTION_720 2 |
|
#define | VIDEO_RESOLUTION_480 4 |
|
#define | VIDEO_RESOLUTION_576 5 |
|
#define | VIDEO_RESOLUTION_1600x1080 10 |
|
#define | VIDEO_RESOLUTION_1440x1080 11 |
|
#define | VIDEO_RESOLUTION_1280x1080 12 |
|
#define | VIDEO_RESOLUTION_960x1080 13 |
|
#define | VIDEO_COLOR_RGB 0x01 |
|
#define | VIDEO_COLOR_YUV 0x02 |
|
#define | VIDEO_COLOR_XVYCC 0x04 |
|
#define | VIDEO_RESOLUTION_720_3D_FRAME_PACKING 0x81 |
|
#define | VIDEO_RESOLUTION_1024x720_3D_FRAME_PACKING 0x88 |
|
#define | VIDEO_RESOLUTION_960x720_3D_FRAME_PACKING 0x89 |
|
#define | VIDEO_RESOLUTION_800x720_3D_FRAME_PACKING 0x8a |
|
#define | VIDEO_RESOLUTION_640x720_3D_FRAME_PACKING 0x8b |
|
#define | VIDEO_REFRESH_AUTO 0x00 |
|
#define | VIDEO_REFRESH_59_94HZ 0x01 |
|
#define | VIDEO_REFRESH_50HZ 0x02 |
|
#define | VIDEO_REFRESH_60HZ 0x04 |
|
#define | VIDEO_REFRESH_30HZ 0x08 |
|
#define | VIDEO_PORT_NONE 0x00 |
|
#define | VIDEO_PORT_HDMI 0x01 |
|
#define | VIDEO_PORT_NETWORK 0x41 |
|
#define | VIDEO_PORT_COMPOSITE 0x81 |
|
#define | VIDEO_PORT_D 0x82 |
|
#define | VIDEO_PORT_COMPONENT 0x83 |
|
#define | VIDEO_PORT_RGB 0x84 |
|
#define | VIDEO_PORT_SCART 0x85 |
|
#define | VIDEO_PORT_DSUB 0x86 |
|
|
s32 | videoGetState (s32 videoOut, s32 deviceIndex, videoState *state) |
| Get video state. More...
|
|
s32 | videoGetResolution (s32 resolutionId, videoResolution *resolution) |
| Get video resolution from resolution id. More...
|
|
s32 | videoConfigure (s32 videoOut, videoConfiguration *config, void *option, s32 blocking) |
| Configure the video output. More...
|
|
s32 | videoGetNumberOfDevice (u32 videoOut) |
|
s32 | videoGetDeviceInfo (u32 videoOut, u32 deviceIndex, videoDeviceInfo *info) |
|
s32 | videoGetConfiguration (u32 videoOut, videoConfiguration *config, void *option) |
|
s32 | videoGetResolutionAvailability (u32 videoOut, u32 resolutionId, u32 aspect, u32 option) |
|
s32 | videoDebugSetMonitorType (u32 videoOut, u32 monitorType) |
|
s32 | videoGetConvertCursorColorInfo (u8 *rgbOutputRange) |
|
◆ videoConfigure()
s32 videoConfigure |
( |
s32 |
videoOut, |
|
|
videoConfiguration * |
config, |
|
|
void * |
option, |
|
|
s32 |
blocking |
|
) |
| |
Configure the video output.
- Parameters
-
videoOut | Video output id. |
config | Pointer to a video configuration structure. |
option | Pointer to additional video configuration data. |
blocking | Nonzero indicates if the call is blocking or not. |
- Returns
- zero if no error, nonzero otherwise.
- Todo:
- verify the parameters signification.
◆ videoGetResolution()
Get video resolution from resolution id.
- Parameters
-
resolutionId | The input resolution id. The possible values are:
VIDEO_RESOLUTION_1080
VIDEO_RESOLUTION_720
VIDEO_RESOLUTION_480
VIDEO_RESOLUTION_576
|
resolution | Pointer to the video resolution structure to be updated. |
- Returns
- zero if no error, nonzero otherwise.
◆ videoGetState()
s32 videoGetState |
( |
s32 |
videoOut, |
|
|
s32 |
deviceIndex, |
|
|
videoState * |
state |
|
) |
| |
Get video state.
For the default display, just use 0 for videoOut
and deviceIndex
.
- Parameters
-
videoOut | Video output id. |
deviceIndex | Devide index. |
state | Pointer to a video state structure to be updated. |
- Returns
- zero if no error, nonzero otherwise.
- Todo:
- verify the parameters signification.