Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsGIFDecoder2.cpp File Reference
#include "prmem.h"
#include "nsGIFDecoder2.h"
#include "nsIInputStream.h"
#include "nsIComponentManager.h"
#include "nsRecyclingAllocator.h"
#include "imgIContainerObserver.h"
#include "imgILoad.h"

Go to the source code of this file.


void nsGifShutdown ()
static NS_METHOD ReadDataOut (nsIInputStream *in, void *closure, const char *fromRawSegment, PRUint32 toOffset, PRUint32 count, PRUint32 *writeCount)


const int kGifAllocatorNBucket = 3
static nsRecyclingAllocator * gGifAllocator = nsnull

Function Documentation

Definition at line 63 of file nsGIFDecoder2.cpp.

  // Release cached buffers from zlib allocator
  delete gGifAllocator;
  gGifAllocator = nsnull;

Here is the caller graph for this function:

static NS_METHOD ReadDataOut ( nsIInputStream in,
void closure,
const char *  fromRawSegment,
PRUint32  toOffset,
PRUint32  count,
PRUint32 writeCount 
) [static]

Definition at line 164 of file nsGIFDecoder2.cpp.

  nsGIFDecoder2 *decoder = NS_STATIC_CAST(nsGIFDecoder2*, closure);
  nsresult rv = decoder->ProcessData((unsigned char*)fromRawSegment, count, writeCount);
  if (NS_FAILED(rv)) {
    *writeCount = 0;
    return rv;

  return NS_OK;

Here is the call graph for this function:

Variable Documentation

nsRecyclingAllocator* gGifAllocator = nsnull [static]

Definition at line 61 of file nsGIFDecoder2.cpp.

Definition at line 60 of file nsGIFDecoder2.cpp.