FBIOGET_SCREEN_ORIGIN_HIFB

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Obtains the coordinates of the start point of an overlaid layer displayed on the screen.

Prototype

int ioctl (int fd,  FBIOGET_SCREEN_ORIGIN_HIFB,  hi_fb_point *point)

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 Framebuffer corresponding to the current VO device is returned.

FBIOGET_SCREEN_ORIGIN_HIFB

Input

ioctl number

point

Output

Pointer to the coordinate structure of the start point.

Returns

  • 0: success
  • Other values: Failure

Restrictions

  • Before using the HiFB APIs, you need to call hi_mpi_vo_enable to enable the VO device.
  • This API does not support multiple processes or multiple threads.