Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
PgGetVideoModeList()
Query a graphics driver for a list of its supported video modes
Synopsis:
int PgGetVideoModeList( PgVideoModes_t *mode_list );
Library:
ph
Description:
This function queries the graphics driver for a list of video modes that it supports. The list is an array of short entries that represent mode numbers that the drivers use to identify a video mode.
![]() |
You must target this function at a specific card by calling PdSetTargetDevice(). PgGetVideoModeList() blocks until the operation is complete. |
The mode_info argument is a pointer to a PgVideoModes_t structure in which to store the mode information. This structure has at least the following members:
- unsigned short num_modes
- The number of modes in the list.
- unsigned short mode[127]
- The mode list.
Returns:
- 0
- Success.
- -1
- An error occurred.
Classification:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
PdSetTargetDevice(), PgGetGraphicsHWCaps(), PgGetVideoMode(), PgGetVideoModeInfo(), PgSetVideoMode()
"Video modes" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
