#ifndef __EFI_GRAPHICS_LIB_H__\r
#define __EFI_GRAPHICS_LIB_H__\r
\r
-#include <Protocol/GraphicsOutput.h>\r
-\r
-\r
-/**\r
- Return the graphics image file named FileNameGuid into Image and return it's\r
- size in ImageSize. All Firmware Volumes (FV) in the system are searched for the\r
- file name.\r
-\r
- @param[in] FileNameGuid File Name of graphics file in the FV(s).\r
- @param[out] Image Pointer to pointer to return graphics image. If NULL, a \r
- buffer will be allocated.\r
- @param[out] ImageSize Size of the graphics Image in bytes. Zero if no image found.\r
-\r
- @retval EFI_SUCCESS The image is found and data and size is returned.\r
- @retval EFI_UNSUPPORTED FvHandle does not support EFI_FIRMWARE_VOLUME2_PROTOCOL.\r
- @retval EFI_NOT_FOUND The image specified by NameGuid and SectionType can't be found.\r
- @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the output data buffer or complete the operations.\r
- @retval EFI_DEVICE_ERROR A hardware error occurs during reading from the Firmware Volume.\r
- @retval EFI_ACCESS_DENIED The firmware volume containing the searched Firmware File is configured to disallow reads.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-GetGraphicsBitMapFromFV (\r
- IN EFI_GUID *FileNameGuid,\r
- OUT VOID **Image,\r
- OUT UINTN *ImageSize\r
- );\r
-\r
-/**\r
- Return the graphics image file named FileNameGuid into Image and return it's\r
- size in ImageSize. All Firmware Volumes (FV) in the system are searched for the\r
- file name.\r
-\r
- @param[in] ImageHandle The driver image handle of the caller. The parameter is used to\r
- optimize the loading of the image file so that the FV from which\r
- the driver image is loaded will be tried first. \r
- @param[in] FileNameGuid File Name of graphics file in the FV(s).\r
- @param[out] Image Pointer to pointer to return graphics image. If NULL, a \r
- buffer will be allocated.\r
- @param[out] ImageSize Size of the graphics Image in bytes. Zero if no image found.\r
-\r
- @retval EFI_SUCCESS The image is found and data and size is returned.\r
- @retval EFI_UNSUPPORTED FvHandle does not support EFI_FIRMWARE_VOLUME2_PROTOCOL.\r
- @retval EFI_NOT_FOUND The image specified by NameGuid and SectionType can't be found.\r
- @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the output data buffer or complete the operations.\r
- @retval EFI_DEVICE_ERROR A hardware error occurs during reading from the Firmware Volume.\r
- @retval EFI_ACCESS_DENIED The firmware volume containing the searched Firmware File is configured to disallow reads.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-GetGraphicsBitMapFromFVEx (\r
- IN EFI_HANDLE ImageHandle,\r
- IN EFI_GUID *FileNameGuid,\r
- OUT VOID **Image,\r
- OUT UINTN *ImageSize\r
- );\r
-\r
\r
/**\r
Use Console Control to turn off UGA based Simple Text Out consoles from going\r
IN CHAR16 *Password\r
);\r
\r
-\r
-/**\r
- Print Unicode string to graphics screen at the given X,Y coordinates of the graphics screen.\r
- see definition of Print to find rules for constructing Fmt.\r
-\r
- @param[in] X Row to start printing at\r
- @param[in] Y Column to start printing at\r
- @param[in] ForeGround Foreground color\r
- @param[in] BackGround background color\r
- @param[in] Fmt Print format sting. See definition of Print\r
- @param ... Variable argument list whose contents are accessed based on \r
- the format string specified by Format.\r
-\r
- @return Number of Characters printed.\r
-\r
-**/\r
-UINTN\r
-EFIAPI\r
-PrintXY (\r
- IN UINTN X,\r
- IN UINTN Y,\r
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL\r
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL\r
- IN CHAR16 *Fmt,\r
- ...\r
- );\r
-\r
-\r
#endif\r