OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcCompressionLib.c File Reference

Go to the source code of this file.

Functions

UINT32 DecompressMaskedRLE24 (OUT UINT8 *Dst, IN UINT32 DstLen, IN UINT8 *Src, IN UINT32 SrcLen, IN UINT8 *Mask, IN UINT32 MaskLen, IN BOOLEAN Premultiply)
 

Detailed Description

Copyright (C) 2020, vit9696. All rights reserved.

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 OcCompressionLib.c.

Function Documentation

◆ DecompressMaskedRLE24()

UINT32 DecompressMaskedRLE24 ( OUT UINT8 * Dst,
IN UINT32 DstLen,
IN UINT8 * Src,
IN UINT32 SrcLen,
IN UINT8 * Mask,
IN UINT32 MaskLen,
IN BOOLEAN Premultiply )

Decompress buffer with RLE24 algorithm and 8-bit alpha. This algorithm is used for encoding IT32/T8MK images in ICNS.

Parameters
[out]DstDestination buffer.
[in]DstLenDestination buffer size.
[in]SrcSource buffer.
[in]SrcLenSource buffer size.
[in]MaskSource buffer.
[in]MaskLenSource buffer size.
[in]PremultiplyMultiply source channels by alpha.
Returns
DecompressedLen on success otherwise 0.

Definition at line 18 of file OcCompressionLib.c.