15 #define SGI_SIGNATURE_BYTE_0 0x01 16 #define SGI_SIGNATURE_BYTE_1 0xDA 38 s <<
"vil_sgi_file_header:\n" 39 <<
" magic : " << std::hex
40 <<
"0x" << unsigned(
magic[0]) <<
' ' 41 <<
"0x" << unsigned(
magic[1]) << std::dec << std::endl
42 <<
" storage : " <<
storage << std::endl
43 <<
" bpc : " <<
bpc << std::endl
44 <<
" dimension: " <<
dimension << std::endl
45 <<
" xsize : " <<
xsize << std::endl
46 <<
" ysize : " <<
ysize << std::endl
47 <<
" zsize : " <<
zsize << std::endl
48 <<
" pixmin : " <<
pixmin << std::endl
49 <<
" pixmax : " <<
pixmax << std::endl
50 <<
" colormap : " <<
colormap << std::endl << std::endl;
Stream interface for VIL image loaders.
vxl_uint_32 vil_stream_read_big_endian_uint_32(vil_stream *s)
virtual vil_streampos write(void const *buf, vil_streampos n)=0
Write n bytes from buf. Returns number of bytes written.
read numbers from vil_stream
virtual vil_streampos read(void *buf, vil_streampos n)=0
Read n bytes into buf. Returns number of bytes read.
Stream interface for VIL image loaders.
void vil_stream_write_big_endian_uint_32(vil_stream *s, vxl_uint_32 w)
void vil_stream_write_big_endian_uint_16(vil_stream *s, vxl_uint_16 w)
write integers to vil_stream
vxl_uint_16 vil_stream_read_big_endian_uint_16(vil_stream *s)