FBIOGET_VSCREENINFO
The
The
Description
Obtains the variable information about the Framebuffer screen, including the resolution and pixel format.
Restrictions
- The default resolution of the HD graphics layer is 1920 x 1080, the default resolution of the cursor layer is 256 x 256, the default resolution of the SD graphics layer is 720 x 576, and the default pixel format is ARGB8888.
- Before using the HiFB API, you need to call hi_mpi_vo_enable to enable the VO device.
- This API does not support multiple processes or multiple threads.
Prototype
int ioctl (int fd, FBIOGET_VSCREENINFO, fb_var_screeninfo *var)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
fd |
Input |
File descriptor of an FB device. When open("/dev/fbx") is called in the application, the file descriptor of the FB device corresponding to the current VO device is returned. |
FBIOGET_VSCREENINFO |
Input |
ioctl number. |
var |
Output |
Pointer to the variable information structure. |
Parent topic: HiFB for Managing Overlaid Graphics Layers