ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

unarj.cpp File Reference

#include "common/scummsys.h"
#include "common/archive.h"
#include "common/debug.h"
#include "common/unarj.h"
#include "common/file.h"
#include "common/hash-str.h"
#include "common/memstream.h"
#include "common/bufferedstream.h"
#include "common/textconsole.h"
Include dependency graph for unarj.cpp:

Go to the source code of this file.

Classes

struct  Common::ArjHeader
class  Common::ArjDecoder
class  Common::CRC32
class  Common::ArjArchive

Namespaces

namespace  Common
 

Internal interface to the QuickTime audio decoder.


Defines

#define ARJ_UCHAR_MAX   255
#define ARJ_CHAR_BIT   8
#define ARJ_COMMENT_MAX   2048
#define ARJ_FILENAME_MAX   512
#define ARJ_CODE_BIT   16
#define ARJ_THRESHOLD   3
#define ARJ_DICSIZ   26624
#define ARJ_FDICSIZ   ARJ_DICSIZ
#define ARJ_MAXDICBIT   16
#define ARJ_MAXMATCH   256
#define ARJ_NC   (ARJ_UCHAR_MAX + ARJ_MAXMATCH + 2 - ARJ_THRESHOLD)
#define ARJ_NP   (ARJ_MAXDICBIT + 1)
#define ARJ_NT   (ARJ_CODE_BIT + 3)
#define ARJ_NPT   ARJ_NT
#define ARJ_CTABLESIZE   4096
#define ARJ_PTABLESIZE   256
#define HEADER_ID   0xEA60
#define HEADER_ID_HI   0xEA
#define HEADER_ID_LO   0x60
#define FIRST_HDR_SIZE   30
#define HEADERSIZE_MAX   (FIRST_HDR_SIZE + 10 + ARJ_FILENAME_MAX + ARJ_COMMENT_MAX)
#define CRC_MASK   0xFFFFFFFFL
#define HSLIMIT_ARJ   524288L
#define CBIT   9
#define PBIT   5
#define TBIT   5

Typedefs

typedef HashMap< String,
ArjHeader *, IgnoreCase_Hash,
IgnoreCase_EqualTo > 
Common::ArjHeadersMap

Functions

static int32 Common::findHeader (SeekableReadStream &stream)
static ArjHeader * Common::readHeader (SeekableReadStream &stream)
Archive * Common::makeArjArchive (const String &name)
 This factory method creates an Archive instance corresponding to the content of the ARJ compressed file with the given name.

Define Documentation

#define ARJ_CHAR_BIT   8

Definition at line 40 of file unarj.cpp.

#define ARJ_CODE_BIT   16

Definition at line 45 of file unarj.cpp.

#define ARJ_COMMENT_MAX   2048

Definition at line 42 of file unarj.cpp.

#define ARJ_CTABLESIZE   4096

Definition at line 61 of file unarj.cpp.

#define ARJ_DICSIZ   26624

Definition at line 47 of file unarj.cpp.

#define ARJ_FDICSIZ   ARJ_DICSIZ

Definition at line 48 of file unarj.cpp.

#define ARJ_FILENAME_MAX   512

Definition at line 43 of file unarj.cpp.

#define ARJ_MAXDICBIT   16

Definition at line 49 of file unarj.cpp.

#define ARJ_MAXMATCH   256

Definition at line 50 of file unarj.cpp.

#define ARJ_NC   (ARJ_UCHAR_MAX + ARJ_MAXMATCH + 2 - ARJ_THRESHOLD)

Definition at line 51 of file unarj.cpp.

#define ARJ_NP   (ARJ_MAXDICBIT + 1)

Definition at line 52 of file unarj.cpp.

#define ARJ_NPT   ARJ_NT

Definition at line 56 of file unarj.cpp.

#define ARJ_NT   (ARJ_CODE_BIT + 3)

Definition at line 53 of file unarj.cpp.

#define ARJ_PTABLESIZE   256

Definition at line 62 of file unarj.cpp.

#define ARJ_THRESHOLD   3

Definition at line 46 of file unarj.cpp.

#define ARJ_UCHAR_MAX   255

Definition at line 39 of file unarj.cpp.

#define CBIT   9

Definition at line 159 of file unarj.cpp.

#define CRC_MASK   0xFFFFFFFFL

Definition at line 156 of file unarj.cpp.

#define FIRST_HDR_SIZE   30

Definition at line 154 of file unarj.cpp.

#define HEADER_ID   0xEA60

Definition at line 150 of file unarj.cpp.

#define HEADER_ID_HI   0xEA

Definition at line 151 of file unarj.cpp.

#define HEADER_ID_LO   0x60

Definition at line 152 of file unarj.cpp.

#define HEADERSIZE_MAX   (FIRST_HDR_SIZE + 10 + ARJ_FILENAME_MAX + ARJ_COMMENT_MAX)

Definition at line 155 of file unarj.cpp.

#define HSLIMIT_ARJ   524288L

Definition at line 157 of file unarj.cpp.

#define PBIT   5

Definition at line 160 of file unarj.cpp.

#define TBIT   5

Definition at line 161 of file unarj.cpp.



Generated on Sat Feb 23 2019 05:03:29 for ResidualVM by doxygen 1.7.1
curved edge   curved edge