C# Class CSJ2K.j2k.fileformat.reader.FileFormatReader

This class reads the file format wrapper that may or may not exist around a valid JPEG 2000 codestream. Since no information from the file format is used in the actual decoding, this class simply goes through the file and finds the first valid codestream.
Show file Open project: cureos/csj2k Class Usage Examples

Public Properties

Property Type Description
JP2FFUsed bool

Public Methods

Method Description
FileFormatReader ( RandomAccessIO in_Renamed ) : System

The constructor of the FileFormatReader

readContiguousCodeStreamBox ( long pos, int length, long longLength ) : bool

This method skips the Contiguous codestream box and adds position of contiguous codestream to a vector

readFileFormat ( ) : void

This method checks whether the given RandomAccessIO is a valid JP2 file and if so finds the first codestream in the file. Currently, the information in the codestream is not used

readFileTypeBox ( ) : bool

This method reads the File Type box.

readIntPropertyBox ( int length ) : void

This method reads the contents of the Intellectual property box

readJP2HeaderBox ( long pos, int length, long longLength ) : bool

This method reads the JP2Header box

readReaderRequirementsBox ( int length ) : void

This method reads the contents of the Reader requirements box

readUUIDBox ( int length ) : void

This method reads the contents of the Intellectual property box

readUUIDInfoBox ( int length ) : void

This method reads the contents of the Intellectual property box

readXMLBox ( int length ) : void

This method reads the contents of the XML box

Method Details

FileFormatReader() public method

The constructor of the FileFormatReader
public FileFormatReader ( RandomAccessIO in_Renamed ) : System
in_Renamed RandomAccessIO
return System

readContiguousCodeStreamBox() public method

This method skips the Contiguous codestream box and adds position of contiguous codestream to a vector
If an I/O error ocurred. /// /// If the end of file was reached /// ///
public readContiguousCodeStreamBox ( long pos, int length, long longLength ) : bool
pos long The position in the file /// ///
length int The length of the JP2Header box /// ///
longLength long
return bool

readFileFormat() public method

This method checks whether the given RandomAccessIO is a valid JP2 file and if so finds the first codestream in the file. Currently, the information in the codestream is not used
If an I/O error ocurred. /// /// If end of file is reached /// ///
public readFileFormat ( ) : void
return void

readFileTypeBox() public method

This method reads the File Type box.
If an I/O error ocurred. /// If the end of file was reached /// ///
public readFileTypeBox ( ) : bool
return bool

readIntPropertyBox() public method

This method reads the contents of the Intellectual property box
public readIntPropertyBox ( int length ) : void
length int
return void

readJP2HeaderBox() public method

This method reads the JP2Header box
If an I/O error ocurred. /// /// If the end of file was reached /// ///
public readJP2HeaderBox ( long pos, int length, long longLength ) : bool
pos long The position in the file /// ///
length int The length of the JP2Header box /// ///
longLength long
return bool

readReaderRequirementsBox() public method

This method reads the contents of the Reader requirements box
public readReaderRequirementsBox ( int length ) : void
length int
return void

readUUIDBox() public method

This method reads the contents of the Intellectual property box
public readUUIDBox ( int length ) : void
length int
return void

readUUIDInfoBox() public method

This method reads the contents of the Intellectual property box
public readUUIDInfoBox ( int length ) : void
length int
return void

readXMLBox() public method

This method reads the contents of the XML box
public readXMLBox ( int length ) : void
length int
return void

Property Details

JP2FFUsed public property

Flag indicating whether or not the JP2 file format is used
public bool JP2FFUsed
return bool