MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Namespaces | Typedefs | Functions | Variables
mdsJPEGBaseFunctions.cpp File Reference

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2007 by Michal Spanel
. More...

#include <MDSTk/ImageIO/mdsJPEGBaseFunctions.h>
#include <stdio.h>
#include <jconfig.h>
#include <jerror.h>
#include <jpeglib.h>
#include <setjmp.h>

Namespaces

namespace  mds
 

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel


namespace  mds::img

Typedefs

typedef SMyDestinationMgr * mds::img::tMyDestinationPtr
typedef SMyErrorMgr * mds::img::tMyErrorPtr
typedef SMySourceMgr * mds::img::tMySourcePtr

Functions

 mds::img::emptyOutputBuffer (j_compress_ptr pInfo)
 mds::img::fillInputBuffer (j_decompress_ptr pInfo)
 mds::img::initDestination (j_compress_ptr pInfo)
 mds::img::initSource (j_decompress_ptr pInfo)
bool mds::img::loadColorJPEG (CRGBImage &Image, mds::mod::CChannel &Channel)
 Reads full color JPEG image from a given input channel.
bool mds::img::loadGrayJPEG (CImage8 &Image, mds::mod::CChannel &Channel)
 Reads grayscale JPEG image from a given input channel.
 mds::img::myErrorExit (j_common_ptr pInfo)
bool mds::img::saveColorJPEG (const CRGBImage &Image, mds::mod::CChannel &Channel, int iQuality=128)
 Writes full color JPEG image to a given output channel.
bool mds::img::saveGrayJPEG (const CImage8 &Image, mds::mod::CChannel &Channel, int iQuality=128)
 Writes grayscale JPEG image to a given output channel.
 mds::img::skipInputData (j_decompress_ptr pInfo, long int liNumBytes)
 mds::img::term_source (j_decompress_ptr)
 mds::img::termDestination (j_compress_ptr pInfo)

Variables

const size_t mds::img::BUFFER_SIZE = 4096
 I/O buffer size.

Detailed Description

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2007 by Michal Spanel
.

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2007/06/12

Id:
mdsJPEGBaseFunctions.cpp 2103 2012-02-17 10:08:20Z spanel

Description: