Package: android.hardware.automotive.evs@1.0

types

Properties

DisplayState

enum DisplayState: uint32_t

States for control of the EVS display

The DisplayInfo structure describes the basic properties of an EVS display.Any EVS implementation is required to have one.The HAL is responsible for filling out this structure to describe the EVS display.As an implementation detail, this may be a physical display or a virtual display that is overlaid or mixed with another presentation device.

Details
Members
NOT_OPEN = 0
NOT_VISIBLE
VISIBLE_ON_NEXT_FRAME
VISIBLE
DEAD
NUM_STATES

EvsResult

enum EvsResult: uint32_t

Error codes used in EVS HAL interface.

Details
Members
OK = 0
INVALID_ARG
STREAM_ALREADY_RUNNING
BUFFER_NOT_AVAILABLE
OWNERSHIP_LOST
UNDERLYING_SERVICE_ERROR

CameraDesc

struct CameraDesc {string cameraId; uint32_t vendorFlags}

Structure describing the basic properties of an EVS camera

The HAL is responsible for filling out this structure for each EVS camera in the system.

Details
Members
cameraId
vendorFlags

DisplayDesc

struct DisplayDesc {string displayId; uint32_t vendorFlags}

Structure describing the basic properties of an EVS display

The HAL is responsible for filling out this structure to describe the EVS display.As an implementation detail, this may be a physical display or a virtual display that is overlaid or mixed with another presentation device.

Details
Members
displayId
vendorFlags

BufferDesc

struct BufferDesc {uint32_t width; uint32_t height; uint32_t stride; uint32_t pixelSize; uint32_t format; uint32_t usage; uint32_t bufferId; handle memHandle}

Structure representing an image buffer through our APIs

In addition to the handle to the graphics memory, we need to retain the properties of the buffer for easy reference and reconstruction of an ANativeWindowBuffer object on the remote side of API calls .(Not least because OpenGL expect an ANativeWindowBuffer* for us as a texture via eglCreateImageKHR().See also related types from android.hardware.graphics.common TODO:b/34722508 Review details of interaction of this structure with gralloc and OpenGL.Specifically consider if format and/or usage should become enumerated types.

Details
Members
width
height
stride
pixelSize
format
usage
bufferId
memHandle