Package com.io7m.calino.vanilla.internal
Class CLN1SectionReadableImage2D
java.lang.Object
com.io7m.calino.vanilla.internal.CLN1SectionReadableAbstract
com.io7m.calino.vanilla.internal.CLN1SectionReadableImage2D
- All Implemented Interfaces:
CLNSectionReadableImage2DType
,CLNSectionReadableStandardType
,CLNSectionReadableType
,Closeable
,AutoCloseable
public final class CLN1SectionReadableImage2D
extends CLN1SectionReadableAbstract
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 com.io7m.calino.vanilla.internal.CLN1SectionReadableAbstract
close, description, errorLimitExceeded, fileSectionDescription, reader, request, sectionDataChannel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.io7m.calino.api.CLNSectionReadableType
description, fileSectionDescription, sectionDataChannel
-
Method Details
-
mipMapDescriptions
- Specified by:
mipMapDescriptions
in interfaceCLNSectionReadableImage2DType
- Returns:
- The set of declared mipmaps
- Throws:
IOException
- On errors
-
mipMapDataWithoutSupercompression
public ReadableByteChannel mipMapDataWithoutSupercompression(CLNImage2DDescription description) throws IOException Description copied from interface:CLNSectionReadableImage2DType
Obtain a readable channel that returns decompressed data (that is, data with any supercompression removed).- Specified by:
mipMapDataWithoutSupercompression
in interfaceCLNSectionReadableImage2DType
- Parameters:
description
- The image description- Returns:
- A readable channel
- Throws:
IOException
- On I/O errors
-
mipMapDataRaw
Description copied from interface:CLNSectionReadableImage2DType
Obtain 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:
mipMapDataRaw
in interfaceCLNSectionReadableImage2DType
- Parameters:
description
- The image description- Returns:
- A readable channel
- Throws:
IOException
- On I/O errors
-