#include <fvutils/readers/jpeg.h>
Inheritance diagram for firevision::JpegReader:
Public Member Functions | |
JpegReader (const char *filename) | |
Constructor. | |
virtual | ~JpegReader () |
Destructor. | |
virtual void | set_buffer (unsigned char *yuv422planar_buffer) |
Set buffer that the read image should be written to. | |
virtual colorspace_t | colorspace () |
Get colorspace from the just read image. | |
virtual unsigned int | pixel_width () |
Get width of read image in pixels. | |
virtual unsigned int | pixel_height () |
Get height of read image in pixels. | |
virtual void | read () |
Read data from file. |
Definition at line 39 of file jpeg.h.
firevision::JpegReader::JpegReader | ( | const char * | filename | ) |
firevision::JpegReader::~JpegReader | ( | ) | [virtual] |
colorspace_t firevision::JpegReader::colorspace | ( | ) | [virtual] |
Get colorspace from the just read image.
Implements firevision::Reader.
Definition at line 89 of file jpeg.cpp.
References firevision::YUV422_PLANAR.
unsigned int firevision::JpegReader::pixel_height | ( | ) | [virtual] |
unsigned int firevision::JpegReader::pixel_width | ( | ) | [virtual] |
void firevision::JpegReader::read | ( | ) | [virtual] |
Read data from file.
Implements firevision::Reader.
Definition at line 118 of file jpeg.cpp.
References firevision::convert_line_rgb_to_yuv422planar().
void firevision::JpegReader::set_buffer | ( | unsigned char * | yuv422planar_buffer | ) | [virtual] |
Set buffer that the read image should be written to.
yuv422planar_buffer | buffer to write image to. The reader must ensure that it does the proper conversion (if needed) to YUV 422 planar format. |
Implements firevision::Reader.