decompress.h

wraps the bios decompress functionality into something a bit easier to deal with [詳細]

#include <nds/ndstypes.h>

ソースコードを見る。

型定義

typedef u8(* getByteCallback )(u8 *source)
typedef int(* getHeaderCallback )(u8 *source, u16 *dest, u32 arg)

列挙型

enum  DecompressType {
  LZ77,
  LZ77Vram,
  HUFF,
  RLE,
  RLEVram
}
 

the types of decompression available

[詳細]

関数

void decompress (const void *data, void *dst, DecompressType type)
 decompresses data using the suported type
void decompressStream (const void *data, void *dst, DecompressType type, getByteCallback readCB, getHeaderCallback getHeaderCB)
 decompresses data using the suported type (only LZ77Vram, HUFF, and RLEVram support streaming)

説明

wraps the bios decompress functionality into something a bit easier to deal with


列挙型

the types of decompression available

列挙型の値:
LZ77Vram 

LZ77 decompression.

HUFF 

vram safe LZ77 decompression

RLE 

vram safe huff decompression

RLEVram 

run length encoded decompression

vram safe run length encoded decompression


関数

decompress ( const void *  data,
void *  dst,
DecompressType  type 
)

decompresses data using the suported type

引数:
dst the destination to decompress to
data the data to decompress
type the type of data to decompress
例:
Graphics/Backgrounds/16bit_color_bmp/source/template.cpp.
decompressStream ( const void *  data,
void *  dst,
DecompressType  type,
getByteCallback  readCB,
getHeaderCallback  getHeaderCB 
)

decompresses data using the suported type (only LZ77Vram, HUFF, and RLEVram support streaming)

引数:
dst the destination to decompress to
data the data to decompress
type the type of data to decompress
readCB a callback to read the next byte of data
getHeaderCB a callback to read the 32 byte header
 全て クラス ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義
libndsに対してMon Apr 26 23:39:50 2010に生成されました。  doxygen 1.6.3