#include <spatmod/imagetargetj2k.h>
Public Types | |
| enum | GEOMETHOD { GEOMETHOD_None = 0x00, GEOMETHOD_GML = 0x01, GEOMETHOD_GeoTIFF = 0x02, GEOMETHOD_Automatic = 0x00, GEOMETHOD_Affine = 0x10 } |
| enum | PROGORDER { PROGORDER_LRCP = 0, PROGORDER_RLCP = 1, PROGORDER_RPCL = 2, PROGORDER_PCRL = 3, PROGORDER_CPRL = 4, PROGORDER_Auto = 99 } |
Public Member Functions | |
| TARGETPARM_J2K () | |
| void | SetGeoMethod (GEOMETHOD GeoMethod) |
| void | SetIncludePacketLengthMarkers (bool IncludePLT=true) |
| void | SetIncludeTilePartHeaders (bool IncludeTPH=true) |
| void | SetNumDetailLayers (int NumDetailLayers) |
| void | SetNumResolutionLevels (int numlevels) |
| void | SetPrecinctSizes (const SIMPLE_ARRAY< LPOINT2D > &PrecinctSizes) |
| void | SetPrecinctUsage (bool UsePrecincts) |
| void | SetProgressionOrder (PROGORDER ProgOrder) |
| void | SetReversible (bool reversible=true) |
| void | SetTargetQuality (double TargetQuality) |
| void | SetTargetRatio (UINT16 TargetRatio) |
| void | SetTargetSize (INT64 TargetSizeBytes) |
| SPATMOD::IMAGE::TARGETPARM_J2K::TARGETPARM_J2K | ( | ) |
Constructor.
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetGeoMethod | ( | GEOMETHOD | GeoMethod | ) | [inline] |
Set embedded georeference method.
Default is to use both GML and GeoTIFF embedding with automatic.
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetIncludePacketLengthMarkers | ( | bool | IncludePLT = true |
) | [inline] |
Set whether to always include packet length (PLT) markers.
Including packet length markers allows better random access to the J2K file. Default will include packet length markers only for images > 1M pixels.
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetIncludeTilePartHeaders | ( | bool | IncludeTPH = true |
) | [inline] |
Set whether to always add tile-part headers for resolution-progressive orderings.
This introduces tile-part headers immediately before each resolution level and locates the packet length information with the header of the tile-part to which the packets belong. This has the effect of delaying the loading and parsing of packet length identifiers (hundreds of thousands of packets for a typical 500 MByte image) until an interactive viewer or browser requests the relevant resolution. Default is to include only for images > 4M pixels
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetNumDetailLayers | ( | int | NumDetailLayers | ) | [inline] |
Set number of detail layers.
Defaults to 1 detail layer if not called.
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetNumResolutionLevels | ( | int | numlevels | ) | [inline] |
Set number of resolution levels.
Default will automatically determine based on dimensions such that lowest resolution level will have dimensions < 512x512.
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetPrecinctSizes | ( | const SIMPLE_ARRAY< LPOINT2D > & | PrecinctSizes | ) | [inline] |
Set precinct size for each resolution level.
Last array entry is replicated through remaining levels.
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetPrecinctUsage | ( | bool | UsePrecincts | ) | [inline] |
Set whether to always use precincts or not.
Default is to only use precincts for images larger than 4M pixels.
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetProgressionOrder | ( | PROGORDER | ProgOrder | ) | [inline] |
Set packet progression order.
Default is Auto if not called.
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetReversible | ( | bool | reversible = true |
) | [inline] |
Set whether compression is 'reversible' (lossless) or not.
Default is 'irreversible' (lossy) if method not used.
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetTargetQuality | ( | double | TargetQuality | ) | [inline] |
Set target compression quality.
| TargetQuality | Relative quality (1-100) |
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetTargetRatio | ( | UINT16 | TargetRatio | ) | [inline] |
Set target compression ratio.
| void SPATMOD::IMAGE::TARGETPARM_J2K::SetTargetSize | ( | INT64 | TargetSizeBytes | ) | [inline] |
Set target codestream size in bytes.
| TargetSizeBytes | Target size, 0 to retain maximum quality (not necessarily lossless) |
1.6.1