Add doc/note/pixel-subsampling.md

This commit is contained in:
Nigel Tao committed 2019-12-10 09:40:44 +11:00
1 parent 0f375517e1
commit 721678ed75
5 files changed
+122 -67

No files matched your search

+7 -3
View File
@@ -114,6 +114,10 @@ order. More detail of other software libraries' naming conventions is in
Alexandros Frantzis' [Pixel Format
Guide](https://afrantzis.github.io/pixel-format-guide/).
Do not manipulate a `wuffs_base__pixel_format`'s bits directly; they are
private implementation details. Use functions such as
`wuffs_base__pixel_format__num_planes` instead.
## API Stability
The `wuffs_base__pixel_format` bit packing is documented for explanation and to
assist in debugging (e.g. `printf`'ing the bits in `%x` format). However, do
not manipulate its bits directly; they are private implementation details. Use
functions such as `wuffs_base__pixel_format__num_planes` instead.