Macros | Functions
vil_io_memory_chunk.cxx File Reference
#include "vil_io_memory_chunk.h"
#include <vsl/vsl_block_binary.h>
#include <vsl/vsl_complex_io.h>

Go to the source code of this file.

Macros

#define write_case_macro(T)
 
#define read_case_macro_v1(T)
 
#define read_case_macro_v2(T)
 
#define read_case_macro_v3(T)
 

Functions

void vsl_b_write (vsl_b_ostream &os, const vil_memory_chunk &chunk)
 Binary save vil_memory_chunk to stream. More...
 
void vsl_b_read (vsl_b_istream &is, vil_memory_chunk &chunk)
 Binary load vil_memory_chunk from stream. More...
 
void vsl_b_write (vsl_b_ostream &os, const vil_memory_chunk *chunk_ptr)
 Binary save vil_memory_chunk to stream by pointer. More...
 
void vsl_b_read (vsl_b_istream &is, vil_memory_chunk *&p)
 Binary load vil_memory_chunk from stream onto the heap. More...
 
void vsl_print_summary (std::ostream &os, const vil_memory_chunk &chunk)
 Print human readable summary of a vil_memory_chunk object to a stream. More...
 

Detailed Description

Author
Tim Cootes
  Modifications
   Feb.2003 - Ian Scott - Upgraded IO to use vsl_block_binary io
   23 Oct.2003 - Peter Vanroose - Added support for 64-bit int pixels

Definition in file vil_io_memory_chunk.cxx.

Macro Definition Documentation

◆ read_case_macro_v1

#define read_case_macro_v1 (   T)
Value:
chunk.set_size(n*sizeof(T ),pixel_format); \
for (unsigned i=0; i<n; ++i)\
vsl_b_read(is, static_cast<T *>(chunk.data())[i]);
void vsl_b_read(vsl_b_istream &is, vil_image_view< T > &image)
Binary load vil_image_view<T> from stream.

Definition at line 82 of file vil_io_memory_chunk.cxx.

◆ read_case_macro_v2

#define read_case_macro_v2 (   T)
Value:
chunk.set_size(n*sizeof(T ),pixel_format); \
vsl_block_binary_read_confirm_specialisation(is, false); \
for (unsigned i=0; i<n; ++i)\
vsl_b_read(is, static_cast<T *>(chunk.data())[i]);
void vsl_b_read(vsl_b_istream &is, vil_image_view< T > &image)
Binary load vil_image_view<T> from stream.

Definition at line 87 of file vil_io_memory_chunk.cxx.

◆ read_case_macro_v3

#define read_case_macro_v3 (   T)
Value:
chunk.set_size(n*sizeof(T ),pixel_format); \
vsl_block_binary_read(is,static_cast<T *>(chunk.data()),n)

Definition at line 93 of file vil_io_memory_chunk.cxx.

◆ write_case_macro

#define write_case_macro (   T)
Value:
vsl_b_write(os,unsigned(chunk.size()/sizeof(T ))); \
vsl_block_binary_write(os,(const T*) chunk.const_data(),chunk.size()/sizeof(T))
void vsl_b_write(vsl_b_ostream &os, const vil_image_view< T > &image)
Binary save vil_image_view<T> to stream.

Definition at line 15 of file vil_io_memory_chunk.cxx.

Function Documentation

◆ vsl_b_read() [1/2]

void vsl_b_read ( vsl_b_istream &  is,
vil_memory_chunk chunk 
)

Binary load vil_memory_chunk from stream.

Definition at line 99 of file vil_io_memory_chunk.cxx.

◆ vsl_b_read() [2/2]

void vsl_b_read ( vsl_b_istream &  is,
vil_memory_chunk *&  p 
)

Binary load vil_memory_chunk from stream onto the heap.

Definition at line 287 of file vil_io_memory_chunk.cxx.

◆ vsl_b_write() [1/2]

void vsl_b_write ( vsl_b_ostream &  os,
const vil_memory_chunk chunk 
)

Binary save vil_memory_chunk to stream.

Definition at line 21 of file vil_io_memory_chunk.cxx.

◆ vsl_b_write() [2/2]

void vsl_b_write ( vsl_b_ostream &  os,
const vil_memory_chunk chunk_ptr 
)

Binary save vil_memory_chunk to stream by pointer.

Definition at line 278 of file vil_io_memory_chunk.cxx.

◆ vsl_print_summary()

void vsl_print_summary ( std::ostream &  os,
const vil_memory_chunk chunk 
)

Print human readable summary of a vil_memory_chunk object to a stream.

Definition at line 302 of file vil_io_memory_chunk.cxx.