Changeset 103316 in vbox for trunk/src/libs/libpng-1.6.42/pngtrans.c
- Timestamp:
- Feb 12, 2024 3:57:56 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/libpng-1.6.42/pngtrans.c
r96425 r103316 2 2 /* pngtrans.c - transforms the data in a row (used by both readers and writers) 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 104 104 { 105 105 png_ptr->transformations |= PNG_INTERLACE; 106 return (7);107 } 108 109 return (1);106 return 7; 107 } 108 109 return 1; 110 110 } 111 111 #endif … … 499 499 png_bytep ep = row + row_info->rowbytes; /* One beyond end of row */ 500 500 501 png_debug(1, "in png_do_strip_channel"); 502 501 503 /* At the start sp will point to the first byte to copy and dp to where 502 504 * it is copied to. ep always points just beyond the end of the row, so … … 699 701 png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info) 700 702 { 703 png_debug(1, "in png_do_check_palette_indexes"); 704 701 705 if (png_ptr->num_palette < (1 << row_info->bit_depth) && 702 706 png_ptr->num_palette > 0) /* num_palette can be 0 in MNG files */ … … 709 713 */ 710 714 int padding = PNG_PADBITS(row_info->pixel_depth, row_info->width); 711 png_bytep rp = png_ptr->row_buf + row_info->rowbytes - 1;715 png_bytep rp = png_ptr->row_buf + row_info->rowbytes; 712 716 713 717 switch (row_info->bit_depth) … … 834 838 { 835 839 if (png_ptr == NULL) 836 return (NULL);840 return NULL; 837 841 838 842 return png_ptr->user_transform_ptr;
Note:
See TracChangeset
for help on using the changeset viewer.