Award BIOS logo

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
m (Sample files)
 
(18 intermediate revisions by 7 users not shown)
Line 4: Line 4:
 
|extensions={{ext|epa}}, {{ext|bmp}}
 
|extensions={{ext|epa}}, {{ext|bmp}}
 
}}
 
}}
'''Award BIOS logo''' (also known as '''EPA''' or '''AWBM''') is a family of image formats associated with Award BIOS firmware. These formats are used by those who wish to change the image shown on the boot screen of certain computers.
+
'''Award BIOS logo''' (also known as '''EPA''' or '''AWBM''') is a family of image formats associated with Award BIOS firmware. These formats are used by those who wish to change the image shown on the boot screen of certain computers. The default image is usually an "Energy Star" logo.
  
 
== Format ==
 
== Format ==
Line 10: Line 10:
  
 
=== Version 1 ===
 
=== Version 1 ===
Version 1 has no identifying signature. The BIOS renders the image in text mode, by customizing the character graphics. Consequently, each 8x14 block of pixels can use only use two different colors.
+
Version 1 images are rendered in text mode, by customizing the character graphics. Consequently, each 8×14 cell of pixels can only use two different colors.
  
There are usually two images in the file, the second being the small blue Award logo that also appears on the boot screen.
+
There is no identifying signature, but most files begin with {{magic|11 06}} or {{magic|11 09}}, based on the usual dimensions of the image in cells.
 +
 
 +
{| class="wikitable"
 +
! Name !! Type and length !! Description
 +
|-
 +
| width
 +
| uint8_t (1 byte)
 +
| Image width in character cells. Usually 17 (0x11). Each cell is 8 dots (pixels) wide.
 +
|-
 +
| height
 +
| uint8_t
 +
| Image height in character cells. Usually 6 or 9. Each cell is 14 dots high.
 +
|-
 +
| cmap
 +
| ''width'' × ''height'' bytes
 +
| An array of foreground-background pairs for each character cell. Cells are stored row-by-row, each row stored left-to-right. The less significant nybble corresponds to the foreground colour.
 +
|-
 +
| bitmap
 +
| ''width'' × ''height'' × 14 bytes
 +
| An array of bitmaps for the character cells, stored in the same order as ''cmap''. Each character cell occupies 14 bytes; each byte corresponds to one row of dots, the first byte being the topmost row, and the most significant bit representing the leftmost dot in a row. Bits set to 1 in this bitmap are displayed with the foreground colour of the cell; bits set to 0 are displayed with the background colour.
 +
|-
 +
| logo
 +
| (3 × 2 - 1) × 14 = 70 bytes
 +
| A small (3x2 cells; in pixels, 24x28) monochrome Award Software logo. Stored in the same format as ''bitmap''. The top-left corner of the image is not stored and assumed to be empty. There is no corresponding colour map; the logo is always displayed blue-on-black.
 +
|}
  
 
=== Version 2 ===
 
=== Version 2 ===
Version 2 files begin with a signature of "<code>AWBM</code>". This is a more typical kind of image format, not based on character graphics. It appears to support at least 4- and 8-bit paletted images.
+
Version 2 files begin with a signature of "<code>AWBM</code>". This is a more typical kind of image format, not based on character graphics. It appears in two variants: "planar 4-bit" and "packed 8-bit".
 +
 
 +
All values are little-endian.
 +
{| class="wikitable"
 +
! rowspan="2" | Name
 +
! colspan="2" | Length and type
 +
! rowspan="2" | Description
 +
|-
 +
! 4-bit variant
 +
! 8-bit variant
 +
|-
 +
| magic
 +
| colspan="2" | 4 bytes
 +
| Always equal to <code>'A' 'W' 'B' 'M'</code> (i.e. <code>41 57 42 4d</code>)
 +
|-
 +
| width
 +
| colspan="2" | uint16_t
 +
| rowspan="2" | Image width and height in pixels. Common image dimensions include 136x84, 136x126 and 640x480.
 +
|-
 +
| height
 +
| colspan="2" | uint16_t
 +
|-
 +
| data
 +
| ''width'' + (7 - ''width'' mod 8) × ''height'' / 2 bytes
 +
| ''width'' × ''height'' bytes
 +
| The image data; a series of rows of pixels.
 +
* In the 4-bit variant, each row of pixels is stored as four "plane" bitmaps, each storing one bit of the pixel values, starting with the bitmap for the least significant bit. Within each bitmap, pixels are stored left-to-right, and the most significant bit is the leftmost one. If the image width is not a multiple of 8, each "plane" bitmap is separately padded to a multiple of 8 bits.
 +
* In the 8-bit variant, this is simply an array of pixel values, stored row-by-row, left-to-right.
 +
|-
 +
| palmagic
 +
| colspan="2" | 4 bytes
 +
| Always equal to <code>'R' 'G' 'B' ' '</code> (i.e. <code>52 47 42 20</code>). The palette data has been observed to be absent in some files in the 4-bit format; in that case, the [[wikipedia:Color Graphics Adapter#Color palette|CGA palette]] should be assumed.
 +
|-
 +
| paldata
 +
| 16 × 3 bytes
 +
| 256 × 3 bytes
 +
| EGA palette data: an array of triplets of bytes in range 0..63. In the 4-bit variant of the format, the basic colour intensities are normally stored in blue-green-red order, but a few files seem to use red-green-blue order instead ([http://flazh.de/inc/dl.php?dl=epa/polldog16.epa example]). In the 8-bit variant, they are stored as red-green-blue.
 +
|}
  
 
== Specifications ==
 
== Specifications ==
Line 21: Line 82:
  
 
== Software ==
 
== Software ==
 +
* [[Konvertor]]
 
* [[XnView]]
 
* [[XnView]]
 +
* [[RECOIL]]
 +
* [http://www.blackfiveservices.co.uk/awbmtools.shtml AWBMTools] - Has source code to read and write (some) v2 files
 +
* [http://entropymine.com/deark/ Deark]
 +
* [[Tom's Editor]]
 +
* [https://web.archive.org/web/20080203033307/http://www.biosmods.com/download.php EPACoder 1.52]
  
 
== Sample files ==
 
== Sample files ==
* [http://www.flazh.de/en/bios-epa-logos.htm BIOS EPA-Logos]
+
* [http://www.juggernaut.de/seiten/pcfun/bios/epadownload.htm EPA Download]
 +
* http://whatis.rest7.com/how-to-open-epa-file
 +
* {{DexvertSamples|image/epa}}
  
 
== Links ==
 
== Links ==
 
* [http://www.drunkardswalk.dk/bios/Bioslogo.html Changing the EPA logo in Award BIOS]
 
* [http://www.drunkardswalk.dk/bios/Bioslogo.html Changing the EPA logo in Award BIOS]
 +
* [https://www.vogons.org/viewtopic.php?t=91378 Customize your BIOS Logos! (EPACoder 1.52, CBROM, Uniflash)]
 +
 +
[[Category:Booting]]

Latest revision as of 04:23, 28 December 2023

File Format
Name Award BIOS logo
Ontology
Extension(s) .epa, .bmp

Award BIOS logo (also known as EPA or AWBM) is a family of image formats associated with Award BIOS firmware. These formats are used by those who wish to change the image shown on the boot screen of certain computers. The default image is usually an "Energy Star" logo.

Contents

[edit] Format

There are at least two main versions of the format, sometimes called "version 1" and "version 2". Additionally, different versions of the BIOS have different restrictions on the size of the image, etc. There is evidence that different BIOS versions may even render the same file differently.

[edit] Version 1

Version 1 images are rendered in text mode, by customizing the character graphics. Consequently, each 8×14 cell of pixels can only use two different colors.

There is no identifying signature, but most files begin with 11 06 or 11 09, based on the usual dimensions of the image in cells.

Name Type and length Description
width uint8_t (1 byte) Image width in character cells. Usually 17 (0x11). Each cell is 8 dots (pixels) wide.
height uint8_t Image height in character cells. Usually 6 or 9. Each cell is 14 dots high.
cmap width × height bytes An array of foreground-background pairs for each character cell. Cells are stored row-by-row, each row stored left-to-right. The less significant nybble corresponds to the foreground colour.
bitmap width × height × 14 bytes An array of bitmaps for the character cells, stored in the same order as cmap. Each character cell occupies 14 bytes; each byte corresponds to one row of dots, the first byte being the topmost row, and the most significant bit representing the leftmost dot in a row. Bits set to 1 in this bitmap are displayed with the foreground colour of the cell; bits set to 0 are displayed with the background colour.
logo (3 × 2 - 1) × 14 = 70 bytes A small (3x2 cells; in pixels, 24x28) monochrome Award Software logo. Stored in the same format as bitmap. The top-left corner of the image is not stored and assumed to be empty. There is no corresponding colour map; the logo is always displayed blue-on-black.

[edit] Version 2

Version 2 files begin with a signature of "AWBM". This is a more typical kind of image format, not based on character graphics. It appears in two variants: "planar 4-bit" and "packed 8-bit".

All values are little-endian.

Name Length and type Description
4-bit variant 8-bit variant
magic 4 bytes Always equal to 'A' 'W' 'B' 'M' (i.e. 41 57 42 4d)
width uint16_t Image width and height in pixels. Common image dimensions include 136x84, 136x126 and 640x480.
height uint16_t
data width + (7 - width mod 8) × height / 2 bytes width × height bytes The image data; a series of rows of pixels.
  • In the 4-bit variant, each row of pixels is stored as four "plane" bitmaps, each storing one bit of the pixel values, starting with the bitmap for the least significant bit. Within each bitmap, pixels are stored left-to-right, and the most significant bit is the leftmost one. If the image width is not a multiple of 8, each "plane" bitmap is separately padded to a multiple of 8 bits.
  • In the 8-bit variant, this is simply an array of pixel values, stored row-by-row, left-to-right.
palmagic 4 bytes Always equal to 'R' 'G' 'B' ' ' (i.e. 52 47 42 20). The palette data has been observed to be absent in some files in the 4-bit format; in that case, the CGA palette should be assumed.
paldata 16 × 3 bytes 256 × 3 bytes EGA palette data: an array of triplets of bytes in range 0..63. In the 4-bit variant of the format, the basic colour intensities are normally stored in blue-green-red order, but a few files seem to use red-green-blue order instead (example). In the 8-bit variant, they are stored as red-green-blue.

[edit] Specifications

[edit] Software

[edit] Sample files

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox