Inheritance diagram for I2DImgSource:
Public Member Functions | |
I2DImgSource () | |
Constructor. | |
virtual OFString | inputFormat () const=0 |
Returns identifier for the image input format the plugin imports. | |
virtual OFCondition | readPixelData (Uint16 &rows, Uint16 &cols, Uint16 &samplesPerPixel, OFString &photoMetrInt, Uint16 &bitsAlloc, Uint16 &bitsStored, Uint16 &highBit, Uint16 &pixelRepr, Uint16 &planConf, Uint16 &pixAspectH, Uint16 &pixAspectV, char *&pixData, Uint32 &length, E_TransferSyntax &ts)=0 |
Extracts the raw JPEG pixel data stream from a JPEG file and returns some image information about this pixel data. | |
virtual OFCondition | getLossyComprInfo (OFBool &srcEncodingLossy, OFString &srcLossyComprMethod) const=0 |
void | setImageFile (const OFString &filename) |
Sets the input image file to read. | |
OFString | getImageFile () |
Returns the input image file that currently associated with plugin. | |
virtual | ~I2DImgSource () |
Virtual Destructor. | |
Protected Attributes | |
OFString | m_imageFile |
The input file. |
Definition at line 38 of file i2dimgs.h.
virtual OFString I2DImgSource::inputFormat | ( | ) | const [pure virtual] |
Returns identifier for the image input format the plugin imports.
Implemented in I2DBmpSource, and I2DJpegSource.
virtual OFCondition I2DImgSource::readPixelData | ( | Uint16 & | rows, | |
Uint16 & | cols, | |||
Uint16 & | samplesPerPixel, | |||
OFString & | photoMetrInt, | |||
Uint16 & | bitsAlloc, | |||
Uint16 & | bitsStored, | |||
Uint16 & | highBit, | |||
Uint16 & | pixelRepr, | |||
Uint16 & | planConf, | |||
Uint16 & | pixAspectH, | |||
Uint16 & | pixAspectV, | |||
char *& | pixData, | |||
Uint32 & | length, | |||
E_TransferSyntax & | ts | |||
) | [pure virtual] |
Extracts the raw JPEG pixel data stream from a JPEG file and returns some image information about this pixel data.
Raw means here that all APP markers (e.g. JFIF information) are removed from the JPEG stream. The pixel data returned is a JPEG stream in JPEG interchange format. This function allocates memory for the pixel data returned to the user. The caller of this function is responsible for deleting the memory buffer
rows | - [out] Rows of image | |
cols | - [out] Columns of image | |
samplesPerPixel | - [out] Number of components per pixel | |
photoMetrInt | - [out] The DICOM color model used for the compressed data | |
bitsAlloc | - [out] Bits Allocated for one sample | |
bitsStored | - [out] Bits Stored, number of bits stored within Bits Allocated | |
highBit | - [out] High Bit, hightest bit position set within Bits Allocated | |
pixelRepr | - [out] Pixel Representation (0=unsigned, 1=signed) | |
planConf | - [out] Planar Configuration | |
pixAspectH | - [out] Horizontal value of pixel aspect ratio | |
pixAspectV | - [out] Vertical value of pixel aspect ratio | |
pixData | - [out] Pointer to the pixel data in JPEG Interchange Format (but without APPx markers). | |
length | - [out] Length of pixel data | |
ts | - [out] The transfer syntax imposed by the imported pixel pixel data. This is necessary for the JPEG importer that needs to report which TS must be used for the imported JPEG data (ie. baseline, progressive, ...). |
Implemented in I2DBmpSource, and I2DJpegSource.
void I2DImgSource::setImageFile | ( | const OFString & | filename | ) | [inline] |
Sets the input image file to read.
filename | - [in] The filename of the image input file |
Definition at line 107 of file i2dimgs.h.
References m_imageFile.
OFString I2DImgSource::getImageFile | ( | ) | [inline] |
Returns the input image file that currently associated with plugin.
Definition at line 112 of file i2dimgs.h.
References m_imageFile.