Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
BMP file format
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== RGB video subtypes === The BITFIELD mechanism described above allows for the definition of tens of thousands of different pixel formats, however only several of them are used in practice,<ref name="PSformats2"/> all palettized formats RGB8, RGB4, and RGB1 (marked in yellow in the table above, defined in <code>dshow.h</code>.MEDIASUBTYPE names): {| class="wikitable" style="float:left" |+ Uncompressed RGB Video Subtypes<ref name="dshow">{{cite web|url=http://msdn.microsoft.com/en-us/library/windows/desktop/dd407253(v=vs.85).aspx|title=Uncompressed RGB Video Subtypes|publisher=[[MSDN]]|work=dshow.h|access-date=2014-03-11}}</ref> !R.G.B.A.X !RGB subtype !R.G.B.A.X !ARGB subtype |- | 8.8.8.0.8 | RGB32 | 8.8.8.8.0 | ARGB32 |- | | | 10.10.10.2.0 | A2R10G10B10 |- | 8.8.8.0.0 | RGB24 | 10.10.10.2.0 | A2B10G10R10 |- | 5.6.5.0.0 | RGB565 | 4.4.4.4.0 | ARGB4444 |- | 5.5.5.0.1 | RGB555 | 5.5.5.1.0 | ARGB1555 |} {| class="wikitable" style="float:right" |+ Bit fields for ten RGB bits<ref name="dshow" /> !Bit field !Offset (hex) !colspan="3"|<span style="float:right">Bits</span> A2R10G10B10 !colspan="3"|<span style="float:right">Bits</span> A2B10G10R10 |- |Red |36 |style="color:blue"|<code>00 00 F0 3F</code> |<abbr title="little-endian">LE:</abbr> <code>3FF00000</code> |<code>20</code>...<code>29</code> |style="color:red" |<code>FF 03 00 00</code> |<abbr title="little-endian">LE:</abbr> <code>000003FF</code> |<code> 0</code>...<code> 9</code> |- |Green |3A |<code>00 FC 0F 00</code> |<abbr title="little-endian">LE:</abbr> <code>000FFC00</code> |<code>10</code>...<code>19</code> |<code>00 FC 0F 00</code> |<abbr title="little-endian">LE:</abbr> <code>000FFC00</code> |<code>10</code>...<code>19</code> |- |Blue |3E |style="color:red" |<code>FF 03 00 00</code> |<abbr title="little-endian">LE:</abbr> <code>000003FF</code> |<code> 0</code>...<code> 9</code> |style="color:blue"|<code>00 00 F0 3F</code> |<abbr title="little-endian">LE:</abbr> <code>3FF00000</code> |<code>20</code>...<code>29</code> |- |Alpha |42 |<code>00 00 00 C0</code> |<abbr title="little-endian">LE:</abbr> <code>C0000000</code> |<code>30</code>...<code>31</code> |<code>00 00 00 C0</code> |<abbr title="little-endian">LE:</abbr> <code>C0000000</code> |<code>30</code>...<code>31</code> |}{{Clear}} In version 2.1.4 [[FFmpeg]] supported (in its own terminology) the BMP pixel formats ''bgra, bgr24, rgb565le, rgb555le, rgb444le, rgb8, bgr8, rgb4_byte, bgr4_byte, gray, pal8,'' and ''monob''; i.e., ''bgra'' was the only supported pixel format with transparency.<ref>{{cite web|url=http://www.ffmpeg.org/general.html#Image-Formats|title=Image Formats|work=[[FFmpeg]] General Documentation|year=2014|access-date=2014-02-23}}</ref> [[File:Bmp format.svg|thumb|upright=0.6|[[#Example 1|Example 1]] of a 2Γ2 pixel bitmap, with 24 bits/pixel encoding]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)