
Public Member Functions | |
| IMG_RawFormat () | |
| virtual | ~IMG_RawFormat () |
| virtual const char * | getFormatName () const |
| virtual const char * | getFormatLabel () const |
| virtual const char * | getFormatDescription () const |
| virtual const char * | getDefaultExtension () const |
| virtual IMG_File * | createFile () const |
| virtual int | checkExtension (const char *filename) const |
| virtual int | checkMagic (unsigned int) const |
| virtual IMG_DataType | getSupportedTypes () const |
| Returns a bitfield of data types supported by this format. | |
| virtual IMG_ColorModel | getSupportedColorModels () const |
| virtual void | getMaxResolution (unsigned &x, unsigned &y) const |
| virtual int | isReadRandomAccess () const |
| virtual int | isWriteRandomAccess () const |
Definition at line 55 of file IMG_Raw.C.
| HDK_Sample::IMG_RawFormat::IMG_RawFormat | ( | ) | [inline] |
| virtual HDK_Sample::IMG_RawFormat::~IMG_RawFormat | ( | ) | [inline, virtual] |
| int IMG_RawFormat::checkExtension | ( | const char * | filename | ) | const [virtual] |
Methods to determine if this is one of our recognized files. The extension is the first try. If there are multiple matches, then we resort to the magic number (when reading)
Implements IMG_Format.
| int IMG_RawFormat::checkMagic | ( | unsigned | int | ) | const [virtual] |
If possible, this magic numver checker will be called. This is used if the file is "seekable" (i.e. that we can rewind after checking)
Reimplemented from IMG_Format.
| IMG_File * IMG_RawFormat::createFile | ( | ) | const [virtual] |
Specifies if this format can read an image file. One of isReadable() or isWritable() (or both) must return true.
Implements IMG_Format.
| const char * IMG_RawFormat::getDefaultExtension | ( | ) | const [virtual] |
The default extension is used to determine whether the format should appear in the device/format menus. It should not contain the '.' (i.e. "tif" not ".tif")
Reimplemented from IMG_Format.
| const char * IMG_RawFormat::getFormatDescription | ( | ) | const [virtual] |
This can be optionally overridden to return a short description of the format. By default, no description is given.
Reimplemented from IMG_Format.
| const char * IMG_RawFormat::getFormatLabel | ( | ) | const [virtual] |
If getFormatLabel() is not overridden, the label will be the same as the name.
Reimplemented from IMG_Format.
| const char * IMG_RawFormat::getFormatName | ( | ) | const [virtual] |
| void IMG_RawFormat::getMaxResolution | ( | unsigned & | x, | |
| unsigned & | y | |||
| ) | const [virtual] |
Maximum allowable resolution for the file. If a user attempts to write an image larger than this, the image will be scaled to this resolution.
Implements IMG_Format.
| virtual IMG_ColorModel HDK_Sample::IMG_RawFormat::getSupportedColorModels | ( | ) | const [inline, virtual] |
Returns a bitfield of supported color models. If IMG_CM_REVERSED is set, this format stores data in BGR/ABGR format.
Implements IMG_Format.
| virtual IMG_DataType HDK_Sample::IMG_RawFormat::getSupportedTypes | ( | ) | const [inline, virtual] |
Returns a bitfield of data types supported by this format.
Implements IMG_Format.
| virtual int HDK_Sample::IMG_RawFormat::isReadRandomAccess | ( | ) | const [inline, virtual] |
Some formats can be read and written in random order. Others require strict sequential order. If these methods return false, you should read and write scanlines in ascending order. When writing, they will be cached until they can be written sequentially.
Reimplemented from IMG_Format.
| virtual int HDK_Sample::IMG_RawFormat::isWriteRandomAccess | ( | ) | const [inline, virtual] |
If 0 is returned, the scanlines must be written in sequential order or they will be cached until all scanlines can be written sequentially.
Reimplemented from IMG_Format.
1.5.9