Property | Type | Description | |
---|---|---|---|
baos | System.IO.MemoryStream | ||
dwt | |||
encSpec | CSJ2K.j2k.encoder.EncoderSpecs | ||
hbuf | System.IO.BinaryWriter | ||
isOrigSig | bool[] | ||
origSrc | ImgData | ||
ralloc | |||
roiSc | |||
tiler |
Method | Description | |
---|---|---|
HeaderEncoder ( ImgData origsrc, bool isorigsig, |
Initializes the header writer with the references to the coding chain.
|
|
encodeMainHeader ( ) : void |
Write main header. JJ2000 main header corresponds to the following sequence of marker segments:
|
|
encodeTilePartHeader ( int tileLength, int tileIdx ) : void |
Writes tile-part header. JJ2000 tile-part header corresponds to the following sequence of marker segments:
|
|
reset ( ) : void |
Resets the contents of this HeaderEncoder to its initial state. It erases all the data in the header buffer and reactualizes the headerLength field of the bit stream writer.
|
|
writeTo ( BinaryDataOutput out_Renamed ) : void |
Writes the header to the specified BinaryDataOutput.
|
|
writeTo ( System out_Renamed ) : void |
Writes the header to the specified OutputStream.
|
Method | Description | |
---|---|---|
writeCOC ( bool mh, int tileIdx, int compIdx ) : void |
Writes COC marker segment . It is a functional marker containing the coding style for one component (coding style, decomposition, layering). Its values overrides any value previously set in COD in the main header or in the tile header.
|
|
writeCOD ( bool mh, int tileIdx ) : void |
Writes COD marker segment. COD is a functional marker segment containing the code style default (coding style, decomposition, layering) used for compressing all the components in an image. The values can be overriden for an individual component by a COC marker in either the main or the tile header.
|
|
writeMainQCC ( int compIdx ) : void |
Writes QCC marker segment in main header. It is a functional marker segment countaining the quantization used for compressing the specified component in an image. The values override for the specified component what was defined by a QCC marker in either the main or the tile header.
|
|
writeMainQCD ( ) : void |
Writes QCD marker segment in main header. QCD is a functional marker segment countaining the quantization default used for compressing all the components in an image. The values can be overriden for an individual component by a QCC marker in either the main or the tile header.
|
|
writePOC ( bool mh, int tileIdx ) : void |
Writes POC marker segment. POC is a functional marker segment containing the bounds and progression order for any progression order other than default in the codestream.
|
|
writeTileQCC ( int t, int compIdx ) : void |
Writes QCC marker segment in tile header. It is a functional marker segment countaining the quantization used for compressing the specified component in an image. The values override for the specified component what was defined by a QCC marker in either the main or the tile header.
|
|
writeTileQCD ( int tIdx ) : void |
Writes QCD marker segment in tile header. QCD is a functional marker segment countaining the quantization default used for compressing all the components in an image. The values can be overriden for an individual component by a QCC marker in either the main or the tile header.
|
Method | Description | |
---|---|---|
writeCOM ( ) : void |
Write COM marker segment(s) to the codestream. This marker is currently written in main header and indicates the JJ2000 encoder's version that has created the codestream.
|
|
writeRGN ( int tIdx ) : void |
Writes the RGN marker segment in the tile header. It describes the scaling value in each tile component May be used in tile or main header. If used in main header, it refers to a ROI of the whole image, regardless of tiling. When used in tile header, only the particular tile is affected.
|
|
writeSIZ ( ) : void |
Writes SIZ marker segment of the codestream header. It is a fixed information marker segment containing informations about image and tile sizes. It is required in the main header immediately after SOC marker segment.
|
|
writeSOC ( ) : void |
Start Of Codestream marker (SOC) signalling the beginning of a codestream.
|
public HeaderEncoder ( ImgData origsrc, bool isorigsig, |
||
origsrc | ImgData | The original image data (before any component mixing, /// tiling, etc.) /// /// |
isorigsig | bool | An array specifying for each component if it was /// originally signed or not. /// /// |
dwt | The discrete wavelet transform module. /// /// | |
tiler | The tiler module. /// /// | |
encSpec | CSJ2K.j2k.encoder.EncoderSpecs | The encoder specifications /// /// |
roiSc | The ROI scaler module. /// /// | |
ralloc | The post compression rate allocator. /// /// | |
pl | CSJ2K.j2k.util.ParameterList | ParameterList instance. /// /// |
return | System |
public encodeTilePartHeader ( int tileLength, int tileIdx ) : void | ||
tileLength | int | |
tileIdx | int | Index of the tile to write /// /// |
return | void |
protected writeCOC ( bool mh, int tileIdx, int compIdx ) : void | ||
mh | bool | Flag indicating whether the main header is to be written. /// /// |
tileIdx | int | Tile index. /// /// |
compIdx | int | index of the component which need use of the COC marker /// segment. /// /// |
return | void |
protected writeCOD ( bool mh, int tileIdx ) : void | ||
mh | bool | Flag indicating whether this marker belongs to the main /// header /// /// |
tileIdx | int | Tile index if the marker belongs to a tile-part header /// /// |
return | void |
protected writeMainQCC ( int compIdx ) : void | ||
compIdx | int | Index of the component which needs QCC marker segment. /// /// |
return | void |
protected writePOC ( bool mh, int tileIdx ) : void | ||
mh | bool | Flag indicating whether the main header is to be written /// /// |
tileIdx | int | Tile index /// /// |
return | void |
protected writeTileQCC ( int t, int compIdx ) : void | ||
t | int | Tile index /// /// |
compIdx | int | Index of the component which needs QCC marker segment. /// /// |
return | void |
protected writeTileQCD ( int tIdx ) : void | ||
tIdx | int | Tile index /// /// |
return | void |
public writeTo ( BinaryDataOutput out_Renamed ) : void | ||
out_Renamed | BinaryDataOutput | |
return | void |
protected ForwardWT,CSJ2K.j2k.wavelet.analysis dwt | ||
return |
protected EncoderSpecs,CSJ2K.j2k.encoder encSpec | ||
return | CSJ2K.j2k.encoder.EncoderSpecs |
protected PostCompRateAllocator,CSJ2K.j2k.entropy.encoder ralloc | ||
return |
protected ROIScaler,CSJ2K.j2k.roi.encoder roiSc | ||
return |