diff --git a/src/libImaging/Unpack.c b/src/libImaging/Unpack.c index fbd01b62f..a094d7c68 100644 --- a/src/libImaging/Unpack.c +++ b/src/libImaging/Unpack.c @@ -1706,16 +1706,25 @@ static struct { ImagingShuffler unpack; } unpackers[] = { - /* raw mode syntax is ";" 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 ";". + // "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},