#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_mgr * | bytebuf_jpeg_source_ptr |
Functions | |
static void | _JPEG_ByteBufSrc (j_decompress_ptr cinfo, const UT_ConstByteBufPtr &sourceBuf) |
static void | _JPEG_destroy_decompress (j_decompress_ptr cinfo) |
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_ConstByteBufPtr &pBB, UT_sint32 &iImageWidth, UT_sint32 &iImageHeight) |
bool | UT_JPEG_getRGBData (const UT_ConstByteBufPtr &pBB, UT_Byte *pDest, UT_sint32 iDestRowSize, bool bBGR, bool bFlipHoriz) |
static void _JPEG_ByteBufSrc | ( | j_decompress_ptr | cinfo, | |
const UT_ConstByteBufPtr & | sourceBuf | |||
) | [static] |
References bytebuf_jpeg_source_mgr::pub, and bytebuf_jpeg_source_mgr::sourceBuf.
Referenced by UT_JPEG_getDimensions(), and UT_JPEG_getRGBData().
static void _JPEG_destroy_decompress | ( | j_decompress_ptr | cinfo | ) | [static] |
Referenced by UT_JPEG_getDimensions(), and UT_JPEG_getRGBData().
static boolean _jpegFillInputBuffer | ( | j_decompress_ptr | cinfo | ) | [static] |
static void _jpegInitSource | ( | j_decompress_ptr | cinfo | ) | [static] |
References bytebuf_jpeg_source_mgr::pos.
static void _jpegSkipInputData | ( | j_decompress_ptr | cinfo, | |
long | num_bytes | |||
) | [static] |
References bytebuf_jpeg_source_mgr::pub, and UT_ASSERT.
static void _jpegTermSource | ( | j_decompress_ptr | ) | [static] |
bool UT_JPEG_getDimensions | ( | const UT_ConstByteBufPtr & | pBB, | |
UT_sint32 & | iImageWidth, | |||
UT_sint32 & | iImageHeight | |||
) |
References _JPEG_ByteBufSrc(), and _JPEG_destroy_decompress().
Referenced by GR_Win32Image::_convertFromJPEG(), s_RTF_ListenerWriteDoc::_openFrame(), s_RTF_ListenerWriteDoc::_writeImageInRTF(), abiword_document::garble_jpeg(), FG_GraphicRaster::generateImage(), and FG_GraphicRaster::setRaster_JPEG().
bool UT_JPEG_getRGBData | ( | const UT_ConstByteBufPtr & | pBB, | |
UT_Byte * | pDest, | |||
UT_sint32 | iDestRowSize, | |||
bool | bBGR, | |||
bool | bFlipHoriz | |||
) |
References _JPEG_ByteBufSrc(), _JPEG_destroy_decompress(), FREEP, and UT_return_val_if_fail.
Referenced by GR_Win32Image::_convertFromJPEG().