OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
AppleImageConversion.h
Go to the documentation of this file.
1
17#ifndef APPLE_IMAGE_CONVERSION_H
18#define APPLE_IMAGE_CONVERSION_H
19
20#include <Protocol/UgaDraw.h>
21
22#define APPLE_IMAGE_CONVERSION_PROTOCOL_GUID \
23 { 0x0DFCE9F6, 0xC4E3, 0x45EE, \
24 {0xA0, 0x6A, 0xA8, 0x61, 0x3B, 0x98, 0xA5, 0x07 } }
25
26//
27// Protocol revision
28// Starting with this version scaled interfaces wered added.
29// Older versions had none.
30//
31#define APPLE_IMAGE_CONVERSION_PROTOCOL_REVISION 0x20000
32
33//
34// Generic protocol extension capable of opening any file,
35// possibly by chainloading other files
36//
37#define APPLE_IMAGE_CONVERSION_PROTOCOL_ANY_EXTENSION 0
38
50typedef
51EFI_STATUS
52(EFIAPI *RECOGNIZE_IMAGE_DATA)(
53 IN VOID *ImageBuffer,
54 IN UINTN ImageSize
55 );
56
72typedef
73EFI_STATUS
74(EFIAPI *GET_IMAGE_DIMS)(
75 IN VOID *ImageBuffer,
76 IN UINTN ImageSize,
77 OUT UINT32 *ImageWidth,
78 OUT UINT32 *ImageHeight
79 );
80
103typedef
104EFI_STATUS
105(EFIAPI *DECODE_IMAGE_DATA)(
106 IN VOID *ImageBuffer,
107 IN UINTN ImageSize,
108 IN OUT EFI_UGA_PIXEL **RawImageData,
109 IN OUT UINTN *RawImageDataSize
110 );
111
131typedef
132EFI_STATUS
133(EFIAPI *GET_IMAGE_DIMS_EX)(
134 IN VOID *ImageBuffer,
135 IN UINTN ImageSize,
136 IN UINTN Scale,
137 OUT UINT32 *ImageWidth,
138 OUT UINT32 *ImageHeight
139 );
140
166typedef
167EFI_STATUS
168(EFIAPI *DECODE_IMAGE_DATA_EX)(
169 IN VOID *ImageBuffer,
170 IN UINTN ImageSize,
171 IN UINTN Scale,
172 IN OUT EFI_UGA_PIXEL **RawImageData,
173 IN OUT UINTN *RawImageDataSize
174 );
175
188
190
191#endif //APPLE_IMAGE_CONVERSION_H
EFI_STATUS(EFIAPI * GET_IMAGE_DIMS)(IN VOID *ImageBuffer, IN UINTN ImageSize, OUT UINT32 *ImageWidth, OUT UINT32 *ImageHeight)
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)
EFI_STATUS(EFIAPI * GET_IMAGE_DIMS_EX)(IN VOID *ImageBuffer, IN UINTN ImageSize, IN UINTN Scale, OUT UINT32 *ImageWidth, OUT UINT32 *ImageHeight)
EFI_STATUS(EFIAPI * RECOGNIZE_IMAGE_DATA)(IN VOID *ImageBuffer, IN UINTN ImageSize)
EFI_GUID gAppleImageConversionProtocolGuid
EFI_STATUS(EFIAPI * DECODE_IMAGE_DATA)(IN VOID *ImageBuffer, IN UINTN ImageSize, IN OUT EFI_UGA_PIXEL **RawImageData, IN OUT UINTN *RawImageDataSize)
struct APPLE_IMAGE_CONVERSION_PROTOCOL_ APPLE_IMAGE_CONVERSION_PROTOCOL