Logo Search packages:      
Sourcecode: libjpeg-turbo version File versions  Download package

Classes | Defines | Typedefs | Enumerations | Functions | Variables

TurboJPEG

Classes

struct  tjregion
struct  tjscalingfactor
struct  tjtransform

Defines

#define NUMSUBOPT   TJ_NUMSAMP
#define TJ_411   TJSAMP_420
#define TJ_420   TJSAMP_420
#define TJ_422   TJSAMP_422
#define TJ_444   TJSAMP_444
#define TJ_ALPHAFIRST   64
#define TJ_BGR   1
#define TJ_BOTTOMUP   TJFLAG_BOTTOMUP
#define TJ_FASTUPSAMPLE   TJFLAG_FASTUPSAMPLE
#define TJ_FORCEMMX   TJFLAG_FORCEMMX
#define TJ_FORCESSE   TJFLAG_FORCESSE
#define TJ_FORCESSE2   TJFLAG_FORCESSE2
#define TJ_FORCESSE3   TJFLAG_FORCESSE3
#define TJ_GRAYSCALE   TJSAMP_GRAY
#define TJ_NUMPF   7
#define TJ_NUMSAMP   5
#define TJ_NUMXOP   8
#define TJ_YUV   512
#define TJFLAG_BOTTOMUP   2
#define TJFLAG_FASTUPSAMPLE   256
#define TJFLAG_FORCEMMX   8
#define TJFLAG_FORCESSE   16
#define TJFLAG_FORCESSE2   32
#define TJFLAG_FORCESSE3   128
#define TJFLAG_NOREALLOC   1024
#define TJPAD(width)   (((width)+3)&(~3))
#define TJSCALED(dimension, scalingFactor)
#define TJXOPT_CROP   4
#define TJXOPT_GRAY   8
#define TJXOPT_PERFECT   1
#define TJXOPT_TRIM   2

Typedefs

typedef void * tjhandle

Enumerations

enum  TJPF {
  TJPF_RGB = 0, TJPF_BGR, TJPF_RGBX, TJPF_BGRX,
  TJPF_XBGR, TJPF_XRGB, TJPF_GRAY
}
enum  TJSAMP {
  TJSAMP_444 = 0, TJSAMP_422, TJSAMP_420, TJSAMP_GRAY,
  TJSAMP_440
}
enum  TJXOP {
  TJXOP_NONE = 0, TJXOP_HFLIP, TJXOP_VFLIP, TJXOP_TRANSPOSE,
  TJXOP_TRANSVERSE, TJXOP_ROT90, TJXOP_ROT180, TJXOP_ROT270
}

Functions

DLLEXPORT unsigned char *DLLCALL tjAlloc (int bytes)
DLLEXPORT unsigned long DLLCALL TJBUFSIZE (int width, int height)
DLLEXPORT unsigned long DLLCALL tjBufSize (int width, int height, int jpegSubsamp)
DLLEXPORT unsigned long DLLCALL tjBufSizeYUV (int width, int height, int subsamp)
DLLEXPORT unsigned long DLLCALL TJBUFSIZEYUV (int width, int height, int jpegSubsamp)
DLLEXPORT int DLLCALL tjCompress (tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelSize, unsigned char *dstBuf, unsigned long *compressedSize, int jpegSubsamp, int jpegQual, int flags)
DLLEXPORT int DLLCALL tjCompress2 (tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags)
DLLEXPORT int DLLCALL tjDecompress (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, int height, int pixelSize, int flags)
DLLEXPORT int DLLCALL tjDecompress2 (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags)
DLLEXPORT int DLLCALL tjDecompressHeader (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height)
DLLEXPORT int DLLCALL tjDecompressHeader2 (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height, int *jpegSubsamp)
DLLEXPORT int DLLCALL tjDecompressToYUV (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int flags)
DLLEXPORT int DLLCALL tjDestroy (tjhandle handle)
DLLEXPORT int DLLCALL tjEncodeYUV (tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelSize, unsigned char *dstBuf, int subsamp, int flags)
DLLEXPORT int DLLCALL tjEncodeYUV2 (tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int subsamp, int flags)
DLLEXPORT void DLLCALL tjFree (unsigned char *buffer)
DLLEXPORT char *DLLCALL tjGetErrorStr (void)
DLLEXPORT tjscalingfactor *DLLCALL tjGetScalingFactors (int *numscalingfactors)
DLLEXPORT tjhandle DLLCALL tjInitCompress (void)
DLLEXPORT tjhandle DLLCALL tjInitDecompress (void)
DLLEXPORT tjhandle DLLCALL tjInitTransform (void)
DLLEXPORT int DLLCALL tjTransform (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int n, unsigned char **dstBufs, unsigned long *dstSizes, tjtransform *transforms, int flags)

Variables

static const int tjBlueOffset [TJ_NUMPF] = {2, 0, 2, 0, 1, 3, 0}
static const int tjGreenOffset [TJ_NUMPF] = {1, 1, 1, 1, 2, 2, 0}
static const int tjMCUHeight [TJ_NUMSAMP] = {8, 8, 16, 8, 16}
static const int tjMCUWidth [TJ_NUMSAMP] = {8, 16, 16, 8, 8}
static const int tjPixelSize [TJ_NUMPF] = {3, 3, 4, 4, 4, 4, 1}
static const int tjRedOffset [TJ_NUMPF] = {0, 2, 0, 2, 3, 1, 0}

Detailed Description

TurboJPEG API. This API provides an interface for generating, decoding, and transforming planar YUV and JPEG images in memory.


Generated by  Doxygen 1.6.0   Back to index