Class CLN2SectionReadableImage2D
java.lang.Object
com.io7m.calino.vanilla.internal.CLN2SectionReadableAbstract
com.io7m.calino.vanilla.internal.CLN2SectionReadableImage2D
- All Implemented Interfaces:
CLNSectionReadableImage2DType, CLNSectionReadableStandardType, CLNSectionReadableType, AutoCloseable
public final class CLN2SectionReadableImage2D
extends CLN2SectionReadableAbstract
implements CLNSectionReadableImage2DType
A readable 2D image section.
-
Method Summary
Modifier and TypeMethodDescriptionmipMapDataRaw(CLNImage2DDescription description) Obtain a readable channel that returns potentially compressed data.mipMapDataWithoutSupercompression(CLNImage2DDescription description) Obtain a readable channel that returns decompressed data (that is, data with any supercompression removed).Methods inherited from class CLN2SectionReadableAbstract
close, errorLimitExceeded, reader, request, section, sectionDataChannel, sectionDataReaderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CLNSectionReadableType
close, section, sectionDataChannel
-
Method Details
-
mipMapDescriptions
- Specified by:
mipMapDescriptionsin interfaceCLNSectionReadableImage2DType- Returns:
- The set of declared mipmaps
- Throws:
CLNException- On errors
-
mipMapDataWithoutSupercompression
public ReadableByteChannel mipMapDataWithoutSupercompression(CLNImage2DDescription description) throws CLNException Description copied from interface:CLNSectionReadableImage2DTypeObtain a readable channel that returns decompressed data (that is, data with any supercompression removed).- Specified by:
mipMapDataWithoutSupercompressionin interfaceCLNSectionReadableImage2DType- Parameters:
description- The image description- Returns:
- A readable channel
- Throws:
CLNException- On I/O errors
-
mipMapDataRaw
Description copied from interface:CLNSectionReadableImage2DTypeObtain a readable channel that returns potentially compressed data. The bytes returned by the channel are not interpreted in any form, and are exactly as they appeared in the underlying file.- Specified by:
mipMapDataRawin interfaceCLNSectionReadableImage2DType- Parameters:
description- The image description- Returns:
- A readable channel
- Throws:
CLNException- On I/O errors
-