14#ifndef __HII_IMAGE_DECODER_H__
15#define __HII_IMAGE_DECODER_H__
19#define EFI_HII_IMAGE_DECODER_PROTOCOL_GUID \
20 {0x9e66f251, 0x727c, 0x418c, { 0xbf, 0xd6, 0xc2, 0xb4, 0x25, 0x28, 0x18, 0xea }}
22#define EFI_HII_IMAGE_DECODER_NAME_JPEG_GUID \
23 {0xefefd093, 0xd9b, 0x46eb, { 0xa8, 0x56, 0x48, 0x35, 0x7, 0x0, 0xc9, 0x8 }}
25#define EFI_HII_IMAGE_DECODER_NAME_PNG_GUID \
26 {0xaf060190, 0x5e3a, 0x4025, { 0xaf, 0xbd, 0xe1, 0xf9, 0x5, 0xbf, 0xaa, 0x4c }}
31 EFI_HII_IMAGE_DECODER_COLOR_TYPE_RGB = 0x0,
32 EFI_HII_IMAGE_DECODER_COLOR_TYPE_RGBA = 0x1,
33 EFI_HII_IMAGE_DECODER_COLOR_TYPE_CMYK = 0x2,
34 EFI_HII_IMAGE_DECODER_COLOR_TYPE_UNKNOWN = 0xFF
35} EFI_HII_IMAGE_DECODER_COLOR_TYPE;
52 EFI_HII_IMAGE_DECODER_COLOR_TYPE ColorType;
53 UINT8 ColorDepthInBits;
56#define EFI_IMAGE_JPEG_SCANTYPE_PROGREESSIVE 0x01
57#define EFI_IMAGE_JPEG_SCANTYPE_INTERLACED 0x02
88 CHAR16 ImageExtenion[1];
118 IN OUT UINT16 *NumberOfDecoderName
187 IN BOOLEAN Transparent
196extern EFI_GUID gEfiHiiImageDecoderProtocolGuid;
197extern EFI_GUID gEfiHiiImageDecoderNameJpegGuid;
198extern EFI_GUID gEfiHiiImageDecoderNamePngGuid;
EFI_STATUS(EFIAPI * EFI_HII_IMAGE_DECODER_GET_IMAGE_INFO)(IN EFI_HII_IMAGE_DECODER_PROTOCOL *This, IN VOID *Image, IN UINTN SizeOfImage, IN OUT EFI_HII_IMAGE_DECODER_IMAGE_INFO_HEADER **ImageInfo)
EFI_STATUS(EFIAPI * EFI_HII_IMAGE_DECODER_GET_NAME)(IN EFI_HII_IMAGE_DECODER_PROTOCOL *This, IN OUT EFI_GUID **DecoderName, IN OUT UINT16 *NumberOfDecoderName)
EFI_STATUS(EFIAPI * EFI_HII_IMAGE_DECODER_DECODE)(IN EFI_HII_IMAGE_DECODER_PROTOCOL *This, IN VOID *Image, IN UINTN ImageRawDataSize, IN OUT EFI_IMAGE_OUTPUT **Bitmap, IN BOOLEAN Transparent)