private class Compressor.CompressedFrame extends Object implements Value
| Modifier and Type | Field and Description |
|---|---|
private MemoryCacheImageOutputStream |
cache |
private Compressor.CacheOutputStream |
cacheout |
private int |
frameIndex |
private int |
streamLength |
| Constructor and Description |
|---|
CompressedFrame(int frameIndex) |
| Modifier and Type | Method and Description |
|---|---|
int |
calcLength(DicomEncodingOptions encOpts,
boolean explicitVR,
VR vr) |
private void |
compress() |
int |
getEncodedLength(DicomEncodingOptions encOpts,
boolean explicitVR,
VR vr) |
boolean |
isEmpty() |
byte[] |
toBytes(VR vr,
boolean bigEndian) |
void |
writeTo(DicomOutputStream out,
VR vr) |
private void |
writeTo(OutputStream out) |
private int frameIndex
private int streamLength
private Compressor.CacheOutputStream cacheout
private MemoryCacheImageOutputStream cache
public CompressedFrame(int frameIndex) throws IOException
IOExceptionpublic byte[] toBytes(VR vr, boolean bigEndian) throws IOException
toBytes in interface ValueIOExceptionpublic void writeTo(DicomOutputStream out, VR vr) throws IOException
writeTo in interface ValueIOExceptionpublic int calcLength(DicomEncodingOptions encOpts, boolean explicitVR, VR vr)
calcLength in interface Valuepublic int getEncodedLength(DicomEncodingOptions encOpts, boolean explicitVR, VR vr)
getEncodedLength in interface Valueprivate void writeTo(OutputStream out) throws IOException
IOExceptionprivate void compress() throws IOException
IOExceptionCopyright © 2017 dcm4che.org. All rights reserved.