Fawkes API Fawkes Development Version

firevision::FvRawWriter Class Reference

FvRaw Writer implementation. More...

#include <>>

Inheritance diagram for firevision::FvRawWriter:

List of all members.

Classes

struct  FvRawHeader
 FvRaw image file header. More...

Public Member Functions

 FvRawWriter ()
 Constructor.
 FvRawWriter (const char *filename, unsigned int width, unsigned int height)
 Constructor.
 FvRawWriter (const char *filename, unsigned int width, unsigned int height, colorspace_t colorspace, unsigned char *buffer)
 Constructor.
virtual ~FvRawWriter ()
 Destructor.
virtual void set_dimensions (unsigned int width, unsigned int height)
 Set dimensions of image in pixels.
virtual void set_buffer (colorspace_t cspace, unsigned char *buffer)
 Set image buffer.
virtual void write ()
 Write to file.
virtual unsigned char * get_write_buffer ()
 Get write buffer.

Static Public Attributes

static const unsigned int FILE_IDENTIFIER = 0x17559358
 File identifier for FvRaw images.

Detailed Description

FvRaw Writer implementation.

This class allows for writing FvRaw images to a file.

Author:
Tim Niemueller

Definition at line 34 of file fvraw.h.


Constructor & Destructor Documentation

firevision::FvRawWriter::FvRawWriter ( const char *  filename,
unsigned int  width,
unsigned int  height 
)
firevision::FvRawWriter::FvRawWriter ( const char *  filename,
unsigned int  width,
unsigned int  height,
colorspace_t  colorspace,
unsigned char *  buffer 
)
firevision::FvRawWriter::~FvRawWriter ( ) [virtual]

Destructor.

Definition at line 106 of file fvraw.cpp.


Member Function Documentation

unsigned char * firevision::FvRawWriter::get_write_buffer ( ) [virtual]

Get write buffer.

Returns:
write buffer

Definition at line 174 of file fvraw.cpp.

void firevision::FvRawWriter::set_buffer ( colorspace_t  cspace,
unsigned char *  buffer 
) [virtual]

Set image buffer.

Parameters:
cspacecolor space of image
bufferbuffer of image

Reimplemented from firevision::Writer.

Definition at line 120 of file fvraw.cpp.

References firevision::FvRawWriter::FvRawHeader::colorspace, and firevision::Writer::cspace.

void firevision::FvRawWriter::set_dimensions ( unsigned int  width,
unsigned int  height 
) [virtual]

Set dimensions of image in pixels.

Parameters:
widthwidth of image in pixels
heightheight of image in pixels.

Reimplemented from firevision::Writer.

Definition at line 112 of file fvraw.cpp.

References firevision::Writer::height, firevision::FvRawWriter::FvRawHeader::height, firevision::Writer::width, and firevision::FvRawWriter::FvRawHeader::width.


Member Data Documentation

const unsigned int firevision::FvRawWriter::FILE_IDENTIFIER = 0x17559358 [static]

File identifier for FvRaw images.

Definition at line 50 of file fvraw.h.

Referenced by FvRawWriter().


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends