diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llimagej2coj/llimagej2coj.h | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/llimagej2coj/llimagej2coj.h')
-rw-r--r-- | linden/indra/llimagej2coj/llimagej2coj.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/llimagej2coj/llimagej2coj.h b/linden/indra/llimagej2coj/llimagej2coj.h index 3fbf495..c3e3d52 100644 --- a/linden/indra/llimagej2coj/llimagej2coj.h +++ b/linden/indra/llimagej2coj/llimagej2coj.h | |||
@@ -40,6 +40,11 @@ protected: | |||
40 | /*virtual*/ BOOL getMetadata(LLImageJ2C &base); | 40 | /*virtual*/ BOOL getMetadata(LLImageJ2C &base); |
41 | /*virtual*/ BOOL decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decode_time, S32 first_channel, S32 max_channel_count); | 41 | /*virtual*/ BOOL decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decode_time, S32 first_channel, S32 max_channel_count); |
42 | /*virtual*/ BOOL encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, const char* comment_text, F32 encode_time=0.0); | 42 | /*virtual*/ BOOL encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, const char* comment_text, F32 encode_time=0.0); |
43 | int ceildivpow2(int a, int b) | ||
44 | { | ||
45 | // Divide a by b to the power of 2 and round upwards. | ||
46 | return (a + (1 << b) - 1) >> b; | ||
47 | } | ||
43 | 48 | ||
44 | // Temporary variables for in-progress decodes... | 49 | // Temporary variables for in-progress decodes... |
45 | LLImageRaw *mRawImagep; | 50 | LLImageRaw *mRawImagep; |