mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
png_rgb_to_gray optimization fixes
This fixes the code that optimizes RGB to Gray transformations that only selected on channel and clarifies the handling of max_depth in the transform code. It eliminates some UNTESTED cases and removes the write 'invert alpha' UNTESTED macro because, while there are no test cases for it, code review some months after writing it suggests it is ok. Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
@@ -1193,10 +1193,10 @@ PNG_INTERNAL_FUNCTION(void,png_init_transform_control,(
|
||||
|
||||
#ifdef PNG_READ_TRANSFORMS_SUPPORTED
|
||||
PNG_INTERNAL_FUNCTION(unsigned int,png_run_this_transform_list_forwards,
|
||||
(png_transform_controlp tc, png_transformp *start, png_transformp *end),
|
||||
(png_transform_controlp tc, png_transformp *start, png_transformp end),
|
||||
PNG_EMPTY);
|
||||
/* Used by the transform cache code to run a sub-list, from *start to the
|
||||
* transform containing *end.
|
||||
* transform end.
|
||||
*/
|
||||
#endif /* READ_TRANSFORMS */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user