Crate display_utils

Source
Expand description

This crate provides utilities for the Fuchsia display-coordinator API.

Structs§

BufferCollectionId
Strongly typed wrapper around a sysmem buffer collection ID.
BufferId
Strongly typed wrapper around a sysmem buffer identifier, including a collection ID and the index of the buffer. Corresponds to [fuchsia.hardware.display/BufferId].
ClientCompositionAction
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.
DisplayConfig
Represents an individual display configuration.
DisplayId
Strongly typed wrapper around a display ID.
DisplayInfo
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.
ImageParameters
Input parameters for constructing an image.
Layer
Represents an individual layer configuration.
LayerId
Strongly typed wrapper around a display layer ID.
VsyncEvent
A vsync event payload.

Enums§

ConfigError
An error generated by fuchsia.hardware.display.Controller.CheckConfig.
Error
Library error type.
LayerConfig
LayerConfig is a variant type of the two distinct layer configuration types that are supported by the display driver: Primary and Color.
PixelFormat
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.