OpenCore
1.0.4
OpenCore Bootloader
|
#include <Protocol/UgaDraw.h>
Go to the source code of this file.
Data Structures | |
struct | APPLE_IMAGE_CONVERSION_PROTOCOL_ |
Macros | |
#define | APPLE_IMAGE_CONVERSION_PROTOCOL_GUID |
#define | APPLE_IMAGE_CONVERSION_PROTOCOL_REVISION 0x20000 |
#define | APPLE_IMAGE_CONVERSION_PROTOCOL_ANY_EXTENSION 0 |
Typedefs | |
typedef EFI_STATUS(EFIAPI * | RECOGNIZE_IMAGE_DATA) (IN VOID *ImageBuffer, IN UINTN ImageSize) |
typedef EFI_STATUS(EFIAPI * | GET_IMAGE_DIMS) (IN VOID *ImageBuffer, IN UINTN ImageSize, OUT UINT32 *ImageWidth, OUT UINT32 *ImageHeight) |
typedef EFI_STATUS(EFIAPI * | DECODE_IMAGE_DATA) (IN VOID *ImageBuffer, IN UINTN ImageSize, IN OUT EFI_UGA_PIXEL **RawImageData, IN OUT UINTN *RawImageDataSize) |
typedef EFI_STATUS(EFIAPI * | GET_IMAGE_DIMS_EX) (IN VOID *ImageBuffer, IN UINTN ImageSize, IN UINTN Scale, OUT UINT32 *ImageWidth, OUT UINT32 *ImageHeight) |
typedef EFI_STATUS(EFIAPI * | DECODE_IMAGE_DATA_EX) (IN VOID *ImageBuffer, IN UINTN ImageSize, IN UINTN Scale, IN OUT EFI_UGA_PIXEL **RawImageData, IN OUT UINTN *RawImageDataSize) |
typedef struct APPLE_IMAGE_CONVERSION_PROTOCOL_ | APPLE_IMAGE_CONVERSION_PROTOCOL |
Variables | |
EFI_GUID | gAppleImageConversionProtocolGuid |
Copyright (C) 2012, tiamo. All rights reserved.
Copyright (C) 2014, dmazar. All rights reserved.
Copyright (C) 2018, savvas. All rights reserved.
Copyright (C) 2018, Download-Fritz. All rights reserved.
Copyright (C) 2019-2020, 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 AppleImageConversion.h.
#define APPLE_IMAGE_CONVERSION_PROTOCOL_ANY_EXTENSION 0 |
Definition at line 37 of file AppleImageConversion.h.
#define APPLE_IMAGE_CONVERSION_PROTOCOL_GUID |
Definition at line 22 of file AppleImageConversion.h.
#define APPLE_IMAGE_CONVERSION_PROTOCOL_REVISION 0x20000 |
Definition at line 31 of file AppleImageConversion.h.
typedef struct APPLE_IMAGE_CONVERSION_PROTOCOL_ APPLE_IMAGE_CONVERSION_PROTOCOL |
Apple image conversion protocol definition.
typedef EFI_STATUS(EFIAPI * DECODE_IMAGE_DATA) (IN VOID *ImageBuffer, IN UINTN ImageSize, IN OUT EFI_UGA_PIXEL **RawImageData, IN OUT UINTN *RawImageDataSize) |
Decode image data in 32-bit format.
[in] | ImageBuffer | Buffer containing image data. |
[in] | ImageSize | Size of the buffer. |
[in,out] | RawImageData | Pointer to decoded buffer pointer.
|
[in,out] | RawImageDataSize | Decoded buffer size.
|
EFI_INVALID_PARAMETER | when ImageBuffer is NULL. |
EFI_INVALID_PARAMETER | when ImageSize is 0. |
EFI_INVALID_PARAMETER | when RawImageData is NULL. |
EFI_INVALID_PARAMETER | when RawImageDataSize is NULL. |
EFI_UNSUPPORTED | when image is not supported (e.g. too large or corrupted). |
EFI_OUT_OF_RESOURCES | when allocation error happened. |
EFI_BUFFER_TOO_SMALL | when provided buffer is too small, RawImageDataSize is updated. |
EFI_SUCCESS | when image was decoded successfully. |
Definition at line 104 of file AppleImageConversion.h.
typedef EFI_STATUS(EFIAPI * DECODE_IMAGE_DATA_EX) (IN VOID *ImageBuffer, IN UINTN ImageSize, IN UINTN Scale, IN OUT EFI_UGA_PIXEL **RawImageData, IN OUT UINTN *RawImageDataSize) |
Decode image data in 32-bit format. Protocol revision APPLE_IMAGE_CONVERSION_PROTOCOL_REVISION or higher is required.
[in] | ImageBuffer | Buffer containing image data. |
[in] | ImageSize | Size of the buffer. |
[in] | Scale | Scaling factor (e.g. 1 or 2). |
[in,out] | RawImageData | Pointer to decoded buffer pointer.
|
[in,out] | RawImageDataSize | Decoded buffer size.
|
EFI_INVALID_PARAMETER | when ImageBuffer is NULL. |
EFI_INVALID_PARAMETER | when ImageSize is 0. |
EFI_INVALID_PARAMETER | when RawImageData is NULL. |
EFI_INVALID_PARAMETER | when RawImageDataSize is NULL. |
EFI_UNSUPPORTED | when Scale is not supported. |
EFI_UNSUPPORTED | when image is not supported (e.g. too large or corrupted). |
EFI_OUT_OF_RESOURCES | when allocation error happened. |
EFI_BUFFER_TOO_SMALL | when provided buffer is too small, RawImageDataSize is updated. |
EFI_SUCCESS | when image was decoded successfully. |
Definition at line 167 of file AppleImageConversion.h.
typedef EFI_STATUS(EFIAPI * GET_IMAGE_DIMS) (IN VOID *ImageBuffer, IN UINTN ImageSize, OUT UINT32 *ImageWidth, OUT UINT32 *ImageHeight) |
Get image dimensions.
[in] | ImageBuffer | Buffer containing image data. |
[in] | ImageSize | Size of the buffer. |
[out] | ImageWidth | Image width in pixels. |
[out] | ImageHeight | Image height in pixels. |
EFI_INVALID_PARAMETER | when ImageBuffer is NULL. |
EFI_INVALID_PARAMETER | when ImageSize is 0. |
EFI_INVALID_PARAMETER | when ImageWidth is NULL. |
EFI_INVALID_PARAMETER | when ImageHeight is NULL. |
EFI_UNSUPPORTED | when image is not supported (e.g. too large or corrupted). |
EFI_SUCCESS | when image dimensions were read. |
Definition at line 73 of file AppleImageConversion.h.
typedef EFI_STATUS(EFIAPI * GET_IMAGE_DIMS_EX) (IN VOID *ImageBuffer, IN UINTN ImageSize, IN UINTN Scale, OUT UINT32 *ImageWidth, OUT UINT32 *ImageHeight) |
Get image dimensions for scale. Protocol revision APPLE_IMAGE_CONVERSION_PROTOCOL_REVISION or higher is required.
[in] | ImageBuffer | Buffer containing image data. |
[in] | ImageSize | Size of the buffer. |
[in] | Scale | Scaling factor (e.g. 1 or 2). |
[out] | ImageWidth | Image width in pixels. |
[out] | ImageHeight | Image height in pixels. |
EFI_INVALID_PARAMETER | when ImageBuffer is NULL. |
EFI_INVALID_PARAMETER | when ImageSize is 0. |
EFI_INVALID_PARAMETER | when Scale is 0. |
EFI_INVALID_PARAMETER | when ImageWidth is NULL. |
EFI_INVALID_PARAMETER | when ImageHeight is NULL. |
EFI_UNSUPPORTED | when Scale is not supported. |
EFI_UNSUPPORTED | when image is not supported (e.g. too large or corrupted). |
EFI_SUCCESS | when image dimensions were read. |
Definition at line 132 of file AppleImageConversion.h.
typedef EFI_STATUS(EFIAPI * RECOGNIZE_IMAGE_DATA) (IN VOID *ImageBuffer, IN UINTN ImageSize) |
Recognise image passed through the buffer.
[in] | ImageBuffer | Buffer containing image data. |
[in] | ImageSize | Size of the buffer. |
EFI_INVALID_PARAMETER | when ImageBuffer is NULL. |
EFI_INVALID_PARAMETER | when ImageSize is 0. |
EFI_UNSUPPORTED | when image is not supported (e.g. too large or corrupted). |
EFI_SUCCESS | when image can be decoded. |
Definition at line 51 of file AppleImageConversion.h.
|
extern |