Fawkes API  Fawkes Development Version
YUVSpaceDemo Class Reference

YUV color space demo. More...

Public Member Functions

 YUVSpaceDemo (unsigned char *yuv_buffer)
 Constructor. More...
 
void fill ()
 Fill buffer. More...
 
void brightness_up (unsigned int val=1)
 Increase brightness. More...
 
void brightness_down (unsigned int val=1)
 Decrease brightness. More...
 
int get_brightness () const
 Get Brightness. More...
 

Detailed Description

YUV color space demo.

This class fills the given buffer of the size 512x512.

Author
Tim Niemueller

Definition at line 39 of file show_yuv.cpp.

Constructor & Destructor Documentation

◆ YUVSpaceDemo()

YUVSpaceDemo::YUVSpaceDemo ( unsigned char *  yuv_buffer)
inline

Constructor.

Parameters
yuv_bufferYUV422_PLANAR encoded buffer.

Definition at line 45 of file show_yuv.cpp.

Member Function Documentation

◆ brightness_down()

void YUVSpaceDemo::brightness_down ( unsigned int  val = 1)
inline

Decrease brightness.

Parameters
valvalue to decrease brightness by

Definition at line 95 of file show_yuv.cpp.

Referenced by get_brightness().

◆ brightness_up()

void YUVSpaceDemo::brightness_up ( unsigned int  val = 1)
inline

Increase brightness.

Parameters
valvalue to increase brightness by

Definition at line 79 of file show_yuv.cpp.

Referenced by get_brightness().

◆ fill()

void YUVSpaceDemo::fill ( )
inline

Fill buffer.

Definition at line 53 of file show_yuv.cpp.

Referenced by get_brightness().

◆ get_brightness()

int YUVSpaceDemo::get_brightness ( ) const
inline

Get Brightness.

Returns
current brightness

Definition at line 110 of file show_yuv.cpp.

References brightness_down(), brightness_up(), fill(), get_brightness(), and firevision::ImageDisplay::show().

Referenced by get_brightness().


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