[sldev] Bug in LLTextureCacheRemoteWorker::doRead ?

Carlo Wood carlo at alinoe.com
Thu Mar 26 08:58:28 PDT 2009


On Wed, Mar 25, 2009 at 10:31:37PM -0700, Philippe Bossut (Merov Linden) wrote:
> mOffset is actually the data that's reserved for the header in the  
> formatted image buffer at creation *before* the readFromCache() is  
> invoked (see LLTextureFetchWorker::doWork() in lltexturefetch.cpp). This 
> quantity is fixed and never changed. What we've read so far is *at most* 
> TEXTURE_CACHE_ENTRY_SIZE from the header cache.

Before I react to the rest of you mail (thanks!), I really need to
understand this mOffet better.

When you say 'header', you seem to refer to something else than
the header of the image, right? Also jpeg2000 files (and tga files)
start with a header before the actual pixel data starts.

So, what is this "header in the formatted image buffer"?
How is the size of it determined?
Aren't all files in the cache jpeg 2000 files? Because in that
case I can't think of a reason for a need of extra data before
the image(-header).

Right now my picture is this (assuming mOffset < 600):

  TEXTURE_CACHE_ENTRY_SIZE
<---------------------------><-------------cache file------------>
<----mOffset----><----JPEG2000 header----><-----pixel data------->

And I have no idea what kind of data goes in the mOffset part
or how large it is.

-- 
Carlo Wood <carlo at alinoe.com>


More information about the SLDev mailing list