67 SO_TYPED_CLASS_HEADER();
114 struct jpeg_compress_struct *m_cinfo;
115 struct jpeg_decompress_struct *m_dcinfo;
117 size_t allocateNeededSpace(
size_t srcLen);
120 static void initDestination(j_compress_ptr cinfo);
121 static unsigned char emptyOutputBuffer(j_compress_ptr cinfo);
122 static void termDestination(j_compress_ptr cinfo);
124 static void initSource(j_decompress_ptr cinfo);
125 static unsigned char fillInputBuffer(j_decompress_ptr cinfo);
126 static void skipInputData(j_decompress_ptr cinfo,
long num_bytes);
127 static void resyncToRestart(j_decompress_ptr cinfo,
int desired);
128 static void termSource(j_decompress_ptr cinfo);
130 void createCompressInfo(jpeg_compress_struct *cinfo, jpeg_error_mgr *jerr,
131 jpeg_ldm_comp_destination_mgr *destMgr);
132 static void createDecompressInfo(jpeg_decompress_struct *cinfo,
133 jpeg_error_mgr *jerr,
134 jpeg_ldm_decomp_destination_mgr *srcMgr);
136 size_t compressBatch(
void* src,
size_t srcLen,
const TileInfo& tileInfo );
137 static size_t uncompressBatch(
void* dest,
const TileInfo& tileInfo,
const unsigned char* srcBuffer,
size_t srcLen );
139 void allocBatchSizeBytes();
140 static void writeBatchSize(
unsigned char* buffer, uint64_t batchSize );
141 static uint64_t readBatchSize(
const unsigned char* buffer );
virtual size_t uncompress(void *dest, size_t destLen, const TileInfo &tileInfo)
Uncompresses data from the internal buffer to the given buffer.