OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
Images.c File Reference
#include <Uefi.h>
#include <IndustryStandard/AppleIcon.h>
#include <IndustryStandard/AppleDiskLabel.h>
#include <Library/BaseLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/OcCompressionLib.h>
#include <Library/OcPngLib.h>
#include "OpenCanopy.h"

Go to the source code of this file.

Functions

EFI_STATUS GuiIcnsToImageIcon (OUT GUI_IMAGE *Image, IN VOID *IcnsImage, IN UINT32 IcnsImageSize, IN UINT8 Scale, IN UINT32 MatchWidth, IN UINT32 MatchHeight, IN BOOLEAN AllowLess)
 
EFI_STATUS GuiLabelToImage (OUT GUI_IMAGE *Image, IN VOID *RawData, IN UINT32 DataLength, IN UINT8 Scale, IN BOOLEAN Inverted)
 
EFI_STATUS GuiPngToImage (OUT GUI_IMAGE *Image, IN VOID *ImageData, IN UINTN ImageDataSize, IN BOOLEAN PremultiplyAlpha)
 
EFI_STATUS GuiCreateHighlightedImage (OUT GUI_IMAGE *SelectedImage, IN CONST GUI_IMAGE *SourceImage, IN CONST EFI_GRAPHICS_OUTPUT_BLT_PIXEL *HighlightPixel)
 

Variables

STATIC CONST UINT8 gAppleDiskLabelImagePalette [256]
 

Detailed Description

This file is part of OpenCanopy, OpenCore GUI.

Copyright (c) 2018-2019, Download-Fritz. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file Images.c.

Function Documentation

◆ GuiCreateHighlightedImage()

EFI_STATUS GuiCreateHighlightedImage ( OUT GUI_IMAGE * SelectedImage,
IN CONST GUI_IMAGE * SourceImage,
IN CONST EFI_GRAPHICS_OUTPUT_BLT_PIXEL * HighlightPixel )

Definition at line 279 of file Images.c.

◆ GuiIcnsToImageIcon()

EFI_STATUS GuiIcnsToImageIcon ( OUT GUI_IMAGE * Image,
IN VOID * IcnsImage,
IN UINT32 IcnsImageSize,
IN UINT8 Scale,
IN UINT32 MatchWidth,
IN UINT32 MatchHeight,
IN BOOLEAN AllowLess )

Definition at line 46 of file Images.c.

◆ GuiLabelToImage()

EFI_STATUS GuiLabelToImage ( OUT GUI_IMAGE * Image,
IN VOID * RawData,
IN UINT32 DataLength,
IN UINT8 Scale,
IN BOOLEAN Inverted )

Definition at line 180 of file Images.c.

◆ GuiPngToImage()

EFI_STATUS GuiPngToImage ( OUT GUI_IMAGE * Image,
IN VOID * ImageData,
IN UINTN ImageDataSize,
IN BOOLEAN PremultiplyAlpha )

Definition at line 238 of file Images.c.

Variable Documentation

◆ gAppleDiskLabelImagePalette

STATIC CONST UINT8 gAppleDiskLabelImagePalette[256]
Initial value:
= {
[0x00] = 255,
[0xf6] = 238,
[0xf7] = 221,
[0x2a] = 204,
[0xf8] = 187,
[0xf9] = 170,
[0x55] = 153,
[0xfa] = 136,
[0xfb] = 119,
[0x80] = 102,
[0xfc] = 85,
[0xfd] = 68,
[0xab] = 51,
[0xfe] = 34,
[0xff] = 17,
[0xd6] = 0
}

Definition at line 26 of file Images.c.