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;
|
ImagingShuffler unpack;
|
||||||
} unpackers[] = {
|
} unpackers[] = {
|
||||||
|
|
||||||
/* raw mode syntax is "<mode>;<bits><flags>" where "bits" defaults
|
// The rawmode syntax is "<mode>;<bits><flags>".
|
||||||
depending on mode (1 for "1", 8 for "P" and "L", etc), and
|
// "bits" defaults depending on mode (1 for "1", 8 for "P" and "L", etc.).
|
||||||
"flags" should be given in alphabetical order. if both bits
|
// "flags" should be given in alphabetical order.
|
||||||
and flags have their default values, the ; should be left out */
|
// If both bits and flags have their default values, the ; should be left out.
|
||||||
|
|
||||||
/* flags: "I" inverted data; "R" reversed bit order; "B" big
|
// Flags:
|
||||||
endian byte order (default is little endian); "L" line
|
// "B" big endian byte order (default is little endian)
|
||||||
interleave, "S" signed, "F" floating point, "Z" inverted alpha */
|
// "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 */
|
/* bilevel */
|
||||||
{"1", "1", 1, unpack1},
|
{"1", "1", 1, unpack1},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user