OLD | NEW |
1 | 1 |
2 /* pngwtran.c - transforms the data in a row for PNG writers | 2 /* pngwtran.c - transforms the data in a row for PNG writers |
3 * | 3 * |
4 * Last changed in libpng 1.6.0 [February 14, 2013] | 4 * Last changed in libpng 1.6.0 [February 14, 2013] |
5 * Copyright (c) 1998-2013 Glenn Randers-Pehrson | 5 * Copyright (c) 1998-2013 Glenn Randers-Pehrson |
6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | 6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) |
7 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | 7 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) |
8 * | 8 * |
9 * This code is released under the libpng license. | 9 * This code is released under the libpng license. |
10 * For conditions of distribution and use, see the disclaimer | 10 * For conditions of distribution and use, see the disclaimer |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 *(rp + 1) = (png_byte)(red & 0xff); | 627 *(rp + 1) = (png_byte)(red & 0xff); |
628 *(rp + 4) = (png_byte)((blue >> 8) & 0xff); | 628 *(rp + 4) = (png_byte)((blue >> 8) & 0xff); |
629 *(rp + 5) = (png_byte)(blue & 0xff); | 629 *(rp + 5) = (png_byte)(blue & 0xff); |
630 } | 630 } |
631 } | 631 } |
632 #endif /* PNG_WRITE_16BIT_SUPPORTED */ | 632 #endif /* PNG_WRITE_16BIT_SUPPORTED */ |
633 } | 633 } |
634 } | 634 } |
635 #endif /* PNG_MNG_FEATURES_SUPPORTED */ | 635 #endif /* PNG_MNG_FEATURES_SUPPORTED */ |
636 #endif /* PNG_WRITE_SUPPORTED */ | 636 #endif /* PNG_WRITE_SUPPORTED */ |
OLD | NEW |