Wavelet and Image class library  1.3.2
Public Member Functions | Protected Member Functions | Protected Attributes
VideoFile Class Reference

#include <VideoFile.hh>

Inheritance diagram for VideoFile:
Inheritance graph
[legend]
Collaboration diagram for VideoFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 VideoFile (char const *name, VideoArray< coeff > *arrays[], int channels, int frames)
virtual ~VideoFile (void)
clrmodel colormodel (void)
void colormodel (clrmodel cm)
int channels (void) const
int frames (void) const
clrmodel colormodel (void) const

Protected Member Functions

void init (VideoArray< coeff > *videos[])

Protected Attributes

VideoArray< coeff > ** m_arrays
int m_channels
char const * m_fname
clrmodel m_cmodel
int m_frames

Detailed Description

An abstract image file. A framework to create readers and writers on any color images.

Definition at line 24 of file VideoFile.hh.


Constructor & Destructor Documentation

VideoFile::VideoFile ( char const *  name,
VideoArray< coeff > *  arrays[],
int  channels,
int  frames 
)

Constructor. Initializes internal fields and gets an {ImageArray} object that may already contain an image or will get one later.

Parameters:
namethe file name
arraysthe array of video arrays for the values
channelsthe number of colors
framesthe number of frames
virtual VideoFile::~VideoFile ( void  ) [virtual]

Destructor. Releases some memory.


Member Function Documentation

int VideoFile::channels ( void  ) const [inline]

Return the number of channels.

Returns:
the number of channels

Definition at line 53 of file VideoFile.hh.

References m_channels.

clrmodel VideoFile::colormodel ( void  ) [inline]

Returns the current color model.

Returns:
the current color model

Definition at line 46 of file VideoFile.hh.

References m_cmodel.

void VideoFile::colormodel ( clrmodel  cm) [inline]

Sets a new color model.

Parameters:
cmthe new color model

Definition at line 49 of file VideoFile.hh.

References m_cmodel.

clrmodel VideoFile::colormodel ( void  ) const [inline]

Return the color model.

Returns:
the color model

Definition at line 61 of file VideoFile.hh.

References m_cmodel.

int VideoFile::frames ( void  ) const [inline]

Return the number of frames.

Returns:
the number of frames

Definition at line 57 of file VideoFile.hh.

References m_frames.

void VideoFile::init ( VideoArray< coeff > *  videos[]) [protected]

internal initialization


Member Data Documentation

The color channels.

Definition at line 66 of file VideoFile.hh.

int VideoFile::m_channels [protected]

The number of channels (usually: colors).

Definition at line 68 of file VideoFile.hh.

Referenced by channels().

The way the current image's colors are encoded.

Definition at line 72 of file VideoFile.hh.

Referenced by colormodel().

char const* VideoFile::m_fname [protected]

The file name. The name of the file associated with this object.

Definition at line 70 of file VideoFile.hh.

int VideoFile::m_frames [protected]

The number of frames

Definition at line 74 of file VideoFile.hh.

Referenced by frames().


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