Public Member Functions | Public Attributes | Private Attributes
vil_jpeg_decompressor Class Reference

#include <vil_jpeg_decompressor.h>

List of all members.

Public Member Functions

 vil_jpeg_decompressor (vil_stream *s)
 using jpeg decompressor objects :.
 ~vil_jpeg_decompressor ()
 NB.
JSAMPLE const * read_scanline (unsigned line)
 Do not delete the return value.

Public Attributes

struct jpeg_error_mgr jerr
struct jpeg_decompress_struct jobj
vil_streamstream

Private Attributes

bool ready
bool valid
JSAMPLE * biffer

Detailed Description

Definition at line 18 of file vil_jpeg_decompressor.h.


Constructor & Destructor Documentation

vil_jpeg_decompressor::vil_jpeg_decompressor ( vil_stream s)

using jpeg decompressor objects :.

  1. supply an error manager, e.g. with jpeg_std_err(). this must be done before initializing the object.
  2. initialize with jpeg_create_decompress().
  3. supply a data stream, e.g. with jpeg_std_source().
  4. call jpeg_read_header() to start reading the data stream. this will read to the start of the compressed data and store various tables and parameters. if you just want the image parameters and not the data, it's ok to stop now, so long as you call jpeg_abort_decompress() or jpeg_destroy_decompress() to release resources.
  5. call jpeg_finish_decompress() if you read all the data. if you only read some of the data, call jpeg_abort_decompress().
  6. destruct the object with jpeg_destroy_decompress().

Definition at line 35 of file vil_jpeg_decompressor.cxx.

vil_jpeg_decompressor::~vil_jpeg_decompressor ( )

NB.

does not delete the stream.

Definition at line 152 of file vil_jpeg_decompressor.cxx.


Member Function Documentation

JSAMPLE const * vil_jpeg_decompressor::read_scanline ( unsigned  line)

Do not delete the return value.

Leave it alone. The return value is zero on failure. It should cost nothing to read the same scanline twice in succession.

Definition at line 82 of file vil_jpeg_decompressor.cxx.


Member Data Documentation

JSAMPLE* vil_jpeg_decompressor::biffer [private]

Definition at line 46 of file vil_jpeg_decompressor.h.

struct jpeg_error_mgr vil_jpeg_decompressor::jerr

Definition at line 21 of file vil_jpeg_decompressor.h.

struct jpeg_decompress_struct vil_jpeg_decompressor::jobj

Definition at line 22 of file vil_jpeg_decompressor.h.

Definition at line 38 of file vil_jpeg_decompressor.h.

Definition at line 23 of file vil_jpeg_decompressor.h.

Definition at line 39 of file vil_jpeg_decompressor.h.


The documentation for this class was generated from the following files: