Extensible Firmware Interface Specification
I-2 12/01/02 Version 1.10
UINT32 mDataIdx;
UINT32 mCompSize;
UINT32 mOrigSize;
UINT32 mOutBuf;
UINT32 mInBuf;
UINT16 mBadTableFlag;
UINT8 mBuffer[WNDSIZ];
UINT16 mLeft[2 * NC - 1];
UINT16 mRight[2 * NC - 1];
UINT32 mBuf;
UINT8 mCLen[NC];
UINT8 mPTLen[NPT];
UINT16 mCTable[4096];
UINT16 mPTTable[256];
} SCRATCH_DATA;
//
// Function Prototypes
//
STATIC
VOID
FillBuf (
IN SCRATCH_DATA *Sd,
IN UINT16 NumOfBits
);
STATIC
VOID
Decode (
SCRATCH_DATA *Sd,
UINT16 NumOfBytes
);
//
// Functions
//
EFI_STATUS
EFIAPI
GetInfo (
IN EFI_DECOMPRESS_PROTOCOL *This,
IN VOID *Source,
IN UINT32 SrcSize,
OUT UINT32 *DstSize,
OUT UINT32 *ScratchSize
)
/*++
Routine Description:
The implementation of EFI_DECOMPRESS_PROTOCOL.GetInfo().