Bug 651482 - Update documentation. r=tnikkel
☠☠ backed out by 94667ab68f35 ☠ ☠
authorwesj <we.j@live.com>
Mon, 18 May 2020 06:15:25 +0000
changeset 530549 734c4f395eba16391772a817a2cccd4a078853af
parent 530548 d8cc480c563ce2c6cb51cc9225662a3f4aab36b6
child 530550 3ead0007c8fb0f39dd9953b751a014de834fe87c
push id116230
push usernerli@mozilla.com
push dateMon, 18 May 2020 06:42:01 +0000
treeherderautoland@734c4f395eba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstnikkel
bugs651482
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 651482 - Update documentation. r=tnikkel Depends on D75467 Differential Revision: https://phabricator.services.mozilla.com/D75703
image/decoders/nsBMPDecoder.cpp
--- a/image/decoders/nsBMPDecoder.cpp
+++ b/image/decoders/nsBMPDecoder.cpp
@@ -43,17 +43,21 @@
 //   length is |mNumColors|, or 2^|mBpp| if |mNumColors| is zero.
 // - |mCompression| can be RGB (i.e. no compression), RLE4 (if |mBpp|==4) or
 //   RLE8 (if |mBpp|==8) values.
 //
 // WinBMPv3-NT. A variant of WinBMPv3.
 // - It did not change the info header layout from WinBMPv3.
 // - |mBpp| can now be 16 or 32, in which case |mCompression| can be RGB or the
 //   new BITFIELDS value; in the latter case an additional 12 bytes of color
-//   bitfields follow the info header.
+//   bitfields follow the info header (52 bytes total).
+//
+// WinBMPv3-NT-Alpha. A variant of WinBMPv3-NT with support for alpha channels.
+//   Adds an additional 4 bytes in in the info header (now 56 bytes total), and
+//   supports an alpha channel in the BITFIELDS sections.
 //
 // WinBMPv4.
 // - It extended the info header to 108 bytes, including the 12 bytes of color
 //   mask data from WinBMPv3-NT, plus alpha mask data, and also color-space and
 //   gamma correction fields.
 //
 // WinBMPv5.
 // - It extended the info header to 124 bytes, adding color profile data.