Parser class for reading jpeg image files by using libjpeg. More...
#include <Raster/JpegParser.H>
Classes | |
struct | Impl |
Public Member Functions | |
JpegParser (const char *fname) | |
Construct with the name of a jpeg image file. | |
virtual | ~JpegParser () |
Virtual destructor for proper destruction of derived classes. | |
virtual GenericFrameSpec | getFrameSpec () const |
Get the specifications of the image without fully reading it. | |
virtual std::string | getComments () const |
Get the comments from the image without fully reading it. | |
virtual uint | getTagCount () const |
Get image tags if the image supports them. | |
virtual bool | getTag (uint tag, std::string &name, std::string &value) const |
Get image tags if the image supports them. | |
virtual GenericFrame | getFrame () |
Get a GenericFrame representation from the raster file. |
Parser class for reading jpeg image files by using libjpeg.
Definition at line 46 of file JpegParser.H.
JpegParser::JpegParser | ( | const char * | fname | ) |
Construct with the name of a jpeg image file.
Definition at line 231 of file JpegParser.C.
References ASSERT, and Image< T >::initialized().
JpegParser::~JpegParser | ( | ) | [virtual] |
Virtual destructor for proper destruction of derived classes.
Definition at line 240 of file JpegParser.C.
std::string JpegParser::getComments | ( | ) | const [virtual] |
Get the comments from the image without fully reading it.
Implements RasterParser.
Definition at line 271 of file JpegParser.C.
GenericFrame JpegParser::getFrame | ( | ) | [virtual] |
Get a GenericFrame representation from the raster file.
This can subsequently be converted to rgb, grayscale, floating-point, or video-yuv.
Implements RasterParser.
Definition at line 292 of file JpegParser.C.
References ASSERT, and Image< T >::initialized().
GenericFrameSpec JpegParser::getFrameSpec | ( | ) | const [virtual] |
Get the specifications of the image without fully reading it.
Implements RasterParser.
Definition at line 245 of file JpegParser.C.
References ASSERT, Image< T >::getDims(), GenericFrame::GRAY_U8, Image< T >::initialized(), and GenericFrame::RGB_U8.
bool JpegParser::getTag | ( | uint | tag, | |
std::string & | name, | |||
std::string & | value | |||
) | const [virtual] |
Get image tags if the image supports them.
Implements RasterParser.
Definition at line 285 of file JpegParser.C.
uint JpegParser::getTagCount | ( | ) | const [virtual] |
Get image tags if the image supports them.
Implements RasterParser.
Definition at line 278 of file JpegParser.C.