]>
Commit | Line | Data |
---|---|---|
62d8cb3b RN |
1 | /** @file\r |
2 | Library for performing UEFI GOP Blt operations on a framebuffer\r | |
3 | \r | |
4 | Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r | |
5 | \r | |
9d510e61 | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
62d8cb3b RN |
7 | \r |
8 | **/\r | |
9 | \r | |
10 | #ifndef __FRAMEBUFFER_BLT_LIB__\r | |
11 | #define __FRAMEBUFFER_BLT_LIB__\r | |
12 | \r | |
13 | #include <Protocol/GraphicsOutput.h>\r | |
14 | \r | |
15 | //\r | |
16 | // Opaque structure for the frame buffer configure.\r | |
17 | //\r | |
18 | typedef struct FRAME_BUFFER_CONFIGURE FRAME_BUFFER_CONFIGURE;\r | |
19 | \r | |
20 | /**\r | |
21 | Create the configuration for a video frame buffer.\r | |
22 | \r | |
23 | The configuration is returned in the caller provided buffer.\r | |
24 | \r | |
25 | @param[in] FrameBuffer Pointer to the start of the frame buffer.\r | |
26 | @param[in] FrameBufferInfo Describes the frame buffer characteristics.\r | |
27 | @param[in,out] Configure The created configuration information.\r | |
28 | @param[in,out] ConfigureSize Size of the configuration information.\r | |
29 | \r | |
30 | @retval RETURN_SUCCESS The configuration was successful created.\r | |
31 | @retval RETURN_BUFFER_TOO_SMALL The Configure is to too small. The required\r | |
32 | size is returned in ConfigureSize.\r | |
33 | @retval RETURN_UNSUPPORTED The requested mode is not supported by\r | |
34 | this implementaion.\r | |
35 | **/\r | |
36 | RETURN_STATUS\r | |
37 | EFIAPI\r | |
38 | FrameBufferBltConfigure (\r | |
39 | IN VOID *FrameBuffer,\r | |
40 | IN EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *FrameBufferInfo,\r | |
41 | IN OUT FRAME_BUFFER_CONFIGURE *Configure,\r | |
42 | IN OUT UINTN *ConfigureSize\r | |
43 | );\r | |
44 | \r | |
45 | /**\r | |
46 | Performs a UEFI Graphics Output Protocol Blt operation.\r | |
47 | \r | |
48 | @param[in] Configure Pointer to a configuration which was successfully\r | |
49 | created by FrameBufferBltConfigure ().\r | |
50 | @param[in,out] BltBuffer The data to transfer to screen.\r | |
51 | @param[in] BltOperation The operation to perform.\r | |
52 | @param[in] SourceX The X coordinate of the source for BltOperation.\r | |
53 | @param[in] SourceY The Y coordinate of the source for BltOperation.\r | |
54 | @param[in] DestinationX The X coordinate of the destination for\r | |
55 | BltOperation.\r | |
56 | @param[in] DestinationY The Y coordinate of the destination for\r | |
57 | BltOperation.\r | |
58 | @param[in] Width The width of a rectangle in the blt rectangle\r | |
59 | in pixels.\r | |
60 | @param[in] Height The height of a rectangle in the blt rectangle\r | |
61 | in pixels.\r | |
62 | @param[in] Delta Not used for EfiBltVideoFill and\r | |
63 | EfiBltVideoToVideo operation. If a Delta of 0\r | |
64 | is used, the entire BltBuffer will be operated\r | |
65 | on. If a subrectangle of the BltBuffer is\r | |
66 | used, then Delta represents the number of\r | |
67 | bytes in a row of the BltBuffer.\r | |
68 | \r | |
69 | @retval RETURN_INVALID_PARAMETER Invalid parameter were passed in.\r | |
70 | @retval RETURN_SUCCESS The Blt operation was performed successfully.\r | |
71 | **/\r | |
72 | RETURN_STATUS\r | |
73 | EFIAPI\r | |
74 | FrameBufferBlt (\r | |
75 | IN FRAME_BUFFER_CONFIGURE *Configure,\r | |
76 | IN OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer, OPTIONAL\r | |
77 | IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION BltOperation,\r | |
78 | IN UINTN SourceX,\r | |
79 | IN UINTN SourceY,\r | |
80 | IN UINTN DestinationX,\r | |
81 | IN UINTN DestinationY,\r | |
82 | IN UINTN Width,\r | |
83 | IN UINTN Height,\r | |
84 | IN UINTN Delta\r | |
85 | );\r | |
86 | \r | |
87 | #endif\r |