read numbers from vil_stream More...
#include "vil_stream_read.h"
#include <vcl_cassert.h>
#include <vil/vil_stream.h>
#include <vxl_config.h>
Go to the source code of this file.
Functions | |
vxl_uint_16 | vil_stream_read_big_endian_uint_16 (vil_stream *s) |
vxl_uint_16 | vil_stream_read_little_endian_uint_16 (vil_stream *s) |
vxl_uint_32 | vil_stream_read_big_endian_uint_32 (vil_stream *s) |
vxl_uint_32 | vil_stream_read_little_endian_uint_32 (vil_stream *s) |
float | vil_stream_read_big_endian_float (vil_stream *is) |
Reads in a 4-byte big-endian float. | |
void | vil_stream_read_big_endian_int_16 (vil_stream *is, vxl_uint_16 *data, unsigned n) |
Reads in n 16 bit unsigned ints. |
read numbers from vil_stream
Functions to read integers and floats from a vil_stream. The endianness refers to the format in the stream, not the native format of the compiler or execution environment.
Modifications Peter Vanroose, July 2000: corrected serious bug: VXL_LITTLE_ENDIAN not needed (implementation was wrong for VXL_BIG_ENDIAN machines) Ian Scott, May 2003: rearrange explicit io, to allow for easier expansion. Peter Vanroose - 23 Oct.2003 - Added support for 64-bit int pixels
Definition in file vil_stream_read.cxx.
float vil_stream_read_big_endian_float | ( | vil_stream * | is | ) |
Reads in a 4-byte big-endian float.
Definition at line 109 of file vil_stream_read.cxx.
void vil_stream_read_big_endian_int_16 | ( | vil_stream * | is, |
vxl_uint_16 * | data, | ||
unsigned | n | ||
) |
Reads in n 16 bit unsigned ints.
Caller is responsible for allocating enough space.
Definition at line 121 of file vil_stream_read.cxx.
vxl_uint_16 vil_stream_read_big_endian_uint_16 | ( | vil_stream * | s | ) |
Definition at line 28 of file vil_stream_read.cxx.
vxl_uint_32 vil_stream_read_big_endian_uint_32 | ( | vil_stream * | s | ) |
Definition at line 62 of file vil_stream_read.cxx.
vxl_uint_16 vil_stream_read_little_endian_uint_16 | ( | vil_stream * | s | ) |
Definition at line 35 of file vil_stream_read.cxx.
vxl_uint_32 vil_stream_read_little_endian_uint_32 | ( | vil_stream * | s | ) |
Definition at line 69 of file vil_stream_read.cxx.