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.
Afficher le fichier Open project: cureos/csj2k Class Usage Examples

Méthodes publiques

Свойство Type Description
JP2FFUsed bool

Méthodes publiques

Méthode 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 méthode

The constructor of the FileFormatReader
public FileFormatReader ( RandomAccessIO in_Renamed ) : System
in_Renamed RandomAccessIO
Résultat System

readContiguousCodeStreamBox() public méthode

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
Résultat bool

readFileFormat() public méthode

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
Résultat void

readFileTypeBox() public méthode

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

readIntPropertyBox() public méthode

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

readJP2HeaderBox() public méthode

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
Résultat bool

readReaderRequirementsBox() public méthode

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

readUUIDBox() public méthode

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

readUUIDInfoBox() public méthode

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

readXMLBox() public méthode

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

Property Details

JP2FFUsed public_oe property

Flag indicating whether or not the JP2 file format is used
public bool JP2FFUsed
Résultat bool