@@ -705,7 +705,7 @@ ImagingUnpackBGR15(UINT8 *out, const UINT8 *in, int pixels) {
705
705
void
706
706
ImagingUnpackBGRA15 (UINT8 * out , const UINT8 * in , int pixels ) {
707
707
int i , pixel ;
708
- /* RGB, reversed bytes , 5/5/5/1 bits per pixel */
708
+ /* RGB, rearranged channels , 5/5/5/1 bits per pixel */
709
709
for (i = 0 ; i < pixels ; i ++ ) {
710
710
pixel = in [0 ] + (in [1 ] << 8 );
711
711
out [B ] = (pixel & 31 ) * 255 / 31 ;
@@ -1056,7 +1056,7 @@ unpackABGR(UINT8 *_out, const UINT8 *in, int pixels) {
1056
1056
static void
1057
1057
unpackBGRA (UINT8 * _out , const UINT8 * in , int pixels ) {
1058
1058
int i ;
1059
- /* RGBA, reversed bytes */
1059
+ /* RGBA, rearranged channels */
1060
1060
for (i = 0 ; i < pixels ; i ++ ) {
1061
1061
UINT32 iv = MAKE_UINT32 (in [2 ], in [1 ], in [0 ], in [3 ]);
1062
1062
memcpy (_out , & iv , sizeof (iv ));
@@ -1068,7 +1068,7 @@ unpackBGRA(UINT8 *_out, const UINT8 *in, int pixels) {
1068
1068
static void
1069
1069
unpackBGRA16L (UINT8 * _out , const UINT8 * in , int pixels ) {
1070
1070
int i ;
1071
- /* 16-bit RGBA, little-endian order, reversed words */
1071
+ /* 16-bit RGBA, little-endian order, rearranged channels */
1072
1072
for (i = 0 ; i < pixels ; i ++ ) {
1073
1073
UINT32 iv = MAKE_UINT32 (in [5 ], in [3 ], in [1 ], in [7 ]);
1074
1074
memcpy (_out , & iv , sizeof (iv ));
@@ -1080,7 +1080,7 @@ unpackBGRA16L(UINT8 *_out, const UINT8 *in, int pixels) {
1080
1080
static void
1081
1081
unpackBGRA16B (UINT8 * _out , const UINT8 * in , int pixels ) {
1082
1082
int i ;
1083
- /* 16-bit RGBA, big-endian order, reversed words */
1083
+ /* 16-bit RGBA, big-endian order, rearranged channels */
1084
1084
for (i = 0 ; i < pixels ; i ++ ) {
1085
1085
UINT32 iv = MAKE_UINT32 (in [4 ], in [2 ], in [0 ], in [6 ]);
1086
1086
memcpy (_out , & iv , sizeof (iv ));
0 commit comments