Commit 88646d37 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

[media] doc-rst: Clean up raw bayer pixel format definitions

- Explicitly state that the most significant n bits are zeroed on 10 and
  12 bpp formats.
- Remove extra comma from the last entry of the format list
- Add a missing colon before a list
- Use figures versus word numerals consistently
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent f5176d38
...@@ -20,15 +20,16 @@ Description ...@@ -20,15 +20,16 @@ Description
=========== ===========
These four pixel formats are raw sRGB / Bayer formats with 10 bits per These four pixel formats are raw sRGB / Bayer formats with 10 bits per
colour. Each colour component is stored in a 16-bit word, with 6 unused sample. Each sample is stored in a 16-bit word, with 6 unused
high bits filled with zeros. Each n-pixel row contains n/2 green samples high bits filled with zeros. Each n-pixel row contains n/2 green samples and
and n/2 blue or red samples, with alternating red and blue rows. Bytes n/2 blue or red samples, with alternating red and blue rows. Bytes are
are stored in memory in little endian order. They are conventionally stored in memory in little endian order. They are conventionally described
described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example of one of
of one of these formats these formats:
**Byte Order.** **Byte Order.**
Each cell is one byte, high 6 bits in high bytes are 0. Each cell is one byte, the 6 most significant bits in the high bytes
are 0.
......
...@@ -20,10 +20,10 @@ Description ...@@ -20,10 +20,10 @@ Description
=========== ===========
These four pixel formats are packed raw sRGB / Bayer formats with 10 These four pixel formats are packed raw sRGB / Bayer formats with 10
bits per colour. Every four consecutive colour components are packed bits per sample. Every four consecutive samples are packed into 5
into 5 bytes. Each of the first 4 bytes contain the 8 high order bits of bytes. Each of the first 4 bytes contain the 8 high order bits
the pixels, and the fifth byte contains the two least significants bits of the pixels, and the 5th byte contains the 2 least significants
of each pixel, in the same order. bits of each pixel, in the same order.
Each n-pixel row contains n/2 green samples and n/2 blue or red samples, Each n-pixel row contains n/2 green samples and n/2 blue or red samples,
with alternating green-red and green-blue rows. They are conventionally with alternating green-red and green-blue rows. They are conventionally
......
...@@ -26,10 +26,11 @@ high bits filled with zeros. Each n-pixel row contains n/2 green samples ...@@ -26,10 +26,11 @@ high bits filled with zeros. Each n-pixel row contains n/2 green samples
and n/2 blue or red samples, with alternating red and blue rows. Bytes and n/2 blue or red samples, with alternating red and blue rows. Bytes
are stored in memory in little endian order. They are conventionally are stored in memory in little endian order. They are conventionally
described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
of one of these formats of one of these formats:
**Byte Order.** **Byte Order.**
Each cell is one byte, high 4 bits in high bytes are 0. Each cell is one byte, the 4 most significant bits in the high bytes are
0.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment