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
IOException
public byte[] toBytes(VR vr, boolean bigEndian) throws IOException
toBytes
in interface Value
IOException
public void writeTo(DicomOutputStream out, VR vr) throws IOException
writeTo
in interface Value
IOException
public int calcLength(DicomEncodingOptions encOpts, boolean explicitVR, VR vr)
calcLength
in interface Value
public int getEncodedLength(DicomEncodingOptions encOpts, boolean explicitVR, VR vr)
getEncodedLength
in interface Value
private void writeTo(OutputStream out) throws IOException
IOException
private void compress() throws IOException
IOException
Copyright © 2017 dcm4che.org. All rights reserved.