ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.codestream.reader Namespace / HeaderDecoder Class
Fields Properties Methods


In This Topic
    HeaderDecoder Class Members
    In This Topic

    The following tables list the members exposed by HeaderDecoder.

    Public Constructors
     NameDescription
    Public ConstructorCreates a HeaderDecoder instance and read in two passes the main header of the codestream. The first and last marker segments shall be respectively SOC and SOT.  
    Top
    Public Fields
     NameDescription
    Public FieldFlag bit for CRG marker segment found  
    Public FieldThe offset of the main header in the input stream  
    Public FieldThe number of tile parts in each tile  
    Public FieldThe prefix for header decoder options: 'H'  
    Public FieldFlag bit for SOD marker segment found  
    Public FieldFlag bit for SOD marker segment found  
    Public FieldFlag bit for SOD marker segment found  
    Top
    Public Properties
     NameDescription
    Public PropertyReturns the horizontal code-block partition origin.Allowable values are 0 and 1, nothing else.  
    Public PropertyReturns the vertical code-block partition origin. Allowable values are 0 and 1, nothing else.  
    Public PropertyReturn the DecoderSpecs instance filled when reading the headers  
    Public PropertyReturns the image height in the reference grid.  
    Public PropertyReturn the horizontal upper-left coordinate of the image in the reference grid.  
    Public PropertyReturn the vertical upper-left coordinate of the image in the reference grid.  
    Public PropertyReturns the image width in the reference grid.  
    Public PropertyReturn the maximum height among all components  
    Public PropertyReturn the maximum width among all components  
    Public PropertyReturns the nominal width of the tiles in the reference grid.  
    Public PropertyReturns the nominal width of the tiles in the reference grid.  
    Public PropertyReturns the number of components in the image.  
    Public PropertyReturns the number of found marker segments in the current header.  
    Public PropertyReturn the number of tiles in the image  
    Public Propertystatic (Shared in Visual Basic)Returns the parameters that are used in this class. It returns a 2D String array. Each of the 1D arrays is for a different option, and they have 3 elements. The first element is the option name, the second one is the synopsis and the third one is a long description of what the parameter is. The synopsis or description may be 'null', in which case it is assumed that there is no synopsis or description of the option, respectively.  
    Public PropertySets the tile of each tile part in order. This information is needed for identifying which packet header belongs to which tile when using the PPM marker.  
    Top
    Public Methods
     NameDescription
    Public MethodChecks that the marker segment length is correct.  
    Public MethodCreates and returns the ChannelDefinitonMapper which maps the input channels to the channel definition for the appropriate colorspace.  
    Public MethodCreates and returns the EnumeratedColorSpaceMapper corresponding to the information read from the JP2 image file via the ColorSpace parameter.  
    Public MethodReturns the dequantizer parameters. Dequantizer parameters normally are the quantization step sizes, see DequantizerParams.  
    Public MethodCreates and returns the entropy decoder corresponding to the information read from the codestream header and with the special additional parameters from the parameter list.  
    Public MethodCreates and returns the PalettizedColorSpaceMapper which uses the input samples as indicies into a sample palette to construct the output.  
    Public MethodCreates and returns the Resampler which converts the input source to one in which all channels have the same number of samples. This is required for colorspace conversions.  
    Public MethodCreates and returns the ROIDeScaler corresponding to the information read from the codestream header and with the special additional parameters from the parameter list.  
    Public MethodThis method extracts a marker segment in a tile-part header and stores it into a byte buffer for the second pass. The marker is first recognized, then its flag is activated and, finally, its content is buffered in an element of byte arrays accessible thanks to a hashTable. If a marker segment is not recognized, it prints a warning and skip it according to its length.  
    Public MethodReturns the component sub-sampling factor, with respect to the reference grid, along the horizontal direction for the specified component.  
    Public MethodReturns the component sub-sampling factor, with respect to the reference grid, along the vertical direction for the specified component.  
    Public MethodReturns the original bitdepth of the specified component.  
    Public MethodReturn the packed packet headers for a given tile.  
    Public MethodReturns the precinct partition width for the specified tile-component and resolution level.  
    Public MethodReturns the precinct partition height for the specified tile-component and resolution level.  
    Public MethodReturns the tiling origin, referred to as '(Px,Py)' in the 'ImgData' interface.  
    Public MethodReturns true if the original data of the specified component was signed. If the data was not signed a level shift has to be applied at the end of the decompression chain.  
    Public MethodReturns the boolean used to know if the precinct partition is used  
    Public MethodRetrieves and reads all marker segments previously found in the tile-part header.  
    Public MethodMethod that resets members indicating which markers have already been found  
    Public MethodPrint information about the current header.  
    Top
    See Also