Expand description
This crate provides utilities for the Fuchsia display-coordinator API.
Structs§
- Buffer
Collection Id - Strongly typed wrapper around a sysmem buffer collection ID.
- Buffer
Id - Strongly typed wrapper around a sysmem buffer identifier, including a
collection ID and the index of the buffer.
Corresponds to [
fuchsia.hardware.display/BufferId
]. - Client
Composition Action - Represents a suggested client composition action generated by the driver.
- Color
- Enhances the
fuchsia.hardware.display.typers.Color
FIDL struct. - Coordinator
- Client abstraction for the
fuchsia.hardware.display.Coordinator
protocol. Instances can be safely cloned and passed across threads. - Display
Config - Represents an individual display configuration.
- Display
Id - Strongly typed wrapper around a display ID.
- Display
Info - Enhances the
fuchsia.hardware.display.Info
FIDL struct. - Event
- A zircon event that has been registered with the display driver.
- EventId
- Strongly typed wrapper around a display driver event ID.
- Image
- Represents an allocated image buffer that can be assigned to a display layer.
- ImageId
- Strongly typed wrapper around an image ID.
- Image
Parameters - Input parameters for constructing an image.
- Layer
- Represents an individual layer configuration.
- LayerId
- Strongly typed wrapper around a display layer ID.
- Vsync
Event - A vsync event payload.
Enums§
- Config
Error - An error generated by
fuchsia.hardware.display.Controller.CheckConfig
. - Error
- Library error type.
- Layer
Config - LayerConfig is a variant type of the two distinct layer configuration types that are supported by the display driver: Primary and Color.
- Pixel
Format - Pixel format definitions that bridge different versions of sysmem / images2 formats Fuchsia uses for display and GPU drivers’ internal image type representation.
Constants§
- INVALID_
DISPLAY_ ID - Represents an invalid DisplayId value.
- INVALID_
EVENT_ ID - Represents an invalid EventId value.
- INVALID_
IMAGE_ ID - Represents an invalid ImageId value.
- INVALID_
LAYER_ ID - Represents an invalid LayerId value.
Functions§
- get_
bytes_ per_ pixel - Get number of bytes per pixel for given
pixel_format
. Currently only packed pixel formats are supported. Planar formats (e.g. NV12) are not supported.
Type Aliases§
- Result
- Library Result type alias.