19#include <Library/DebugLib.h>
20#include <Library/BaseMemoryLib.h>
53 DEBUG ((DEBUG_INFO,
"OCPNG: Error while getting image dimensions from PNG header\n"));
54 return EFI_INVALID_PARAMETER;
70 OUT BOOLEAN *HasAlphaType OPTIONAL
94 DEBUG ((DEBUG_INFO,
"OCPNG: Error while decoding PNG image - %u\n",
Error));
96 return EFI_INVALID_PARAMETER;
102 if (HasAlphaType != NULL) {
123 OUT UINTN *BufferSize
134 DEBUG ((DEBUG_INFO,
"OCPNG: Error while encoding PNG image\n"));
135 return EFI_INVALID_PARAMETER;
void Error(char *FileName, uint32_t LineNumber, uint32_t ErrorCode, char *OffendingText, char *MsgFmt,...)
DMG_SIZE_DEVICE_PATH Size
EFI_STATUS OcGetPngDims(IN VOID *Buffer, IN UINTN Size, OUT UINT32 *Width, OUT UINT32 *Height)
EFI_STATUS OcDecodePng(IN VOID *Buffer, IN UINTN Size, OUT VOID **RawData, OUT UINT32 *Width, OUT UINT32 *Height, OUT BOOLEAN *HasAlphaType OPTIONAL)
EFI_STATUS OcEncodePng(IN VOID *RawData, IN UINT32 Width, IN UINT32 Height, OUT VOID **Buffer, OUT UINTN *BufferSize)
OC_TYPING_BUFFER_ENTRY Buffer[OC_TYPING_BUFFER_SIZE]
unsigned lodepng_inspect(unsigned *w, unsigned *h, LodePNGState *state, const unsigned char *in, size_t insize)
unsigned lodepng_decode(unsigned char **out, unsigned *w, unsigned *h, LodePNGState *state, const unsigned char *in, size_t insize)
void lodepng_state_cleanup(LodePNGState *state)
unsigned lodepng_encode32(unsigned char **out, size_t *outsize, const unsigned char *image, unsigned w, unsigned h)
unsigned lodepng_is_alpha_type(const LodePNGColorMode *info)
void lodepng_state_init(LodePNGState *state)
LodePNGColorType colortype
LodePNGDecompressSettings zlibsettings
LodePNGColorMode info_raw
LodePNGDecoderSettings decoder