Expand description
This crate provides utilities for the Fuchsia display-coordinator API.
Structs§
- Strongly typed wrapper around a sysmem buffer collection 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
]. - Represents a suggested client composition action generated by the driver.
- Enhances the
fuchsia.hardware.display.typers.Color
FIDL struct. - Client abstraction for the
fuchsia.hardware.display.Coordinator
protocol. Instances can be safely cloned and passed across threads. - Represents an individual display configuration.
- Strongly typed wrapper around a display ID.
- Enhances the
fuchsia.hardware.display.Info
FIDL struct. - A zircon event that has been registered with the display driver.
- Strongly typed wrapper around a display driver event ID.
- Represents an allocated image buffer that can be assigned to a display layer.
- Strongly typed wrapper around an image ID.
- Input parameters for constructing an image.
- Represents an individual layer configuration.
- Strongly typed wrapper around a display layer ID.
- A vsync event payload.
Enums§
- An error generated by
fuchsia.hardware.display.Controller.CheckConfig
. - Library error type.
- LayerConfig is a variant type of the two distinct layer configuration types that are supported by the display driver: Primary and Color.
- Pixel format definitions that bridge different versions of sysmem / images2 formats Fuchsia uses for display and GPU drivers’ internal image type representation.
Constants§
- Represents an invalid DisplayId value.
- Represents an invalid EventId value.
- Represents an invalid ImageId value.
- Represents an invalid LayerId value.
Functions§
- 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§
- Library Result type alias.