#573: Better naming: LuminanceToGray

This commit is contained in:
Harald Kuhr
2021-04-10 18:14:09 +02:00
parent b4ef5823f3
commit bd796429c5
3 changed files with 6 additions and 6 deletions
@@ -421,7 +421,7 @@ public final class JPEGImageReader extends ImageReaderBase {
ICC_ColorSpace intendedCS = profile != null ? ColorSpaces.createColorSpace(profile) : null;
if (destination.getNumBands() <= 2 && (csType != JPEGColorSpace.Gray && csType != JPEGColorSpace.GrayA)) {
convert = new LumaToGray();
convert = new LuminanceToGray();
}
else if (profile != null && (csType == JPEGColorSpace.Gray || csType == JPEGColorSpace.GrayA)) {
// com.sun. reader does not do ColorConvertOp for CS_GRAY, even if embedded ICC profile,
@@ -16,7 +16,7 @@ import java.awt.image.WritableRaster;
* @author last modified by $Author: haraldk$
* @version $Id: LumaToGray.java,v 1.0 10/04/2021 haraldk Exp$
*/
final class LumaToGray implements RasterOp {
final class LuminanceToGray implements RasterOp {
@Override
public WritableRaster filter(final Raster src, WritableRaster dest) {