delete cinfo;
}
-void JpegCompressor::compress(const rdr::U8 *buf, int stride, const Rect& r,
- const PixelFormat& pf, int quality, int subsamp)
+void JpegCompressor::compress(const rdr::U8 *buf, volatile int stride,
+ const Rect& r, const PixelFormat& pf,
+ int quality, int subsamp)
{
int w = r.width();
int h = r.height();
int pixelsize;
- rdr::U8 *srcBuf = NULL;
- bool srcBufIsTemp = false;
- JSAMPROW *rowPointer = NULL;
+ rdr::U8 * volatile srcBuf = NULL;
+ volatile bool srcBufIsTemp = false;
+ JSAMPROW * volatile rowPointer = NULL;
if(setjmp(err->jmpBuffer)) {
// this will execute if libjpeg has an error
delete dinfo;
}
-void JpegDecompressor::decompress(const rdr::U8 *jpegBuf, int jpegBufLen,
- rdr::U8 *buf, int stride, const Rect& r, const PixelFormat& pf)
+void JpegDecompressor::decompress(const rdr::U8 *jpegBuf,
+ int jpegBufLen, rdr::U8 *buf,
+ volatile int stride,
+ const Rect& r, const PixelFormat& pf)
{
int w = r.width();
int h = r.height();
int pixelsize;
int dstBufStride;
- rdr::U8 *dstBuf = NULL;
- bool dstBufIsTemp = false;
- JSAMPROW *rowPointer = NULL;
+ rdr::U8 * volatile dstBuf = NULL;
+ volatile bool dstBufIsTemp = false;
+ JSAMPROW * volatile rowPointer = NULL;
if(setjmp(err->jmpBuffer)) {
// this will execute if libjpeg has an error