# LayerFuncs ## **Overview** **Related Modules:** [Display](Display.md) **Description:** Defines pointers to the layer driver functions. ## **Summary** ## Data Fields
InitDisplay )(uint32_t devId) |
|
DeinitDisplay )(uint32_t devId) |
|
GetDisplayInfo )(uint32_t devId, DisplayInfo *dispInfo) |
|
OpenLayer )(uint32_t devId, const LayerInfo *layerInfo, uint32_t *layerId) |
|
CloseLayer )(uint32_t devId, uint32_t layerId) |
Closes a layer that is no longer required on a specified display device. |
SetLayerVisible )(uint32_t devId, uint32_t layerId, bool visible) |
|
GetLayerVisibleState )(uint32_t devId, uint32_t layerId, bool *visible) |
|
SetLayerSize )(uint32_t devId, uint32_t layerId, IRect *rect) |
|
GetLayerSize )(uint32_t devId, uint32_t layerId, IRect *rect) |
|
SetLayerCrop )(uint32_t devId, uint32_t layerId, IRect *rect) |
|
SetLayerZorder )(uint32_t devId, uint32_t layerId, uint32_t zorder) |
|
GetLayerZorder )(uint32_t devId, uint32_t layerId, uint32_t *zorder) |
|
SetLayerPreMulti )(uint32_t devId, uint32_t layerId, bool preMul) |
|
GetLayerPreMulti )(uint32_t devId, uint32_t layerId, bool *preMul) |
|
SetLayerAlpha )(uint32_t devId, uint32_t layerid, LayerAlpha *alpha) |
|
GetLayerAlpha )(uint32_t devId, uint32_t layerId, LayerAlpha *alpha) |
|
SetLayerColorKey )(uint32_t devId, uint32_t layerId, bool enable, uint32_t key) |
|
GetLayerColorKey )(uint32_t devId, uint32_t layerId, bool *enable, uint32_t *key) |
|
SetLayerPalette )(uint32_t devId, uint32_t layerId, uint32_t *palette, uint32_t len) |
|
GetLayerPalette )(uint32_t devId, uint32_t layerId, uint32_t *palette, uint32_t len) |
|
SetTransformMode )(uint32_t devId, uint32_t layerId, TransformType type) |
|
SetLayerCompression )(uint32_t devId, uint32_t layerId, int32_t compType) |
|
GetLayerCompression )(uint32_t devId, uint32_t layerId, int32_t *compType) |
Checks whether the compression feature is enabled for a layer. |
SetLayerDirtyRegion )(uint32_t devId, uint32_t layerId, IRect *region) |
|
GetLayerBuffer )(uint32_t devId, uint32_t layerId, LayerBuffer *buffer) |
|
Flush )(uint32_t devId, uint32_t layerId, LayerBuffer *buffer) |
|
WaitForVBlank )(uint32_t devId, uint32_t layerId) |
|
SnapShot )(uint32_t devId, LayerBuffer *buffer) |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
buffer | Indicates the pointer to the buffer in which the display data is to flush. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
dispInfo | Indicates the pointer to the display device information obtained. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
alpha | Indicates the pointer to the obtained alpha value. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
buffer | Indicates the pointer to the obtained buffer. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
enable | Indicates the pointer to the color key enable bit. |
key | Indicates the pointer to the color key. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
compType | Indicates the pointer to the variable specifying whether the compression feature is enabled. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
palette | Indicates the pointer to the obtained palette. |
len | Indicates the length of the palette. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
preMul | Indicates the pointer to the obtained layer premultiplication flag. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
rect | Indicates the pointer to the obtained layer size. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
zorder | Indicates the pointer to the obtained z-order. The value is an integer ranging from 0 to 255. A larger z-order value indicates a higher layer. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerInfo | Indicates the pointer to the layer information passed to open a layer, including the layer type, layer size, and pixel format. |
layerId | Indicates the pointer to the layer ID, which identifies a unique layer. The layer ID is returned to the GUI after the layer is successfully opened. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
alpha | Indicates the pointer to the alpha value to set. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
enable | Specify whether to enable the color key. |
key | Indicates the color key. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
rect | Indicates the pointer to the rectangular area to crop. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
region | Indicates the pointer to the flushing area to set. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
palette | Indicates the pointer to the palette to set. |
len | Indicates the length of the palette. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
rect | Indicates the pointer to the layer size to set, in pixels. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
zorder | Indicates the z-order to set. The value is an integer ranging from 0 to 255. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
type | Indicates the transformation mode to set. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
buffer | Indicates the pointer to the buffer for saving screenshots. |
devId | Indicates the ID of a display device. The value ranges from 0 to 4, where 0 indicates the first display device and 4 indicates the last display device. |
layerId | Indicates the layer ID, which identifies a unique layer. You can perform operations on the layer with the specified layer ID. |
timeOut | Indicates the maximum duration that the process waits for the arrival of vertical blanking. |