]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/GraphicsLib.h
Removed MdePkg usage of ModuleName: in file headers
[mirror_edk2.git] / MdePkg / Include / Library / GraphicsLib.h
CommitLineData
00c4901b 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
00c4901b 12 \r
13--*/\r
14\r
7540e754
A
15#ifndef __EFI_GRAPHICS_LIB_H__\r
16#define __EFI_GRAPHICS_LIB_H__\r
17\r
18#include <Protocol/GraphicsOutput.h>\r
00c4901b 19\r
20EFI_STATUS\r
21GetGraphicsBitMapFromFV (\r
22 IN EFI_GUID *FileNameGuid,\r
23 OUT VOID **Image,\r
24 OUT UINTN *ImageSize\r
25 )\r
26/*++\r
27\r
28Routine Description:\r
29\r
30 Return the graphics image file named FileNameGuid into Image and return it's\r
31 size in ImageSize. All Firmware Volumes (FV) in the system are searched for the\r
32 file name.\r
33\r
34Arguments:\r
35\r
36 FileNameGuid - File Name of graphics file in the FV(s).\r
37\r
38 Image - Pointer to pointer to return graphics image. If NULL, a \r
39 buffer will be allocated.\r
40\r
41 ImageSize - Size of the graphics Image in bytes. Zero if no image found.\r
42\r
43\r
44Returns: \r
45\r
46 EFI_SUCCESS - Image and ImageSize are valid. \r
47 EFI_BUFFER_TOO_SMALL - Image not big enough. ImageSize has required size\r
48 EFI_NOT_FOUND - FileNameGuid not found\r
49\r
50--*/\r
51;\r
52\r
53EFI_STATUS\r
54ConvertBmpToUgaBlt (\r
55 IN VOID *BmpImage,\r
56 IN UINTN BmpImageSize,\r
57 IN OUT VOID **UgaBlt,\r
58 IN OUT UINTN *UgaBltSize,\r
59 OUT UINTN *PixelHeight,\r
60 OUT UINTN *PixelWidth\r
61 )\r
62/*++\r
63\r
64Routine Description:\r
65\r
66 Convert a *.BMP graphics image to a UGA blt buffer. If a NULL UgaBlt buffer\r
67 is passed in a UgaBlt buffer will be allocated by this routine. If a UgaBlt\r
68 buffer is passed in it will be used if it is big enough.\r
69\r
70Arguments:\r
71\r
72 BmpImage - Pointer to BMP file\r
73\r
74 BmpImageSize - Number of bytes in BmpImage\r
75\r
76 UgaBlt - Buffer containing UGA version of BmpImage.\r
77\r
78 UgaBltSize - Size of UgaBlt in bytes.\r
79\r
80 PixelHeight - Height of UgaBlt/BmpImage in pixels\r
81\r
82 PixelWidth - Width of UgaBlt/BmpImage in pixels\r
83\r
84\r
85Returns: \r
86\r
87 EFI_SUCCESS - UgaBlt and UgaBltSize are returned. \r
88 EFI_UNSUPPORTED - BmpImage is not a valid *.BMP image\r
89 EFI_BUFFER_TOO_SMALL - The passed in UgaBlt buffer is not big enough.\r
90 UgaBltSize will contain the required size.\r
91\r
92--*/\r
93;\r
94\r
95EFI_STATUS\r
96EnableQuietBoot (\r
97 IN EFI_GUID *LogoFile\r
98 )\r
99/*++\r
100\r
101Routine Description:\r
102\r
103 Use Console Control to turn off UGA based Simple Text Out consoles from going\r
104 to the UGA device. Put up LogoFile on every UGA device that is a console\r
105\r
106Arguments:\r
107\r
108 LogoFile - File name of logo to display on the center of the screen.\r
109\r
110\r
111Returns: \r
112\r
113 EFI_SUCCESS - ConsoleControl has been flipped to graphics and logo\r
114 displayed.\r
115 EFI_UNSUPPORTED - Logo not found\r
116\r
117--*/\r
118;\r
119\r
120EFI_STATUS\r
121DisableQuietBoot (\r
122 VOID\r
123 )\r
124/*++\r
125\r
126Routine Description:\r
127\r
128 Use Console Control to turn on UGA based Simple Text Out consoles. The UGA \r
129 Simple Text Out screens will now be synced up with all non UGA output devices\r
130\r
131Arguments:\r
132\r
133 NONE\r
134\r
135Returns: \r
136\r
137 EFI_SUCCESS - UGA devices are back in text mode and synced up.\r
138 EFI_UNSUPPORTED - Logo not found\r
139\r
140--*/\r
141;\r
142\r
143EFI_STATUS\r
144LockKeyboards (\r
145 IN CHAR16 *Password\r
146 )\r
147/*++\r
148\r
149Routine Description:\r
150 Use Console Control Protocol to lock the Console In Spliter virtual handle. \r
151 This is the ConInHandle and ConIn handle in the EFI system table. All key\r
152 presses will be ignored until the Password is typed in. The only way to\r
153 disable the password is to type it in to a ConIn device.\r
154\r
155Arguments:\r
156 Password - Password used to lock ConIn device\r
157\r
158\r
159Returns: \r
160\r
161 EFI_SUCCESS - ConsoleControl has been flipped to graphics and logo\r
162 displayed.\r
163 EFI_UNSUPPORTED - Logo not found\r
164\r
165--*/\r
166;\r
167\r
168UINTN\r
169EFIAPI\r
170PrintXY (\r
171 IN UINTN X,\r
172 IN UINTN Y,\r
173 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Foreground, OPTIONAL\r
174 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Background, OPTIONAL\r
175 IN CHAR16 *Fmt,\r
176 ...\r
177 )\r
178;\r
179\r
180\r
181#endif\r