Fawkes API  Fawkes Development Version
firevision::JpegReader Class Reference

JPEG file reader. More...

#include <>>

Inheritance diagram for firevision::JpegReader:

List of all members.

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.

Detailed Description

JPEG file reader.

Author:
Tim Niemueller

Constructor & Destructor Documentation

firevision::JpegReader::JpegReader ( const char *  filename)

Constructor.

Parameters:
filenamefile to read

Definition at line 46 of file jpeg.cpp.

firevision::JpegReader::~JpegReader ( ) [virtual]

Destructor.

Definition at line 73 of file jpeg.cpp.


Member Function Documentation

colorspace_t firevision::JpegReader::colorspace ( ) [virtual]

Get colorspace from the just read image.

Returns:
colorspace

Implements firevision::Reader.

Definition at line 89 of file jpeg.cpp.

unsigned int firevision::JpegReader::pixel_height ( ) [virtual]

Get height of read image in pixels.

Returns:
height of image

Implements firevision::Reader.

Definition at line 107 of file jpeg.cpp.

unsigned int firevision::JpegReader::pixel_width ( ) [virtual]

Get width of read image in pixels.

Returns:
width of image

Implements firevision::Reader.

Definition at line 96 of file jpeg.cpp.

void firevision::JpegReader::read ( ) [virtual]

Read data from file.

Implements firevision::Reader.

Definition at line 118 of file jpeg.cpp.

void firevision::JpegReader::set_buffer ( unsigned char *  yuv422planar_buffer) [virtual]

Set buffer that the read image should be written to.

Parameters:
yuv422planar_bufferbuffer to write image to. The reader must ensure that it does the proper conversion (if needed) to YUV 422 planar format.

Implements firevision::Reader.

Definition at line 82 of file jpeg.cpp.


The documentation for this class was generated from the following files: