Manage the YCbCr value for a color corresponding to a pixel (Y: luminance, Cb: blue difference, Cr: red difference)
More...
#include <ycbcr.h>
List of all members.
Public Member Functions |
| YCbCr (const float, const float, const float, QObject *parent=0) |
| Create an YCbCr pixel from YCbCr.
|
| YCbCr (const QRgb &, QObject *parent=0) |
| Create an YCbCr pixel from RGB.
|
| ~YCbCr () |
float | y () const |
void | setY (float) |
float | cb () const |
void | setCb (float) |
float | cr () const |
void | setCr (float) |
QRgb | toRGB () |
| Convert the YCbCr value into RGB Color.
|
QString | toString () |
bool | operator== (const YCbCr &) |
| YCbCr (const float, const float, const float, QObject *parent=0) |
| Create an YCbCr pixel from YCbCr.
|
| YCbCr (const QRgb &, QObject *parent=0) |
| Create an YCbCr pixel from RGB.
|
| ~YCbCr () |
float | y () const |
void | setY (float) |
float | cb () const |
void | setCb (float) |
float | cr () const |
void | setCr (float) |
QRgb | toRGB () |
| Convert the YCbCr value into RGB Color.
|
QString | toString () |
bool | operator== (const YCbCr &) |
Private Attributes |
float | m_y |
| luminance
|
float | m_cb |
| blue difference
|
float | m_cr |
| red difference
|
Static Private Attributes |
static const float | kb = 0.114 |
| Mathematic value for conversion.
|
static const float | kr = 0.299 |
| Mathematic value for conversion.
|
Detailed Description
Manage the YCbCr value for a color corresponding to a pixel (Y: luminance, Cb: blue difference, Cr: red difference)
Definition at line 26 of file ycbcr.h.
Constructor & Destructor Documentation
SEFormatJPEG::YCbCr::YCbCr |
( |
const float |
y, |
|
|
const float |
cb, |
|
|
const float |
cr, |
|
|
QObject * |
parent = 0 |
|
) |
| |
SEFormatJPEG::YCbCr::YCbCr |
( |
const QRgb & |
rgb, |
|
|
QObject * |
parent = 0 |
|
) |
| |
SEFormatJPEG::YCbCr::~YCbCr |
( |
| ) |
|
SEFormatJPEG::YCbCr::YCbCr |
( |
const float |
, |
|
|
const float |
, |
|
|
const float |
, |
|
|
QObject * |
parent = 0 |
|
) |
| |
SEFormatJPEG::YCbCr::YCbCr |
( |
const QRgb & |
, |
|
|
QObject * |
parent = 0 |
|
) |
| |
Create an YCbCr pixel from RGB.
SEFormatJPEG::YCbCr::~YCbCr |
( |
| ) |
|
Member Function Documentation
float SEFormatJPEG::YCbCr::cb |
( |
| ) |
const |
float SEFormatJPEG::YCbCr::cb |
( |
| ) |
const |
float SEFormatJPEG::YCbCr::cr |
( |
| ) |
const |
float SEFormatJPEG::YCbCr::cr |
( |
| ) |
const |
bool SEFormatJPEG::YCbCr::operator== |
( |
const YCbCr & |
color | ) |
|
bool SEFormatJPEG::YCbCr::operator== |
( |
const YCbCr & |
| ) |
|
void SEFormatJPEG::YCbCr::setCb |
( |
float |
value | ) |
|
void SEFormatJPEG::YCbCr::setCb |
( |
float |
| ) |
|
void SEFormatJPEG::YCbCr::setCr |
( |
float |
value | ) |
|
void SEFormatJPEG::YCbCr::setCr |
( |
float |
| ) |
|
void SEFormatJPEG::YCbCr::setY |
( |
float |
| ) |
|
void SEFormatJPEG::YCbCr::setY |
( |
float |
value | ) |
|
QRgb SEFormatJPEG::YCbCr::toRGB |
( |
| ) |
|
Convert the YCbCr value into RGB Color.
QRgb SEFormatJPEG::YCbCr::toRGB |
( |
| ) |
|
QString SEFormatJPEG::YCbCr::toString |
( |
| ) |
|
QString SEFormatJPEG::YCbCr::toString |
( |
| ) |
|
float SEFormatJPEG::YCbCr::y |
( |
| ) |
const |
float SEFormatJPEG::YCbCr::y |
( |
| ) |
const |
Member Data Documentation
Mathematic value for conversion.
Definition at line 37 of file ycbcr.h.
Referenced by YCbCr().
Mathematic value for conversion.
Definition at line 39 of file ycbcr.h.
Referenced by YCbCr().
The documentation for this class was generated from the following files: