Fawkes API  Fawkes Development Version
firevision::FvRawReader Class Reference

#include <>>

Inheritance diagram for firevision::FvRawReader:

Public Member Functions

 FvRawReader (const char *filename)
 Constructor. More...
 
virtual ~FvRawReader ()
 Destructor. More...
 
virtual void set_buffer (unsigned char *yuv422planar_buffer)
 
virtual colorspace_t colorspace ()
 
virtual unsigned int pixel_width ()
 
virtual unsigned int pixel_height ()
 
virtual void read ()
 
- Public Member Functions inherited from firevision::Reader
virtual ~Reader ()
 Virtual empty destructor. More...
 

Static Public Member Functions

static bool is_FvRaw (const char *filename)
 Check if given file contains FvRaw image. More...
 

Detailed Description

FvRaw image reader implementation.

Author
Tim Niemueller

Definition at line 38 of file fvraw.h.

Constructor & Destructor Documentation

◆ FvRawReader()

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

Constructor.

Parameters
filenamefilename to read from.

Definition at line 43 of file fvraw.cpp.

◆ ~FvRawReader()

firevision::FvRawReader::~FvRawReader ( )
virtual

Destructor.

Definition at line 67 of file fvraw.cpp.

Member Function Documentation

◆ colorspace()

colorspace_t firevision::FvRawReader::colorspace ( )
virtual

Get colorspace from the just read image.

Returns
colorspace

Implements firevision::Reader.

Definition at line 80 of file fvraw.cpp.

◆ is_FvRaw()

bool firevision::FvRawReader::is_FvRaw ( const char *  filename)
static

Check if given file contains FvRaw image.

Parameters
filenamefile to check
Returns
true if file contains FvRaw image, false otherwise

Definition at line 129 of file fvraw.cpp.

◆ pixel_height()

unsigned int firevision::FvRawReader::pixel_height ( )
virtual

Get height of read image in pixels.

Returns
height of image

Implements firevision::Reader.

Definition at line 100 of file fvraw.cpp.

◆ pixel_width()

unsigned int firevision::FvRawReader::pixel_width ( )
virtual

Get width of read image in pixels.

Returns
width of image

Implements firevision::Reader.

Definition at line 90 of file fvraw.cpp.

◆ read()

void firevision::FvRawReader::read ( )
virtual

Read data from file.

Implements firevision::Reader.

Definition at line 110 of file fvraw.cpp.

◆ set_buffer()

void firevision::FvRawReader::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 74 of file fvraw.cpp.


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