diff options
| author | Don Kjer <don@lindenlab.com> | 2011-04-26 18:01:18 +0000 |
|---|---|---|
| committer | Don Kjer <don@lindenlab.com> | 2011-04-26 18:01:18 +0000 |
| commit | c14b5c644d75df31a1ef151262480cf875134da2 (patch) | |
| tree | 9284620a254873585b637f625456c88e9e371436 /indra/llimage/llimagej2c.cpp | |
| parent | 77791a88a9811f71cc9af668d28a903645436be0 (diff) | |
| parent | b87cb90a55ed74d51587eec581fb57e29f510c41 (diff) | |
Merge with viewer-development
Diffstat (limited to 'indra/llimage/llimagej2c.cpp')
| -rw-r--r-- | indra/llimage/llimagej2c.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llimage/llimagej2c.cpp b/indra/llimage/llimagej2c.cpp index 80fec7f8a0..a90df0f1c1 100644 --- a/indra/llimage/llimagej2c.cpp +++ b/indra/llimage/llimagej2c.cpp @@ -139,6 +139,15 @@ BOOL LLImageJ2C::updateData() return res; } +BOOL LLImageJ2C::initDecode(LLImageRaw &raw_image, int discard_level, int* region) +{ + return mImpl->initDecode(*this,raw_image,discard_level,region); +} + +BOOL LLImageJ2C::initEncode(LLImageRaw &raw_image, int blocks_size, int precincts_size) +{ + return mImpl->initEncode(*this,raw_image,blocks_size,precincts_size); +} BOOL LLImageJ2C::decode(LLImageRaw *raw_imagep, F32 decode_time) { @@ -251,6 +260,9 @@ S32 LLImageJ2C::calcHeaderSizeJ2C() //static S32 LLImageJ2C::calcDataSizeJ2C(S32 w, S32 h, S32 comp, S32 discard_level, F32 rate) { + // Note: this only provides an *estimate* of the size in bytes of an image level + // *TODO: find a way to read the true size (when available) and convey the fact + // that the result is an estimate in the other cases if (rate <= 0.f) rate = .125f; while (discard_level > 0) { |
