Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ImageFilterFadeOut Class Reference

Fades out to black. More...

Inheritance diagram for ImageFilterFadeOut:

Inheritance graph
[legend]
Collaboration diagram for ImageFilterFadeOut:

Collaboration graph
[legend]
List of all members.

Public Member Functions

char * GetDescription () const
void FilterFrame (uint8_t *pixels, int width, int height, double position, double frame_delta)

Detailed Description

Fades out to black.

Definition at line 111 of file image_filters.cc.


Member Function Documentation

void ImageFilterFadeOut::FilterFrame uint8_t *  pixels,
int  width,
int  height,
double  position,
double  frame_delta
[inline, virtual]
 

Implements ImageFilter.

Definition at line 119 of file image_filters.cc.

00120     {
00121         double r = ( 1.0 - position );
00122         for ( uint8_t *p = pixels; p < ( pixels + width * height * 3 ); ++p )
00123             *p = uint8_t( *p * r + 0.5 );
00124     }

char* ImageFilterFadeOut::GetDescription  )  const [inline, virtual]
 

Implements ImageFilter.

Definition at line 114 of file image_filters.cc.

00115     {
00116         return _( "Fade Out" );
00117     }


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 22:13:03 2007 for Kino by  doxygen 1.4.2