klComputerVision
Data Structures | Typedefs | Functions | Variables
kl_uic_jpeg_image_io.cpp File Reference
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <sstream>
#include "kl_image_io.h"
#include "precomp.h"
#include "string.h"
#include "uic_exc_status.h"
#include "timer.h"
#include "ippimage.h"
#include "detector.h"
#include "stdfilein.h"
#include "stdfileout.h"
#include "membuffin.h"
#include "membuffout.h"
#include "bmp.h"
#include "png.h"
#include "jpeg.h"
#include "jpeg2k.h"
#include "dicom.h"
#include "jpegxr.h"
#include "raw.h"
#include "cmdline.h"
#include "uic_transcoder_con.h"
#include "ippcore.h"
#include "ippj.h"
Include dependency graph for kl_uic_jpeg_image_io.cpp:

Data Structures

struct  CMD_OPTIONS
 

Typedefs

typedef struct CMD_OPTIONS CmdOptions
 

Functions

static IM_TYPE ImageFormatFromExtension (const char *name)
 
static ExcStatus DecodeImage (BaseStreamInput &in, CIppImage &image, CmdOptions &cmdOpt, IM_TYPE &fmt, double *msec)
 
static ExcStatus EncodeImage (CIppImage &image, BaseStreamOutput &out, CmdOptions &cmdOpt, IM_TYPE &fmt, double *msec)
 
int runJPEG (const char *fileName, bool inout, const char *fileID)
 
bool read_jpeg (const char *filename, unsigned int width, unsigned int height, unsigned int bands, unsigned char *inputbuf)
 
bool query_jpeg (const char *filename, unsigned int &width, unsigned int &height, unsigned int &bands)
 

Variables

CTimer cmnTimer
 
const char * pxformat_str []
 
const char * color_str []
 
const char * sampling_str []
 
const char * format_str []
 

Typedef Documentation

typedef struct CMD_OPTIONS CmdOptions

Function Documentation

static ExcStatus DecodeImage ( BaseStreamInput &  in,
CIppImage &  image,
CmdOptions cmdOpt,
IM_TYPE &  fmt,
double *  msec 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static ExcStatus EncodeImage ( CIppImage &  image,
BaseStreamOutput &  out,
CmdOptions cmdOpt,
IM_TYPE &  fmt,
double *  msec 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static IM_TYPE ImageFormatFromExtension ( const char *  name)
static
bool query_jpeg ( const char *  filename,
unsigned int &  width,
unsigned int &  height,
unsigned int &  bands 
)

Here is the caller graph for this function:

bool read_jpeg ( const char *  filename,
unsigned int  width,
unsigned int  height,
unsigned int  bands,
unsigned char *  inputbuf 
)

Here is the caller graph for this function:

int runJPEG ( const char *  fileName,
bool  inout,
const char *  fileID 
)

Here is the call graph for this function:

Variable Documentation

CTimer cmnTimer
const char* color_str[]
Initial value:
=
{
"Unknown",
"Grayscale",
"GrayscaleAlpha",
"RGB",
"BGR",
"RGBA",
"BGRA",
"RGBAP",
"BGRAP",
"RGBE",
"YCbCr",
"CMYK",
"CMYKA",
"YCCK"
}
const char* format_str[]
Initial value:
=
{
"UNKNOWN",
"RAW",
"BMP",
"JPEG",
"JPEG2K",
"DICOM",
"PNG",
"JPEG-XR",
}
const char* pxformat_str[]
Initial value:
=
{
"unsigned",
"fixed",
"float",
"signed"
}
const char* sampling_str[]
Initial value:
=
{
"444",
"422",
"244",
"411",
"Other"
}