mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 21:56:56 +03:00
clean up rawmode syntax comments
This commit is contained in:
parent
75205f0a50
commit
a43e1f8118
|
@ -1706,16 +1706,25 @@ static struct {
|
|||
ImagingShuffler unpack;
|
||||
} unpackers[] = {
|
||||
|
||||
/* raw mode syntax is "<mode>;<bits><flags>" where "bits" defaults
|
||||
depending on mode (1 for "1", 8 for "P" and "L", etc), and
|
||||
"flags" should be given in alphabetical order. if both bits
|
||||
and flags have their default values, the ; should be left out */
|
||||
// The rawmode syntax is "<mode>;<bits><flags>".
|
||||
// "bits" defaults depending on mode (1 for "1", 8 for "P" and "L", etc.).
|
||||
// "flags" should be given in alphabetical order.
|
||||
// If both bits and flags have their default values, the ; should be left out.
|
||||
|
||||
/* flags: "I" inverted data; "R" reversed bit order; "B" big
|
||||
endian byte order (default is little endian); "L" line
|
||||
interleave, "S" signed, "F" floating point, "Z" inverted alpha */
|
||||
// Flags:
|
||||
// "B" big endian byte order (default is little endian)
|
||||
// "F" floating point
|
||||
// "I" inverted data
|
||||
// "L" line interleaved
|
||||
// "N" native endian byte order
|
||||
// "R" reversed bit order
|
||||
// "S" signed
|
||||
// "Z" inverted alpha
|
||||
|
||||
/* exception: rawmodes "I" and "F" are always native endian byte order */
|
||||
// Exceptions:
|
||||
// Some RGB/BGR rawmodes have different sized bands,
|
||||
// so the size of each band is listed consecutively.
|
||||
// Rawmodes "I" and "F" default to native endian byte order.
|
||||
|
||||
/* bilevel */
|
||||
{"1", "1", 1, unpack1},
|
||||
|
|
Loading…
Reference in New Issue
Block a user