OpenCore
1.0.4
OpenCore Bootloader
|
#include <Protocol/GraphicsOutput.h>
#include <Library/BaseOverflowLib.h>
Go to the source code of this file.
Data Structures | |
struct | OC_BLIT_CONFIGURE |
Macros | |
#define | BYTES_PER_PIXEL sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL) |
Typedefs | |
typedef struct OC_BLIT_CONFIGURE | OC_BLIT_CONFIGURE |
Functions | |
STATIC_ASSERT (BYTES_PER_PIXEL==sizeof(UINT32), "Non 4-byte pixels are unsupported!") | |
RETURN_STATUS EFIAPI | OcBlitConfigure (IN VOID *FrameBuffer, IN EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *FrameBufferInfo, IN UINT32 Rotation, IN OUT OC_BLIT_CONFIGURE *Configure, IN OUT UINTN *ConfigureSize) |
RETURN_STATUS EFIAPI | OcBlitRender (IN OC_BLIT_CONFIGURE *Configure, IN OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer OPTIONAL, IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION BltOperation, IN UINTN SourceX, IN UINTN SourceY, IN UINTN DestinationX, IN UINTN DestinationY, IN UINTN Width, IN UINTN Height, IN UINTN Delta) |
Library for performing UEFI GOP Blt operations on a framebuffer.
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
Copyright (c) 2021, vit9696. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file OcBlitLib.h.
#define BYTES_PER_PIXEL sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL) |
Definition at line 20 of file OcBlitLib.h.
typedef struct OC_BLIT_CONFIGURE OC_BLIT_CONFIGURE |
RETURN_STATUS EFIAPI OcBlitConfigure | ( | IN VOID * | FrameBuffer, |
IN EFI_GRAPHICS_OUTPUT_MODE_INFORMATION * | FrameBufferInfo, | ||
IN UINT32 | Rotation, | ||
IN OUT OC_BLIT_CONFIGURE * | Configure, | ||
IN OUT UINTN * | ConfigureSize ) |
Create the configuration for a video frame buffer.
The configuration is returned in the caller provided buffer.
[in] | FrameBuffer | Pointer to the start of the frame buffer. |
[in] | FrameBufferInfo | Describes the frame buffer characteristics. The information in FramebufferInfo must refer to unmodified (not rotated) framebuffer. |
[in] | Rotation | Rotation scheme in degrees (must be one of 0, 90, 180, 270). |
[in,out] | Configure | The created configuration information. |
[in,out] | ConfigureSize | Size of the configuration information. |
RETURN_SUCCESS | The configuration was successful created. |
RETURN_BUFFER_TOO_SMALL | The Configure is to too small. The required size is returned in ConfigureSize. |
RETURN_UNSUPPORTED | The requested mode is not supported by this implementaion. |
Definition at line 602 of file OcBlitLib.c.
RETURN_STATUS EFIAPI OcBlitRender | ( | IN OC_BLIT_CONFIGURE * | Configure, |
IN OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer | OPTIONAL, | ||
IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION | BltOperation, | ||
IN UINTN | SourceX, | ||
IN UINTN | SourceY, | ||
IN UINTN | DestinationX, | ||
IN UINTN | DestinationY, | ||
IN UINTN | Width, | ||
IN UINTN | Height, | ||
IN UINTN | Delta ) |
Performs a UEFI Graphics Output Protocol Blt operation.
[in] | Configure | Pointer to a configuration which was successfully created by FrameBufferBltConfigure (). |
[in,out] | BltBuffer | The data to transfer to screen. |
[in] | BltOperation | The operation to perform. |
[in] | SourceX | The X coordinate of the source for BltOperation. |
[in] | SourceY | The Y coordinate of the source for BltOperation. |
[in] | DestinationX | The X coordinate of the destination for BltOperation. |
[in] | DestinationY | The Y coordinate of the destination for BltOperation. |
[in] | Width | The width of a rectangle in the blt rectangle in pixels. |
[in] | Height | The height of a rectangle in the blt rectangle in pixels. |
[in] | Delta | Not used for EfiBltVideoFill and EfiBltVideoToVideo operation. If a Delta of 0 is used, the entire BltBuffer will be operated on. If a subrectangle of the BltBuffer is used, then Delta represents the number of bytes in a row of the BltBuffer. |
RETURN_INVALID_PARAMETER | Invalid parameter were passed in. |
RETURN_SUCCESS | The Blt operation was performed successfully. |
Definition at line 688 of file OcBlitLib.c.
STATIC_ASSERT | ( | BYTES_PER_PIXEL | = =sizeof(UINT32), |
"Non 4-byte pixels are unsupported!" | ) |