OpenCore
1.0.4
OpenCore Bootloader
|
#include <Library/BaseMemoryLib.h>
#include <Library/BaseOverflowLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcAppleImageConversionLib.h>
#include <Library/OcMiscLib.h>
#include <Library/OcPngLib.h>
#include <Library/UefiBootServicesTableLib.h>
Go to the source code of this file.
Functions | |
STATIC EFI_STATUS EFIAPI | RecognizeImageData (IN VOID *ImageBuffer, IN UINTN ImageSize) |
STATIC EFI_STATUS EFIAPI | GetImageDims (IN VOID *ImageBuffer, IN UINTN ImageSize, OUT UINT32 *ImageWidth, OUT UINT32 *ImageHeight) |
STATIC EFI_STATUS EFIAPI | DecodeImageData (IN VOID *ImageBuffer, IN UINTN ImageSize, IN OUT EFI_UGA_PIXEL **RawImageData, IN OUT UINTN *RawImageDataSize) |
STATIC EFI_STATUS EFIAPI | GetImageDimsEx (IN VOID *Buffer, IN UINTN BufferSize, IN UINTN Scale, OUT UINT32 *Width, OUT UINT32 *Height) |
STATIC EFI_STATUS EFIAPI | DecodeImageDataEx (IN VOID *Buffer, IN UINTN BufferSize, IN UINTN Scale, IN OUT EFI_UGA_PIXEL **RawImageData, IN OUT UINTN *RawImageDataSize) |
APPLE_IMAGE_CONVERSION_PROTOCOL * | OcAppleImageConversionInstallProtocol (IN BOOLEAN Reinstall) |
Variables | |
STATIC CONST UINT8 | mPngHeader [] = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A } |
STATIC APPLE_IMAGE_CONVERSION_PROTOCOL | mAppleImageConversion |
AppleImageConversion protocol
Copyright (C) 2018 savvas. All rights reserved.
Portions copyright (C) 2016 slice. All rights reserved.
Portions copyright (C) 2018 vit9696. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file OcAppleImageConversionLib.c.
STATIC EFI_STATUS EFIAPI DecodeImageData | ( | IN VOID * | ImageBuffer, |
IN UINTN | ImageSize, | ||
IN OUT EFI_UGA_PIXEL ** | RawImageData, | ||
IN OUT UINTN * | RawImageDataSize ) |
Definition at line 83 of file OcAppleImageConversionLib.c.
STATIC EFI_STATUS EFIAPI DecodeImageDataEx | ( | IN VOID * | Buffer, |
IN UINTN | BufferSize, | ||
IN UINTN | Scale, | ||
IN OUT EFI_UGA_PIXEL ** | RawImageData, | ||
IN OUT UINTN * | RawImageDataSize ) |
Definition at line 192 of file OcAppleImageConversionLib.c.
STATIC EFI_STATUS EFIAPI GetImageDims | ( | IN VOID * | ImageBuffer, |
IN UINTN | ImageSize, | ||
OUT UINT32 * | ImageWidth, | ||
OUT UINT32 * | ImageHeight ) |
Definition at line 54 of file OcAppleImageConversionLib.c.
STATIC EFI_STATUS EFIAPI GetImageDimsEx | ( | IN VOID * | Buffer, |
IN UINTN | BufferSize, | ||
IN UINTN | Scale, | ||
OUT UINT32 * | Width, | ||
OUT UINT32 * | Height ) |
Definition at line 165 of file OcAppleImageConversionLib.c.
APPLE_IMAGE_CONVERSION_PROTOCOL * OcAppleImageConversionInstallProtocol | ( | IN BOOLEAN | Reinstall | ) |
Install and initialise the Apple Image Conversion protocol.
[in] | Reinstall | Replace any installed protocol. |
NULL | There was an error locating or installing the protocol. |
Definition at line 230 of file OcAppleImageConversionLib.c.
STATIC EFI_STATUS EFIAPI RecognizeImageData | ( | IN VOID * | ImageBuffer, |
IN UINTN | ImageSize ) |
Definition at line 33 of file OcAppleImageConversionLib.c.
STATIC APPLE_IMAGE_CONVERSION_PROTOCOL mAppleImageConversion |
Definition at line 219 of file OcAppleImageConversionLib.c.
STATIC CONST UINT8 mPngHeader[] = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A } |
Definition at line 28 of file OcAppleImageConversionLib.c.