diff options
author | Merov Linden <merov@lindenlab.com> | 2012-03-20 20:19:47 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2012-03-20 20:19:47 -0700 |
commit | 1ebcb8039369175f7f43fc19956f32c923cfe1ba (patch) | |
tree | 231d7801a87702d42f5d51e642d9ba89600eefb7 /indra/llimage/llimage.h | |
parent | 4c15635527800120f98aa1402d71baa4b9fbc932 (diff) | |
parent | 4f19eb3951366ca6a3db9de4a72cb0c1f8bc89d1 (diff) |
SH-3047 : Pull changes into viewer-thx1130 repo.
Diffstat (limited to 'indra/llimage/llimage.h')
-rw-r--r-- | indra/llimage/llimage.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llimage/llimage.h b/indra/llimage/llimage.h index 4469c9e860..eba8362f1c 100644 --- a/indra/llimage/llimage.h +++ b/indra/llimage/llimage.h @@ -294,7 +294,7 @@ public: // getRawDiscardLevel() by default returns mDiscardLevel, but may be overridden (LLImageJ2C) virtual S8 getRawDiscardLevel() { return mDiscardLevel; } - BOOL load(const std::string& filename); + BOOL load(const std::string& filename, int load_size = 0); BOOL save(const std::string& filename); virtual BOOL updateData() = 0; // pure virtual @@ -313,6 +313,8 @@ public: BOOL isDecoded() const { return mDecoded ? TRUE : FALSE; } void setDiscardLevel(S8 discard_level) { mDiscardLevel = discard_level; } S8 getDiscardLevel() const { return mDiscardLevel; } + S8 getLevels() const { return mLevels; } + void setLevels(S8 nlevels) { mLevels = nlevels; } // setLastError needs to be deferred for J2C images since it may be called from a DLL virtual void resetLastError(); @@ -325,7 +327,8 @@ protected: S8 mCodec; S8 mDecoding; S8 mDecoded; // unused, but changing LLImage layout requires recompiling static Mac/Linux libs. 2009-01-30 JC - S8 mDiscardLevel; + S8 mDiscardLevel; // Current resolution level worked on. 0 = full res, 1 = half res, 2 = quarter res, etc... + S8 mLevels; // Number of resolution levels in that image. Min is 1. 0 means unknown. public: static S32 sGlobalFormattedMemory; |