core/vil/vil_stream_read.h
Go to the documentation of this file.
00001 #ifndef vil_stream_read_h_
00002 #define vil_stream_read_h_
00003 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00004 #pragma interface
00005 #endif
00006 //:
00007 // \file
00008 // \brief read numbers from vil_stream
00009 //
00010 // \verbatim
00011 //  Modifications
00012 //   23 Oct.2003 - Peter Vanroose - Added support for 64-bit int pixels
00013 // \endverbatim
00014 
00015 #include <vxl_config.h>
00016 class vil_stream;
00017 
00018 vxl_uint_16 vil_stream_read_big_endian_uint_16(vil_stream *);
00019 vxl_uint_16 vil_stream_read_little_endian_uint_16(vil_stream *);
00020 
00021 vxl_uint_32 vil_stream_read_big_endian_uint_32(vil_stream *);
00022 vxl_uint_32 vil_stream_read_little_endian_uint_32(vil_stream *);
00023 
00024 #if VXL_HAS_INT_64
00025 vxl_uint_64 vil_stream_read_big_endian_uint_64(vil_stream *);
00026 vxl_uint_64 vil_stream_read_little_endian_uint_64(vil_stream *);
00027 #endif
00028 
00029 //: Reads in a 4-byte big-endian float.
00030 // \relatesalso vil_stream
00031 float vil_stream_read_big_endian_float(vil_stream* is);
00032 
00033 //: Reads in n 16 bit unsigned ints.
00034 // Caller is responsible for allocating enough space.
00035 // \relatesalso vil_stream
00036 void vil_stream_read_big_endian_int_16(vil_stream* is,
00037                                        vxl_uint_16* data, unsigned n);
00038 
00039 #endif // vil_stream_read_h_