🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.avs
Article #45

Problem with RGB byte ordering between AVS modules

#45
From: Ethan A Merritt
Date: Mon, 10 Aug 1992 19:51
25 lines
1928 bytes
	I pulled the track_cursor module from avs.ncsc.org and modified 
it for use with a specific application.  However, I have the following
problem which I find very annoying.  I would greatly appreciate any
pointers from the net community.

	The area around the cursor is obtained using the call XGetImage(),
from which the (4 bytes per pixel) pixel array is copied to the data field
of the output (AVSfield_char) port.  All very well except that on my
DECstation this results in the RGB bytes being interpreted in reverse
order. It seems odd that copying from one window opened by AVS to another
window opened by AVS results in byte-inversion, but there you have it. I
know how I would fix this if it were going to be displayed in an X-window
which I opened myself, but I haven't a clue how to get AVS to stop
inverting the byte order when the "display image" module gets it. Anyone
have any ideas?

					    Ethan A Merritt
------------------------------------------------------------------------
---------
Dept of Biological Structure                H510 Health Sciences
University of Washington SM-20              (206)543-1421 or 543-8865
Seattle, WA 98195                           merritt@xray.bchem.washington.edu
------------------------------------------------------------------------
---------
Technical Details
Message-ID: <1992Aug10.195155.4648@u.washington.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!wupost!uwm.edu!ogicse!henson!news.u.washington.edu!provolone.bchem.washington.edu!merritt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!wupost!uwm.edu!ogicse!henson!news.u.washington.edu!provolone.bchem.washington.edu!merritt
From: merritt@provolone.bchem.washington.edu (Ethan A Merritt)
Newsgroups: comp.graphics.avs
Subject: Problem with RGB byte ordering between AVS modules
Message-ID: <1992Aug10.195155.4648@u.washington.edu>
Date: 10 Aug 92 19:51:55 GMT
Article-I.D.: u.1992Aug10.195155.4648
Sender: news@u.washington.edu (USENET News System)
Reply-To: merritt@u.washington.edu
Followup-To: comp.graphics.avs
Organization: University of Washington
Lines: 25