OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
BlitVideoToBuffer.c File Reference
#include "BlitInternal.h"
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>

Go to the source code of this file.

Functions

RETURN_STATUS BlitLibVideoToBuffer0 (IN OC_BLIT_CONFIGURE *Configure, OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer, IN UINTN SourceX, IN UINTN SourceY, IN UINTN DestinationX, IN UINTN DestinationY, IN UINTN Width, IN UINTN Height, IN UINTN DeltaPixels)
 
RETURN_STATUS BlitLibVideoToBuffer90 (IN OC_BLIT_CONFIGURE *Configure, OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer, IN UINTN SourceX, IN UINTN SourceY, IN UINTN DestinationX, IN UINTN DestinationY, IN UINTN Width, IN UINTN Height, IN UINTN DeltaPixels)
 
RETURN_STATUS BlitLibVideoToBuffer180 (IN OC_BLIT_CONFIGURE *Configure, OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer, IN UINTN SourceX, IN UINTN SourceY, IN UINTN DestinationX, IN UINTN DestinationY, IN UINTN Width, IN UINTN Height, IN UINTN DeltaPixels)
 
RETURN_STATUS BlitLibVideoToBuffer270 (IN OC_BLIT_CONFIGURE *Configure, OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer, IN UINTN SourceX, IN UINTN SourceY, IN UINTN DestinationX, IN UINTN DestinationY, IN UINTN Width, IN UINTN Height, IN UINTN DeltaPixels)
 

Detailed Description

OcBlitLib - Library to perform blt operations on a frame buffer.

Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
Copyright (c) 2021, vit9696. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file BlitVideoToBuffer.c.

Function Documentation

◆ BlitLibVideoToBuffer0()

RETURN_STATUS BlitLibVideoToBuffer0 ( IN OC_BLIT_CONFIGURE * Configure,
OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL * BltBuffer,
IN UINTN SourceX,
IN UINTN SourceY,
IN UINTN DestinationX,
IN UINTN DestinationY,
IN UINTN Width,
IN UINTN Height,
IN UINTN DeltaPixels )

Performs a UEFI Graphics Output Protocol Blt Video to Buffer operation with extended parameters at 0 degree rotation.

Parameters
[in]ConfigurePointer to a configuration which was successfully created by FrameBufferBltConfigure ().
[out]BltBufferOutput buffer for pixel color data.
[in]SourceXX location within video.
[in]SourceYY location within video.
[in]DestinationXX location within BltBuffer.
[in]DestinationYY location within BltBuffer.
[in]WidthWidth (in pixels).
[in]HeightHeight.
[in]DeltaPixelsNumber of pixels in a row of BltBuffer.
Return values
RETURN_INVALID_PARAMETERInvalid parameter were passed in.
RETURN_SUCCESSThe Blt operation was performed successfully.

Definition at line 17 of file BlitVideoToBuffer.c.

◆ BlitLibVideoToBuffer180()

RETURN_STATUS BlitLibVideoToBuffer180 ( IN OC_BLIT_CONFIGURE * Configure,
OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL * BltBuffer,
IN UINTN SourceX,
IN UINTN SourceY,
IN UINTN DestinationX,
IN UINTN DestinationY,
IN UINTN Width,
IN UINTN Height,
IN UINTN DeltaPixels )

Performs a UEFI Graphics Output Protocol Blt Video to Buffer operation with extended parameters at 180 degree rotation.

Parameters
[in]ConfigurePointer to a configuration which was successfully created by FrameBufferBltConfigure ().
[out]BltBufferOutput buffer for pixel color data.
[in]SourceXX location within video.
[in]SourceYY location within video.
[in]DestinationXX location within BltBuffer.
[in]DestinationYY location within BltBuffer.
[in]WidthWidth (in pixels).
[in]HeightHeight.
[in]DeltaPixelsNumber of pixels in a row of BltBuffer.
Return values
RETURN_INVALID_PARAMETERInvalid parameter were passed in.
RETURN_SUCCESSThe Blt operation was performed successfully.

Definition at line 146 of file BlitVideoToBuffer.c.

◆ BlitLibVideoToBuffer270()

RETURN_STATUS BlitLibVideoToBuffer270 ( IN OC_BLIT_CONFIGURE * Configure,
OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL * BltBuffer,
IN UINTN SourceX,
IN UINTN SourceY,
IN UINTN DestinationX,
IN UINTN DestinationY,
IN UINTN Width,
IN UINTN Height,
IN UINTN DeltaPixels )

Performs a UEFI Graphics Output Protocol Blt Video to Buffer operation with extended parameters at 270 degree rotation.

Parameters
[in]ConfigurePointer to a configuration which was successfully created by FrameBufferBltConfigure ().
[out]BltBufferOutput buffer for pixel color data.
[in]SourceXX location within video.
[in]SourceYY location within video.
[in]DestinationXX location within BltBuffer.
[in]DestinationYY location within BltBuffer.
[in]WidthWidth (in pixels).
[in]HeightHeight.
[in]DeltaPixelsNumber of pixels in a row of BltBuffer.
Return values
RETURN_INVALID_PARAMETERInvalid parameter were passed in.
RETURN_SUCCESSThe Blt operation was performed successfully.

Definition at line 215 of file BlitVideoToBuffer.c.

◆ BlitLibVideoToBuffer90()

RETURN_STATUS BlitLibVideoToBuffer90 ( IN OC_BLIT_CONFIGURE * Configure,
OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL * BltBuffer,
IN UINTN SourceX,
IN UINTN SourceY,
IN UINTN DestinationX,
IN UINTN DestinationY,
IN UINTN Width,
IN UINTN Height,
IN UINTN DeltaPixels )

Performs a UEFI Graphics Output Protocol Blt Video to Buffer operation with extended parameters at 90 degree rotation.

Parameters
[in]ConfigurePointer to a configuration which was successfully created by FrameBufferBltConfigure ().
[out]BltBufferOutput buffer for pixel color data.
[in]SourceXX location within video.
[in]SourceYY location within video.
[in]DestinationXX location within BltBuffer.
[in]DestinationYY location within BltBuffer.
[in]WidthWidth (in pixels).
[in]HeightHeight.
[in]DeltaPixelsNumber of pixels in a row of BltBuffer.
Return values
RETURN_INVALID_PARAMETERInvalid parameter were passed in.
RETURN_SUCCESSThe Blt operation was performed successfully.

Definition at line 80 of file BlitVideoToBuffer.c.