[Insight-developers] RawImageIO does not byte swap properly

Lydia Ng lng@insightful.com
Wed, 17 Apr 2002 17:36:25 -0700


This is a multi-part message in MIME format.

------_=_NextPart_001_01C1E671.12335756
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: base64

b29wcyEgZm9yZ290IHRvIGF0dGFjaCB0aGUgZmlsZXMuDQoNCgktLS0tLU9yaWdpbmFsIE1lc3Nh
Z2UtLS0tLSANCglGcm9tOiBMeWRpYSBOZyANCglTZW50OiBXZWQgNC8xNy8yMDAyIDU6MzMgUE0g
DQoJVG86IGluc2lnaHQtZGV2ZWxvcGVyc0BwdWJsaWMua2l0d2FyZS5jb20gDQoJQ2M6IA0KCVN1
YmplY3Q6IFtJbnNpZ2h0LWRldmVsb3BlcnNdIFJhd0ltYWdlSU8gZG9lcyBub3QgYnl0ZSBzd2Fw
DQpwcm9wZXJseQ0KCQ0KCQ0KDQoJSGFzIGFueW9uZSBoYWQgc3VjY2VzcyB3aXRoIFJhd0ltYWdl
SU8gZm9yIHJlYWRpbmcgaW4NCgl1bnNpZ25lZCBzaG9ydCAoMTZiaXQpIGRhdGE/DQoJDQoJSSBi
ZWxpZXZlIHRoZSBieXRlIHN3YXBwaW5nIGxvZ2ljIGluIFJhd0ltYWdlSU86OlJlYWQoKSBpcw0K
d3JvbmcuDQoJDQoJQXR0YWNoZWQgaXMgc21hbGwgdGVzdCA1eDUgInVuc2lnbmVkIHNob3J0IiB0
ZXN0IGltYWdlIHdoaWNoIGlzDQoJMSAyIDMgNCA1DQoJNiA3IDggOSAxMA0KCTExIDEyIDEzIDE0
IDE1DQoJMTYgMTcgMTggMTkgMjANCglUaGUgaW1hZ2UgaXMgYmluYXJ5IGFuZCBiaWcgZW5kaWFu
Lg0KCQ0KCUFsc28gYXR0YWNoZWQgaXMgbXkgY29kZSBmb3IgcmVhZGluZyBpdCBpbiBhbmQgd3Jp
dGluZyBpdCB0bw0Kc2NyZWVuLg0KCVRoZSBvdXRwdXQgSSBnZXQga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DQoJDQoJSG9waW5nIHRvIGdldCB2YWxpZGF0aW9uIGNvbXBsZXRlZCBi
ZWZvcmUgZC1kYXkgLi4uLi4uLg0KCUx5ZGlhDQoJDQoJDQoJInsbeu29ie23smYpKyJ7G3rtvYnt
t7In3K0b7qenckjmoZxyK3cpCHXrloogDQoNCg==

------_=_NextPart_001_01C1E671.12335756
Content-Type: text/plain;
	name="CMakeLists.txt"
Content-Transfer-Encoding: base64
Content-Description: CMakeLists.txt
Content-Disposition: attachment;
	filename="CMakeLists.txt"

UFJPSkVDVChUZXN0UmVhZFJhdykNCg0KIyANCiMgRmluZCBJVEsNCiMNCkZJTkRfUEFUSCggSVRL
X0JJTkFSWV9ESVIgaXRrQ29uZmlndXJlLmggKQ0KDQojIExvYWQgaW4gdGhlIHZhbHVlcyBmcm9t
IElUSyBpZiBmb3VuZA0KSUYgKCBJVEtfQklOQVJZX0RJUiApDQogIExPQURfQ0FDSEUoJHtJVEtf
QklOQVJZX0RJUn0pDQogIElOQ0xVREUgKCR7SVRLX1NPVVJDRV9ESVJ9L2l0a0NNYWtlT3B0aW9u
cy5jbWFrZSkNCkVORElGIChJVEtfQklOQVJZX0RJUiApDQoNCklOQ0xVREVfRElSRUNUT1JJRVMo
DQoke0lUS19TT1VSQ0VfRElSfS9Db2RlL0NvbW1vbg0KJHtJVEtfU09VUkNFX0RJUn0vQ29kZS9C
YXNpY0ZpbHRlcnMNCiR7SVRLX1NPVVJDRV9ESVJ9L0NvZGUvQWxnb3JpdGhtcw0KJHtJVEtfU09V
UkNFX0RJUn0vY29kZS9JTw0KKQ0KDQpMSU5LX0RJUkVDVE9SSUVTKA0KJHtJVEtfQklOQVJZX0RJ
Un0vQ29kZS9Db21tb24NCiR7SVRLX0JJTkFSWV9ESVJ9L0NvZGUvQmFzaWNGaWx0ZXJzDQoke0lU
S19CSU5BUllfRElSfS9Db2RlL0FsZ29yaXRobXMNCiR7SVRLX0JJTkFSWV9ESVJ9L0NvZGUvSU8N
CikNCg0KTElOS19MSUJSQVJJRVMgKA0KVlhMTnVtZXJpY3MNCklUS0NvbW1vbg0KSVRLQmFzaWNG
aWx0ZXJzDQpJVEtJTw0KKQ0KDQpBRERfRVhFQ1VUQUJMRShUZXN0UmVhZFJhdyBUZXN0UmVhZFJh
dykNCg0KDQoNCg==

------_=_NextPart_001_01C1E671.12335756
Content-Type: application/octet-stream;
	name="test.raw"
Content-Transfer-Encoding: base64
Content-Description: test.raw
Content-Disposition: attachment;
	filename="test.raw"

AAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABk=

------_=_NextPart_001_01C1E671.12335756
Content-Type: text/plain;
	name="TestReadRaw.cxx"
Content-Transfer-Encoding: base64
Content-Description: TestReadRaw.cxx
Content-Disposition: attachment;
	filename="TestReadRaw.cxx"

DQojaW5jbHVkZSAiaXRrUmF3SW1hZ2VJTy5oIg0KI2luY2x1ZGUgIml0a0ltYWdlRmlsZVJlYWRl
ci5oIg0KI2luY2x1ZGUgIml0a0ltYWdlLmgiDQojaW5jbHVkZSAiaXRrSW1hZ2VMaW5lYXJJdGVy
YXRvcldpdGhJbmRleC5oIg0KDQoNCmludCBtYWluKCkNCnsNCg0KICB0eXBlZGVmIHVuc2lnbmVk
IHNob3J0IFBpeGVsVHlwZTsNCiAgY29uc3QgdW5zaWduZWQgaW50IEltYWdlRGltZW5zaW9uID0g
MjsNCg0KICB0eXBlZGVmIGl0azo6UmF3SW1hZ2VJTzxQaXhlbFR5cGUsSW1hZ2VEaW1lbnNpb24+
IElPVHlwZTsNCiAgSU9UeXBlOjpQb2ludGVyIGlvID0gSU9UeXBlOjpOZXcoKTsNCg0KICBpby0+
U2V0RmlsZVR5cGVUb0JpbmFyeSgpOw0KICBpby0+U2V0Qnl0ZU9yZGVyVG9CaWdFbmRpYW4oKTsN
Cg0KICB1bnNpZ25lZCBpbnQgZGltc1tJbWFnZURpbWVuc2lvbl0gPSB7IDUsIDUgfTsNCiAgZm9y
KCBpbn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