Public Member Functions | Public Attributes | Private Attributes | List of all members
vil_jpeg_decompressor Class Reference

#include <vil_jpeg_decompressor.h>

Public Member Functions

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

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 15 of file vil_jpeg_decompressor.h.

Constructor & Destructor Documentation

◆ vil_jpeg_decompressor()

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::~vil_jpeg_decompressor ( )

NB.

does not delete the stream.

Definition at line 152 of file vil_jpeg_decompressor.cxx.

Member Function Documentation

◆ read_scanline()

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

◆ biffer

JSAMPLE* vil_jpeg_decompressor::biffer
private

Definition at line 43 of file vil_jpeg_decompressor.h.

◆ jerr

struct jpeg_error_mgr vil_jpeg_decompressor::jerr

Definition at line 18 of file vil_jpeg_decompressor.h.

◆ jobj

struct jpeg_decompress_struct vil_jpeg_decompressor::jobj

Definition at line 19 of file vil_jpeg_decompressor.h.

◆ ready

bool vil_jpeg_decompressor::ready
private

Definition at line 35 of file vil_jpeg_decompressor.h.

◆ stream

vil_stream* vil_jpeg_decompressor::stream

Definition at line 20 of file vil_jpeg_decompressor.h.

◆ valid

bool vil_jpeg_decompressor::valid
private

Definition at line 36 of file vil_jpeg_decompressor.h.


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