C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
JP2FFUsed bool

Открытые методы

Метод Описание
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

Описание методов

FileFormatReader() публичный Метод

The constructor of the FileFormatReader
public FileFormatReader ( RandomAccessIO in_Renamed ) : System
in_Renamed RandomAccessIO
Результат System

readContiguousCodeStreamBox() публичный Метод

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
Результат bool

readFileFormat() публичный Метод

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
Результат void

readFileTypeBox() публичный Метод

This method reads the File Type box.
If an I/O error ocurred. /// If the end of file was reached /// ///
public readFileTypeBox ( ) : bool
Результат bool

readIntPropertyBox() публичный Метод

This method reads the contents of the Intellectual property box
public readIntPropertyBox ( int length ) : void
length int
Результат void

readJP2HeaderBox() публичный Метод

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
Результат bool

readReaderRequirementsBox() публичный Метод

This method reads the contents of the Reader requirements box
public readReaderRequirementsBox ( int length ) : void
length int
Результат void

readUUIDBox() публичный Метод

This method reads the contents of the Intellectual property box
public readUUIDBox ( int length ) : void
length int
Результат void

readUUIDInfoBox() публичный Метод

This method reads the contents of the Intellectual property box
public readUUIDInfoBox ( int length ) : void
length int
Результат void

readXMLBox() публичный Метод

This method reads the contents of the XML box
public readXMLBox ( int length ) : void
length int
Результат void

Описание свойств

JP2FFUsed публичное свойство

Flag indicating whether or not the JP2 file format is used
public bool JP2FFUsed
Результат bool