TianoCore EDK2 master
|
#include "ConSplitter.h"
Go to the source code of this file.
Variables | |
CHAR16 | mCrLfString [3] = { CHAR_CARRIAGE_RETURN, CHAR_LINEFEED, CHAR_NULL } |
Support for Graphics output spliter.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ConSplitterGraphics.c.
EFI_STATUS EFIAPI ConSplitterGraphicsOutputBlt | ( | IN EFI_GRAPHICS_OUTPUT_PROTOCOL * | This, |
IN 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 | OPTIONAL | ||
) |
The following table defines actions for BltOperations.
EfiBltVideoFill - Write data from the BltBuffer pixel (SourceX, SourceY) directly to every pixel of the video display rectangle (DestinationX, DestinationY) (DestinationX + Width, DestinationY + Height). Only one pixel will be used from the BltBuffer. Delta is NOT used. EfiBltVideoToBltBuffer - Read data from the video display rectangle (SourceX, SourceY) (SourceX + Width, SourceY + Height) and place it in the BltBuffer rectangle (DestinationX, DestinationY ) (DestinationX + Width, DestinationY + Height). If DestinationX or DestinationY is not zero then Delta must be set to the length in bytes of a row in the BltBuffer. EfiBltBufferToVideo - Write data from the BltBuffer rectangle (SourceX, SourceY) (SourceX + Width, SourceY + Height) directly to the video display rectangle (DestinationX, DestinationY) (DestinationX + Width, DestinationY + Height). If SourceX or SourceY is not zero then Delta must be set to the length in bytes of a row in the BltBuffer. EfiBltVideoToVideo - Copy from the video display rectangle (SourceX, SourceY) (SourceX + Width, SourceY + Height) . to the video display rectangle (DestinationX, DestinationY) (DestinationX + Width, DestinationY + Height). The BltBuffer and Delta are not used in this mode.
This | Protocol instance pointer. |
BltBuffer | Buffer containing data to blit into video buffer. This buffer has a size of Width*Height*sizeof(EFI_GRAPHICS_OUTPUT_BLT_PIXEL) |
BltOperation | Operation to perform on BlitBuffer and video memory |
SourceX | X coordinate of source for the BltBuffer. |
SourceY | Y coordinate of source for the BltBuffer. |
DestinationX | X coordinate of destination for the BltBuffer. |
DestinationY | Y coordinate of destination for the BltBuffer. |
Width | Width of rectangle in BltBuffer in pixels. |
Height | Hight of rectangle in BltBuffer in pixels. |
Delta | OPTIONAL. |
EFI_SUCCESS | The Blt operation completed. |
EFI_INVALID_PARAMETER | BltOperation is not valid. |
EFI_DEVICE_ERROR | A hardware error occurred writting to the video buffer. |
Definition at line 246 of file ConSplitterGraphics.c.
EFI_STATUS EFIAPI ConSplitterGraphicsOutputQueryMode | ( | IN EFI_GRAPHICS_OUTPUT_PROTOCOL * | This, |
IN UINT32 | ModeNumber, | ||
OUT UINTN * | SizeOfInfo, | ||
OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION ** | Info | ||
) |
Returns information for an available graphics mode that the graphics device and the set of active video output devices supports.
This | The EFI_GRAPHICS_OUTPUT_PROTOCOL instance. |
ModeNumber | The mode number to return information on. |
SizeOfInfo | A pointer to the size, in bytes, of the Info buffer. |
Info | A pointer to callee allocated buffer that returns information about ModeNumber. |
EFI_SUCCESS | Mode information returned. |
EFI_BUFFER_TOO_SMALL | The Info buffer was too small. |
EFI_DEVICE_ERROR | A hardware error occurred trying to retrieve the video mode. |
EFI_INVALID_PARAMETER | One of the input args was NULL. |
EFI_OUT_OF_RESOURCES | No resource available. |
Definition at line 32 of file ConSplitterGraphics.c.
EFI_STATUS EFIAPI ConSplitterGraphicsOutputSetMode | ( | IN EFI_GRAPHICS_OUTPUT_PROTOCOL * | This, |
IN UINT32 | ModeNumber | ||
) |
Set the video device into the specified mode and clears the visible portions of the output display to black.
This | The EFI_GRAPHICS_OUTPUT_PROTOCOL instance. |
ModeNumber | Abstraction that defines the current video mode. |
EFI_SUCCESS | The graphics mode specified by ModeNumber was selected. |
EFI_DEVICE_ERROR | The device had an error and could not complete the request. |
EFI_UNSUPPORTED | ModeNumber is not supported by this device. |
EFI_OUT_OF_RESOURCES | No resource available. |
Definition at line 105 of file ConSplitterGraphics.c.
EFI_STATUS EFIAPI ConSplitterUgaDrawBlt | ( | IN EFI_UGA_DRAW_PROTOCOL * | This, |
IN EFI_UGA_PIXEL *BltBuffer | OPTIONAL, | ||
IN EFI_UGA_BLT_OPERATION | BltOperation, | ||
IN UINTN | SourceX, | ||
IN UINTN | SourceY, | ||
IN UINTN | DestinationX, | ||
IN UINTN | DestinationY, | ||
IN UINTN | Width, | ||
IN UINTN | Height, | ||
IN UINTN Delta | OPTIONAL | ||
) |
Blt a rectangle of pixels on the graphics screen.
The following table defines actions for BltOperations.
EfiUgaVideoFill: Write data from the BltBuffer pixel (SourceX, SourceY) directly to every pixel of the video display rectangle (DestinationX, DestinationY) (DestinationX + Width, DestinationY + Height). Only one pixel will be used from the BltBuffer. Delta is NOT used. EfiUgaVideoToBltBuffer: Read data from the video display rectangle (SourceX, SourceY) (SourceX + Width, SourceY + Height) and place it in the BltBuffer rectangle (DestinationX, DestinationY ) (DestinationX + Width, DestinationY + Height). If DestinationX or DestinationY is not zero then Delta must be set to the length in bytes of a row in the BltBuffer. EfiUgaBltBufferToVideo: Write data from the BltBuffer rectangle (SourceX, SourceY) (SourceX + Width, SourceY + Height) directly to the video display rectangle (DestinationX, DestinationY) (DestinationX + Width, DestinationY + Height). If SourceX or SourceY is not zero then Delta must be set to the length in bytes of a row in the BltBuffer. EfiUgaVideoToVideo: Copy from the video display rectangle (SourceX, SourceY) (SourceX + Width, SourceY + Height) . to the video display rectangle (DestinationX, DestinationY) (DestinationX + Width, DestinationY + Height). The BltBuffer and Delta are not used in this mode.
This | Protocol instance pointer. |
BltBuffer | Buffer containing data to blit into video buffer. This buffer has a size of Width*Height*sizeof(EFI_UGA_PIXEL) |
BltOperation | Operation to perform on BlitBuffer and video memory |
SourceX | X coordinate of source for the BltBuffer. |
SourceY | Y coordinate of source for the BltBuffer. |
DestinationX | X coordinate of destination for the BltBuffer. |
DestinationY | Y coordinate of destination for the BltBuffer. |
Width | Width of rectangle in BltBuffer in pixels. |
Height | Hight of rectangle in BltBuffer in pixels. |
Delta | OPTIONAL |
EFI_SUCCESS | The Blt operation completed. |
EFI_INVALID_PARAMETER | BltOperation is not valid. |
EFI_DEVICE_ERROR | A hardware error occurred writting to the video buffer. |
Definition at line 521 of file ConSplitterGraphics.c.
EFI_STATUS EFIAPI ConSplitterUgaDrawGetMode | ( | IN EFI_UGA_DRAW_PROTOCOL * | This, |
OUT UINT32 * | HorizontalResolution, | ||
OUT UINT32 * | VerticalResolution, | ||
OUT UINT32 * | ColorDepth, | ||
OUT UINT32 * | RefreshRate | ||
) |
Return the current video mode information.
This | The EFI_UGA_DRAW_PROTOCOL instance. |
HorizontalResolution | The size of video screen in pixels in the X dimension. |
VerticalResolution | The size of video screen in pixels in the Y dimension. |
ColorDepth | Number of bits per pixel, currently defined to be 32. |
RefreshRate | The refresh rate of the monitor in Hertz. |
EFI_SUCCESS | Mode information returned. |
EFI_NOT_STARTED | Video display is not initialized. Call SetMode () |
EFI_INVALID_PARAMETER | One of the input args was NULL. |
Definition at line 346 of file ConSplitterGraphics.c.
EFI_STATUS EFIAPI ConSplitterUgaDrawSetMode | ( | IN EFI_UGA_DRAW_PROTOCOL * | This, |
IN UINT32 | HorizontalResolution, | ||
IN UINT32 | VerticalResolution, | ||
IN UINT32 | ColorDepth, | ||
IN UINT32 | RefreshRate | ||
) |
Set the current video mode information.
This | The EFI_UGA_DRAW_PROTOCOL instance. |
HorizontalResolution | The size of video screen in pixels in the X dimension. |
VerticalResolution | The size of video screen in pixels in the Y dimension. |
ColorDepth | Number of bits per pixel, currently defined to be 32. |
RefreshRate | The refresh rate of the monitor in Hertz. |
EFI_SUCCESS | Mode information returned. |
EFI_NOT_STARTED | Video display is not initialized. Call SetMode () |
EFI_OUT_OF_RESOURCES | Out of resources. |
Definition at line 393 of file ConSplitterGraphics.c.
VOID TextOutSetMode | ( | IN TEXT_OUT_SPLITTER_PRIVATE_DATA * | Private, |
IN UINTN | ModeNumber | ||
) |
Sets the output device(s) to a specified mode.
Private | Text Out Splitter pointer. |
ModeNumber | The mode number to set. |
Definition at line 606 of file ConSplitterGraphics.c.
CHAR16 mCrLfString[3] = { CHAR_CARRIAGE_RETURN, CHAR_LINEFEED, CHAR_NULL } |
Definition at line 12 of file ConSplitterGraphics.c.