mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
620401dca6
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
/** @file
|
|
Copyright (C) 2020, vit9696. 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.
|
|
**/
|
|
|
|
#ifndef APPLE_DISK_LABEL_H
|
|
#define APPLE_DISK_LABEL_H
|
|
|
|
///
|
|
/// Image contains 8-bit values, which are indices in the opacity palette.
|
|
/// Colour is black.
|
|
///
|
|
#define APPLE_DISK_LABEL_PALETTED 1
|
|
|
|
///
|
|
/// Image contains 8-bit values, which are BGRA sequences.
|
|
/// For alpha 0xFF is fully transparent and 0x00 is fully opaque.
|
|
///
|
|
#define APPLE_DISK_LABEL_BGRA 2
|
|
|
|
///
|
|
/// Maximum disk label width and height for 1x scale.
|
|
///
|
|
#define APPLE_DISK_LABEL_MAX_WIDTH 340U
|
|
#define APPLE_DISK_LABEL_MAX_HEIGHT 12U
|
|
|
|
#pragma pack(push, 1)
|
|
|
|
///
|
|
/// Apple disk label structure, all fields are Big Endian.
|
|
///
|
|
typedef struct APPLE_DISK_LABEL_ {
|
|
UINT8 Type;
|
|
UINT16 Width;
|
|
UINT16 Height;
|
|
UINT8 Data[];
|
|
} APPLE_DISK_LABEL;
|
|
|
|
#pragma pack(pop)
|
|
|
|
#endif // APPLE_DISK_LABEL_H
|