|
EFI_STATUS EFIAPI | HiiNewImageEx (IN CONST EFI_HII_IMAGE_EX_PROTOCOL *This, IN EFI_HII_HANDLE PackageList, OUT EFI_IMAGE_ID *ImageId, IN CONST EFI_IMAGE_INPUT *Image) |
|
EFI_STATUS EFIAPI | HiiGetImageEx (IN CONST EFI_HII_IMAGE_EX_PROTOCOL *This, IN EFI_HII_HANDLE PackageList, IN EFI_IMAGE_ID ImageId, OUT EFI_IMAGE_INPUT *Image) |
|
EFI_STATUS EFIAPI | HiiSetImageEx (IN CONST EFI_HII_IMAGE_EX_PROTOCOL *This, IN EFI_HII_HANDLE PackageList, IN EFI_IMAGE_ID ImageId, IN CONST EFI_IMAGE_INPUT *Image) |
|
EFI_STATUS EFIAPI | HiiDrawImageEx (IN CONST EFI_HII_IMAGE_EX_PROTOCOL *This, IN EFI_HII_DRAW_FLAGS Flags, IN CONST EFI_IMAGE_INPUT *Image, IN OUT EFI_IMAGE_OUTPUT **Blt, IN UINTN BltX, IN UINTN BltY) |
|
EFI_STATUS EFIAPI | HiiDrawImageIdEx (IN CONST EFI_HII_IMAGE_EX_PROTOCOL *This, IN EFI_HII_DRAW_FLAGS Flags, IN EFI_HII_HANDLE PackageList, IN EFI_IMAGE_ID ImageId, IN OUT EFI_IMAGE_OUTPUT **Blt, IN UINTN BltX, IN UINTN BltY) |
|
EFI_HII_IMAGE_DECODER_PROTOCOL * | LocateHiiImageDecoder (UINT8 BlockType) |
|
EFI_STATUS EFIAPI | HiiGetImageInfo (IN CONST EFI_HII_IMAGE_EX_PROTOCOL *This, IN EFI_HII_HANDLE PackageList, IN EFI_IMAGE_ID ImageId, OUT EFI_IMAGE_OUTPUT *Image) |
|
Implementation for EFI_HII_IMAGE_EX_PROTOCOL.
Copyright (c) 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ImageEx.c.
EFI_STATUS EFIAPI HiiDrawImageIdEx |
( |
IN CONST EFI_HII_IMAGE_EX_PROTOCOL * | This, |
|
|
IN EFI_HII_DRAW_FLAGS | Flags, |
|
|
IN EFI_HII_HANDLE | PackageList, |
|
|
IN EFI_IMAGE_ID | ImageId, |
|
|
IN OUT EFI_IMAGE_OUTPUT ** | Blt, |
|
|
IN UINTN | BltX, |
|
|
IN UINTN | BltY ) |
Renders an image to a bitmap or the screen containing the contents of the specified image.
This function is similar to EFI_HII_IMAGE_PROTOCOL.DrawImageId(). The difference is that this function will locate all EFI_HII_IMAGE_DECODER_PROTOCOL instances installed in the system if the decoder of the certain image type is not supported by the EFI_HII_IMAGE_EX_PROTOCOL. The function will attempt to decode the image to the EFI_IMAGE_INPUT using the first EFI_HII_IMAGE_DECODER_PROTOCOL instance that supports the requested image type.
- Parameters
-
This | A pointer to the EFI_HII_IMAGE_EX_PROTOCOL instance. |
Flags | Describes how the image is to be drawn. |
PackageList | The package list in the HII database to search for the specified image. |
ImageId | The image's id, which is unique within PackageList. |
Blt | If this points to a non-NULL on entry, this points to the image, which is Width pixels wide and Height pixels high. The image will be drawn onto this image and EFI_HII_DRAW_FLAG_CLIP is implied. If this points to a NULL on entry, then a buffer will be allocated to hold the generated image and the pointer updated on exit. It is the caller's responsibility to free this buffer. |
BltX | Specifies the offset from the left and top edge of the output image of the first pixel in the image. |
BltY | Specifies the offset from the left and top edge of the output image of the first pixel in the image. |
- Return values
-
EFI_SUCCESS | The image was successfully drawn. |
EFI_OUT_OF_RESOURCES | Unable to allocate an output buffer for Blt. |
EFI_INVALID_PARAMETER | The Blt was NULL or ImageId was 0. |
EFI_NOT_FOUND | The image specified by ImageId is not in the database. The specified PackageList is not in the database. |
Definition at line 200 of file ImageEx.c.
EFI_STATUS EFIAPI HiiGetImageEx |
( |
IN CONST EFI_HII_IMAGE_EX_PROTOCOL * | This, |
|
|
IN EFI_HII_HANDLE | PackageList, |
|
|
IN EFI_IMAGE_ID | ImageId, |
|
|
OUT EFI_IMAGE_INPUT * | Image ) |
Return the information about the image, associated with the package list. The prototype of this extension function is the same with EFI_HII_IMAGE_PROTOCOL.GetImage().
This function is similar to EFI_HII_IMAGE_PROTOCOL.GetImage().The difference is that this function will locate all EFI_HII_IMAGE_DECODER_PROTOCOL instances installed in the system if the decoder of the certain image type is not supported by the EFI_HII_IMAGE_EX_PROTOCOL. The function will attempt to decode the image to the EFI_IMAGE_INPUT using the first EFI_HII_IMAGE_DECODER_PROTOCOL instance that supports the requested image type.
- Parameters
-
This | A pointer to the EFI_HII_IMAGE_EX_PROTOCOL instance. |
PackageList | The package list in the HII database to search for the specified image. |
ImageId | The image's id, which is unique within PackageList. |
Image | Points to the image. |
- Return values
-
EFI_SUCCESS | The new image was returned successfully. |
EFI_NOT_FOUND | The image specified by ImageId is not available. The specified PackageList is not in the Database. |
EFI_INVALID_PARAMETER | Image was NULL or ImageId was 0. |
EFI_OUT_OF_RESOURCES | The bitmap could not be retrieved because there was not enough memory. |
Definition at line 70 of file ImageEx.c.