Macros | Functions
vil_j2k_image.cxx File Reference

vil_j2k: Written by Rob Radtke (rob@) and Harry Voorhees (hlv@) of Stellar Science Ltd. More...

#include <algorithm>
#include <cmath>
#include <limits>
#include <cstdlib>
#include "vil_j2k_image.h"
#include <NCSFile.h>
#include <cassert>
#include <vil/vil_memory_chunk.h>
#include <vil/vil_image_view.h>
#include <vil/vil_load.h>
#include <vil/vil_open.h>
#include <vil/vil_new.h>
#include "NCSJPCVilIOStream.h"
#include <NCSTypes.h>

Go to the source code of this file.

Macros

#define macro(F, T)
 
#define macro(F, T)
 

Functions

NCSFileBandInfo bandInfo (const vil_pixel_format &vilType)
 
NCSEcwCellType convertType (const vil_pixel_format &vilType)
 
vil_pixel_format convertType (const NCSEcwCellType &ecwType)
 

Detailed Description

vil_j2k: Written by Rob Radtke (rob@) and Harry Voorhees (hlv@) of Stellar Science Ltd.

Co. (stellarscience.com) for Air Force Research Laboratory, 2005. Write capability added by J. Mundy, April 2009 Do not remove the following notice Modifications approved for public Release, distribution unlimited DISTAR Case 14074

Definition in file vil_j2k_image.cxx.

Macro Definition Documentation

◆ macro [1/2]

#define macro (   F,
 
)
Value:
case F: \
view = new vil_image_view< T > ( data_ptr, reinterpret_cast<T*>(data_ptr->data()), \
output_width, output_height, nBands, 1, output_width*nBands, output_width); \
break
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13

◆ macro [2/2]

#define macro (   F,
 
)
Value:
case F: {\
bytes_per_pixel = sizeof(T); \
const vil_image_view<T>& view = static_cast<const vil_image_view<T>&>(im); \
chunk = view.memory_chunk(); \
if (!write_line_BIL<T>(chunk, ni, nplanes, view.istep(), view.planestep(),\
bytes_per_pixel, mFileResource, t)) \
return false; \
} \
break
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
const vil_memory_chunk_sptr & memory_chunk() const
Smart pointer to the object holding the data for this view.

Function Documentation

◆ bandInfo()

NCSFileBandInfo bandInfo ( const vil_pixel_format vilType)

Definition at line 34 of file vil_j2k_image.cxx.

◆ convertType() [1/2]

NCSEcwCellType convertType ( const vil_pixel_format vilType)

Definition at line 136 of file vil_j2k_image.cxx.

◆ convertType() [2/2]

vil_pixel_format convertType ( const NCSEcwCellType &  ecwType)

Definition at line 160 of file vil_j2k_image.cxx.