summaryrefslogtreecommitdiff
path: root/dxr3tools.h
diff options
context:
space:
mode:
authoraustriancoder <austriancoder>2004-09-13 11:26:52 +0000
committeraustriancoder <austriancoder>2004-09-13 11:26:52 +0000
commit433938312aba894f3487064387a59336f0e76acc (patch)
tree8e45e7dec246a895f929987b494821d94b9676ad /dxr3tools.h
parentd8efb3c9c6a8b9557ed78e266c92d1a02e98d41c (diff)
downloadvdr-plugin-dxr3-433938312aba894f3487064387a59336f0e76acc.tar.gz
vdr-plugin-dxr3-433938312aba894f3487064387a59336f0e76acc.tar.bz2
added and converted comments into a doxygen friendly format
Diffstat (limited to 'dxr3tools.h')
-rw-r--r--dxr3tools.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/dxr3tools.h b/dxr3tools.h
index 2f4b886..97c112f 100644
--- a/dxr3tools.h
+++ b/dxr3tools.h
@@ -27,6 +27,7 @@
namespace Tools
{
// ==================================
+ //! convert Rgb to CrCb
inline unsigned int Rgb2YCrCb(unsigned long rgb)
{
float Y,U,V;
@@ -47,6 +48,7 @@ namespace Tools
}
// ==================================
+ //! convert YUV to Rgb
inline unsigned int YUV2Rgb(unsigned int yuv_color)
{
int Y, Cb, Cr;
@@ -60,12 +62,7 @@ namespace Tools
Ey = (Y - 16);
Epb = (Cb - 128);
Epr = (Cr - 128);
- /* ITU-R 709
- Eg = (298*Ey - 55*Epb - 137*Epr)/256;
- Eb = (298*Ey + 543*Epb)/256;
- Er = (298*Ey + 460*Epr)/256;
- */
- /* FCC ~= mediaLib */
+
Eg = (298 * Ey - 100 * Epb - 208 * Epr) / 256;
Eb = (298 * Ey + 516 * Epb) / 256;
Er = (298 * Ey + 408 * Epr) / 256;
@@ -89,6 +86,7 @@ namespace Tools
}
// ==================================
+ //! write a string via vdr to OSD
inline void WriteInfoToOsd(string x)
{
#if VDRVERSNUM <= 10306