#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_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) |
| static void _JPEG_ByteBufSrc | ( | j_decompress_ptr | cinfo, | |
| const UT_ByteBuf * | sourceBuf | |||
| ) | [static] |
References bytebuf_jpeg_source_mgr::pub, and bytebuf_jpeg_source_mgr::sourceBuf.
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_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 | |||
| ) |
References _JPEG_ByteBufSrc(), FREEP, and UT_return_val_if_fail.
Referenced by GR_Win32Image::_convertFromJPEG().
1.7.1