OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
disklabel.c File Reference
#include <arpa/inet.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  DiskLabel_
 

Macros

#define BigEndianToNative16(x)
 
#define LABEL_MAX_WIDTH   340
 
#define LABEL_MAX_HEIGHT   12
 
#define LABEL_TYPE_PALETTED   1
 
#define LABEL_TYPE_BGRA   2
 

Typedefs

typedef struct DiskLabel_ DiskLabel
 

Functions

int main (int argc, char *argv[])
 

Detailed Description

Read macOS .disk_label (.disk_label_2x) file and convert to .ppm. Write macOS .disk_label (.disk_label_2x) files from text string. Reference:

Copyright (c) 2019-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.

Definition in file disklabel.c.

Macro Definition Documentation

◆ BigEndianToNative16

#define BigEndianToNative16 ( x)
Value:
ntohs(x)
UINT16 x
Definition BmfFile.h:83

Definition at line 29 of file disklabel.c.

◆ LABEL_MAX_HEIGHT

#define LABEL_MAX_HEIGHT   12

Definition at line 68 of file disklabel.c.

◆ LABEL_MAX_WIDTH

#define LABEL_MAX_WIDTH   340

Definition at line 67 of file disklabel.c.

◆ LABEL_TYPE_BGRA

#define LABEL_TYPE_BGRA   2

Definition at line 70 of file disklabel.c.

◆ LABEL_TYPE_PALETTED

#define LABEL_TYPE_PALETTED   1

Definition at line 69 of file disklabel.c.

Typedef Documentation

◆ DiskLabel

typedef struct DiskLabel_ DiskLabel

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 412 of file disklabel.c.