summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2003-10-30 06:04:31 +0000
committerMike Melanson <mike@multimedia.cx>2003-10-30 06:04:31 +0000
commit55930e3b5e757f4f4d5cf0b6dc564970ff05c99d (patch)
treee2799f2158c3defdefb3b83f82aaf2ffdc464368
parent80800258310fa4b54f6033a80b0f4bdce80c1d0a (diff)
downloadxine-lib-55930e3b5e757f4f4d5cf0b6dc564970ff05c99d.tar.gz
xine-lib-55930e3b5e757f4f4d5cf0b6dc564970ff05c99d.tar.bz2
brighten up the converted RGB video
CVS patchset: 5642 CVS date: 2003/10/30 06:04:31
-rw-r--r--src/xine-utils/xineutils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h
index 91ae9655b..13cc7265f 100644
--- a/src/xine-utils/xineutils.h
+++ b/src/xine-utils/xineutils.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xineutils.h,v 1.59 2003/08/25 14:32:37 mroi Exp $
+ * $Id: xineutils.h,v 1.60 2003/10/30 06:04:31 tmmm Exp $
*
*/
#ifndef XINEUTILS_H
@@ -785,7 +785,7 @@ extern void (*yuy2_to_yv12)
#define COMPUTE_Y(r, g, b) \
(unsigned char) \
- ((y_r_table[r] + y_g_table[g] + y_b_table[b]) / SCALEFACTOR)
+ (((y_r_table[r] + y_g_table[g] + y_b_table[b]) / SCALEFACTOR) + 16)
#define COMPUTE_U(r, g, b) \
(unsigned char) \
((u_r_table[r] + u_g_table[g] + u_b_table[b]) / SCALEFACTOR + CENTERSAMPLE)