public class ServerWindowScalingFactor extends WindowScalingFactor
WindowScalingFactor
class to be
used by the CADIServer.Modifier and Type | Field and Description |
---|---|
private JP2KServerLogicalTarget |
logicalTarget
Definition in
JP2KServerLogicalTarget . |
private java.util.ArrayList<ResponseData> |
responseDataList |
align, codestream, EORReasonCode, maximumResponseLength, quality, responseViewWindow, scalingFactors, serverCache
Constructor and Description |
---|
ServerWindowScalingFactor(JP2KServerLogicalTarget logicalTarget,
ServerCacheModel serverCache)
Constructor.
|
ServerWindowScalingFactor(JP2KServerLogicalTarget logicalTarget,
ServerCacheModel serverCache,
boolean align)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addTileHeader(int tileIndex)
Adds the tile-header to the response.
|
java.util.ArrayList<ResponseData> |
getResponseData()
Returns the
#jpipMessageHeaders attribute. |
void |
list(java.io.PrintStream out)
Prints this File Order Delivery out to the specified output stream.
|
void |
runResponseData(java.util.ArrayList<ResponseData> responseDataList,
long maximumResponseLength) |
void |
runResponseParameters(ViewWindowField viewWindow)
Calculates the WOI which will be sent to the client using a layers-based
rate-distortion method (file is delivery in the same order that is is
saved).
|
java.lang.String |
toString() |
computeCompressionSlopeThresholds, computeResequencedSlopeThresholds, getEORReasonCode, getQuality, getResponseViewWindow, packetsSequencing, runResponseData, runResponseData, setAditionalScalingFactors, setAlign
private JP2KServerLogicalTarget logicalTarget
JP2KServerLogicalTarget
.private java.util.ArrayList<ResponseData> responseDataList
public ServerWindowScalingFactor(JP2KServerLogicalTarget logicalTarget, ServerCacheModel serverCache)
logicalTarget
- definition in logicalTarget
.serverCache
- definition in WindowScalingFactor.serverCache
.public ServerWindowScalingFactor(JP2KServerLogicalTarget logicalTarget, ServerCacheModel serverCache, boolean align)
logicalTarget
- serverCache
- align
- public void runResponseParameters(ViewWindowField viewWindow) throws java.lang.IllegalArgumentException, ErrorException
runResponseParameters
in class WindowScalingFactor
viewWindow
- the requested Window Of InterestErrorException
java.lang.IllegalArgumentException
public void runResponseData(java.util.ArrayList<ResponseData> responseDataList, long maximumResponseLength) throws ErrorException
maximumResponseLength
- definition in WindowScalingFactor.maximumResponseLength
ErrorException
public final java.util.ArrayList<ResponseData> getResponseData()
#jpipMessageHeaders
attribute.#jpipMessageHeaders
attribute.public java.lang.String toString()
toString
in class WindowScalingFactor
public void list(java.io.PrintStream out)
list
in class WindowScalingFactor
out
- an output stream.private void addTileHeader(int tileIndex)
It is a temporal method while tiles are not supported.
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)