public class JP2KProxyLogicalTarget extends JPEG2KLogicalTarget
Modifier and Type | Field and Description |
---|---|
private ProxyCacheManagement |
cache |
codestreams, log, tid, TID_DEFAULT_LENGTH
Constructor and Description |
---|
JP2KProxyLogicalTarget(java.lang.String tid,
ProxyCacheManagement cache,
CADILog log)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
decodeMainHeader()
Decodes the image main header.
|
ProxyJPEG2KCodestream |
getCodestream(int index)
Returns the
#codestream attribute. |
long |
getDataLength(long inClassIdentifier)
Returns the length of the data bin of which unique identifier is
inClassIdentifier.
|
int |
getLastCompleteLayer(long inClassIdentifier,
long dataBinLength) |
int |
getPacketLength(long inClassIdentifier,
int layer)
Returns the length of a packet.
|
int |
getPacketOffsetWithDataBin(long inClassIdentifier,
int layer)
Returns the offset of a packet in the data bin.
|
void |
list(java.io.PrintStream out)
Prints the JPC logical target data out to the specified output stream.
|
java.lang.String |
toString() |
generateTid, generateTid, getTID
private ProxyCacheManagement cache
public JP2KProxyLogicalTarget(java.lang.String tid, ProxyCacheManagement cache, CADILog log)
cache
- definition in cache
.log
- definition in JPEG2KLogicalTarget.log
.public ProxyJPEG2KCodestream getCodestream(int index)
#codestream
attribute.getCodestream
in class JPEG2KLogicalTarget
#codestream
attribute.public int getLastCompleteLayer(long inClassIdentifier, long dataBinLength)
getLastCompleteLayer
in class JPEG2KLogicalTarget
public int getPacketLength(long inClassIdentifier, int layer)
JPEG2KLogicalTarget
getPacketLength
in class JPEG2KLogicalTarget
inClassIdentifier
- definition in JPIPMessageHeader.inClassIdentifier
.layer
- the number of the layer.public long getDataLength(long inClassIdentifier)
JPEG2KLogicalTarget
getDataLength
in class JPEG2KLogicalTarget
inClassIdentifier
- definition in
JPIPMessageHeader.inClassIdentifier
.public int getPacketOffsetWithDataBin(long inClassIdentifier, int layer)
JPEG2KLogicalTarget
getPacketOffsetWithDataBin
in class JPEG2KLogicalTarget
inClassIdentifier
- definition in JPIPMessageHeader.inClassIdentifier
.layer
- the layer which offset is requestedpublic java.lang.String toString()
toString
in class JPEG2KLogicalTarget
public void list(java.io.PrintStream out)
list
in class JPEG2KLogicalTarget
out
- an output stream.private boolean decodeMainHeader() throws ErrorException
WarningException
ErrorException
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)