aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llimage/llimagejpeg.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llimage/llimagejpeg.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llimage/llimagejpeg.h')
-rw-r--r--linden/indra/llimage/llimagejpeg.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/llimage/llimagejpeg.h b/linden/indra/llimage/llimagejpeg.h
index a890bf4..79dc1a3 100644
--- a/linden/indra/llimage/llimagejpeg.h
+++ b/linden/indra/llimage/llimagejpeg.h
@@ -32,7 +32,7 @@
32#ifndef LL_LLIMAGEJPEG_H 32#ifndef LL_LLIMAGEJPEG_H
33#define LL_LLIMAGEJPEG_H 33#define LL_LLIMAGEJPEG_H
34 34
35#include <setjmp.h> 35#include <csetjmp>
36 36
37#include "llimage.h" 37#include "llimage.h"
38 38
@@ -52,8 +52,9 @@ protected:
52 virtual ~LLImageJPEG(); 52 virtual ~LLImageJPEG();
53 53
54public: 54public:
55 LLImageJPEG(); 55 LLImageJPEG(S32 quality = 75);
56 56
57 /*virtual*/ std::string getExtension() { return std::string("jpg"); }
57 /*virtual*/ BOOL updateData(); 58 /*virtual*/ BOOL updateData();
58 /*virtual*/ BOOL decode(LLImageRaw* raw_image, F32 decode_time); 59 /*virtual*/ BOOL decode(LLImageRaw* raw_image, F32 decode_time);
59 /*virtual*/ BOOL encode(const LLImageRaw* raw_image, F32 encode_time); 60 /*virtual*/ BOOL encode(const LLImageRaw* raw_image, F32 encode_time);
@@ -83,8 +84,8 @@ protected:
83 S32 mOutputBufferSize; // bytes in mOuputBuffer 84 S32 mOutputBufferSize; // bytes in mOuputBuffer
84 85
85 S32 mEncodeQuality; // on a scale from 1 to 100 86 S32 mEncodeQuality; // on a scale from 1 to 100
86 87private:
87 jmp_buf mSetjmpBuffer; // To allow the library to abort. 88 static jmp_buf sSetjmpBuffer; // To allow the library to abort.
88}; 89};
89 90
90#endif // LL_LLIMAGEJPEG_H 91#endif // LL_LLIMAGEJPEG_H