Classes | Typedefs | Functions

ut_jpeg.cpp File Reference

#include <stdio.h>
#include <jpeglib.h>
#include <string.h>
#include "ut_assert.h"
#include "ut_bytebuf.h"
#include "ut_debugmsg.h"
#include "ut_jpeg.h"

Classes

struct  bytebuf_jpeg_source_mgr

Typedefs

typedef bytebuf_jpeg_source_mgrbytebuf_jpeg_source_ptr

Functions

static void _JPEG_ByteBufSrc (j_decompress_ptr cinfo, const UT_ByteBuf *sourceBuf)
static void _jpegInitSource (j_decompress_ptr cinfo)
static boolean _jpegFillInputBuffer (j_decompress_ptr cinfo)
static void _jpegSkipInputData (j_decompress_ptr cinfo, long num_bytes)
static void _jpegTermSource (j_decompress_ptr)
bool UT_JPEG_getDimensions (const UT_ByteBuf *pBB, UT_sint32 &iImageWidth, UT_sint32 &iImageHeight)
bool UT_JPEG_getRGBData (const UT_ByteBuf *pBB, UT_Byte *pDest, UT_sint32 iDestRowSize, bool bBGR, bool bFlipHoriz)

Typedef Documentation


Function Documentation

static void _JPEG_ByteBufSrc ( j_decompress_ptr  cinfo,
const UT_ByteBuf sourceBuf 
) [static]
static boolean _jpegFillInputBuffer ( j_decompress_ptr  cinfo  )  [static]
static void _jpegInitSource ( j_decompress_ptr  cinfo  )  [static]
static void _jpegSkipInputData ( j_decompress_ptr  cinfo,
long  num_bytes 
) [static]
static void _jpegTermSource ( j_decompress_ptr   )  [static]
bool UT_JPEG_getDimensions ( const UT_ByteBuf pBB,
UT_sint32 iImageWidth,
UT_sint32 iImageHeight 
)
bool UT_JPEG_getRGBData ( const UT_ByteBuf pBB,
UT_Byte pDest,
UT_sint32  iDestRowSize,
bool  bBGR,
bool  bFlipHoriz 
)