FBIOGET_CMAP

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Obtains the color map information.

Restrictions

  • Before using the HiFB API, you need to call hi_mpi_vo_enable to enable the VO device.
  • Only the G3 and G4 graphics layers support the color map, in CLUT4 or CLUT2 format.
  • This API does not support multiple processes or multiple threads.

Prototype

int ioctl (int fd, FBIOGET_CMAP, fb_cmap *cmap)

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_CMAP

Input

ioctl number.

cmap

Output

Pointer to the color map structure.

Returns

  • 0: success
  • Other values: failure