Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: mpeg_play probs under OSF/1 with PXG
       [not found] <CKC0LF.H7t@cosy.sbg.ac.at>
@ 1994-01-28 16:57 ` Jonathan Shade
  1994-02-02  3:07   ` Richard P. Signell
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Shade @ 1994-01-28 16:57 UTC (permalink / raw)




	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!

			-jonathan


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mpeg_play probs under OSF/1 with PXG
  1994-01-28 16:57 ` mpeg_play probs under OSF/1 with PXG Jonathan Shade
@ 1994-02-02  3:07   ` Richard P. Signell
  0 siblings, 0 replies; 2+ messages in thread
From: Richard P. Signell @ 1994-02-02  3:07 UTC (permalink / raw)


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. "


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-02-02  3:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox