From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d986359469ec0d3b X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-02-02 18:30:12 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!noc.near.net!netnews.whoi.edu!news From: Richard P. Signell Subject: Re: mpeg_play probs under OSF/1 with PXG Message-ID: Keywords: PXG, MPEG, X11 Sender: news@netnews.whoi.edu Nntp-Posting-Host: 128.128.40.19 Reply-To: rsignell@crusty.er.usgs.gov Organization: U.S. Geological Survey References: <2ibg60$73u@pravda.sdsc.edu> Date: Wed, 2 Feb 1994 03:07:52 GMT 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. "