Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Richard P. Signell <rsignell@crusty.er.usgs.gov>
Subject: Re: mpeg_play probs under OSF/1 with PXG
Date: Wed, 2 Feb 1994 03:07:52 GMT	[thread overview]
Message-ID: <CKKu15.AMH@netnews.whoi.edu> (raw)
In-Reply-To: 2ibg60$73u@pravda.sdsc.edu

jshade@toastman.sdsc.edu (Jonathan Shade) writes:


>	A solution is to run mpeg_play like this:

>		mpeg_play -dither color filename.mpg

>	The movies come up blueish, but at least you see them!
                           ^^^^^^^
Like blue is red and red is blue, right?   I got tired of looking at
blue flesh tones and e-mailed the creators of mpeg_play.  And they sent
me a simple patch:

*** 24bit.c.orig	Wed Dec 22 08:18:17 1993
--- 24bit.c	Wed Dec 22 08:26:25 1993
***************
*** 145,151 ****
  	    R = L + cb_r;
  	    G = L + cr_g + cb_g;
  	    B = L + cr_b;
! #ifndef RS6000
  	    r = CLAMP(0,R,UP(255)) >> BITS;
  	    g = CLAMP(0,G,UP(255)) & 0xff00;
  	    b = (CLAMP(0,B,UP(255)) & 0xff00) << BITS;
--- 145,151 ----
  	    R = L + cb_r;
  	    G = L + cr_g + cb_g;
  	    B = L + cr_b;
! #ifndef RED_MSB
  	    r = CLAMP(0,R,UP(255)) >> BITS;
  	    g = CLAMP(0,G,UP(255)) & 0xff00;
  	    b = (CLAMP(0,B,UP(255)) & 0xff00) << BITS;
***************
*** 161,167 ****
  	    R = L + cb_r;
  	    G = L + cr_g + cb_g;
  	    B = L + cr_b;
! #ifndef RS6000
  	    r = CLAMP(0,R,UP(255)) >> BITS;
  	    g = CLAMP(0,G,UP(255)) & 0xff00;
  	    b = (CLAMP(0,B,UP(255)) & 0xff00) << BITS;
--- 161,167 ----
  	    R = L + cb_r;
  	    G = L + cr_g + cb_g;
  	    B = L + cr_b;
! #ifndef RED_MSB
  	    r = CLAMP(0,R,UP(255)) >> BITS;
  	    g = CLAMP(0,G,UP(255)) & 0xff00;
  	    b = (CLAMP(0,B,UP(255)) & 0xff00) << BITS;
***************
*** 180,186 ****
  	    R = L + cb_r;
  	    G = L + cr_g + cb_g;
  	    B = L + cr_b;
! #ifndef RS6000
  	    r = CLAMP(0,R,UP(255)) >> BITS;
  	    g = CLAMP(0,G,UP(255)) & 0xff00;
  	    b = (CLAMP(0,B,UP(255)) & 0xff00) << BITS;
--- 180,186 ----
  	    R = L + cb_r;
  	    G = L + cr_g + cb_g;
  	    B = L + cr_b;
! #ifndef RED_MSB
  	    r = CLAMP(0,R,UP(255)) >> BITS;
  	    g = CLAMP(0,G,UP(255)) & 0xff00;
  	    b = (CLAMP(0,B,UP(255)) & 0xff00) << BITS;
***************
*** 196,202 ****
  	    R = L + cb_r;
  	    G = L + cr_g + cb_g;
  	    B = L + cr_b;
! #ifndef RS6000
  	    r = CLAMP(0,R,UP(255)) >> BITS;
  	    g = CLAMP(0,G,UP(255)) & 0xff00;
  	    b = (CLAMP(0,B,UP(255)) & 0xff00) << BITS;
--- 196,202 ----
  	    R = L + cb_r;
  	    G = L + cr_g + cb_g;
  	    B = L + cr_b;
! #ifndef RED_MSB
  	    r = CLAMP(0,R,UP(255)) >> BITS;
  	    g = CLAMP(0,G,UP(255)) & 0xff00;
  	    b = (CLAMP(0,B,UP(255)) & 0xff00) << BITS;
 
Happy viewing, 
--
Rich Signell               |  rsignell@crusty.er.usgs.gov
U.S. Geological Survey     |  (508) 457-2229  |  FAX (508) 457-2310
Quissett Campus            |  "What you don't know CAN hurt you,
Woods Hole, MA  02543-1598 |    only you won't know it. "


      reply	other threads:[~1994-02-02  3:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CKC0LF.H7t@cosy.sbg.ac.at>
1994-01-28 16:57 ` mpeg_play probs under OSF/1 with PXG Jonathan Shade
1994-02-02  3:07   ` Richard P. Signell [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox