src/lz_null.c \
src/lz_repsearch.c \
src/lz_suffix_array_utils.c \
- src/lzms-common.c \
- src/lzms-compress.c \
- src/lzms-decompress.c \
- src/lzx-common.c \
- src/lzx-compress.c \
- src/lzx-decompress.c \
+ src/lzms_common.c \
+ src/lzms_compress.c \
+ src/lzms_decompress.c \
+ src/lzx_common.c \
+ src/lzx_compress.c \
+ src/lzx_decompress.c \
src/metadata_resource.c \
src/mount_image.c \
src/pathlist.c \
src/wim.c \
src/write.c \
src/xml.c \
- src/xpress-compress.c \
- src/xpress-decompress.c \
+ src/xpress_compress.c \
+ src/xpress_decompress.c \
include/wimlib/apply.h \
include/wimlib/assert.h \
include/wimlib/avl_tree.h \
include/wimlib/lz_mf_ops.h \
include/wimlib/lz_repsearch.h \
include/wimlib/lz_suffix_array_utils.h \
- include/wimlib/lzms.h \
+ include/wimlib/lzms_common.h \
include/wimlib/lzms_constants.h \
- include/wimlib/lzx.h \
+ include/wimlib/lzx_common.h \
include/wimlib/lzx_constants.h \
include/wimlib/matchfinder_avx2.h \
include/wimlib/matchfinder_common.h \
include/wimlib/wim.h \
include/wimlib/write.h \
include/wimlib/xml.h \
- include/wimlib/xpress.h
+ include/wimlib/xpress_constants.h
if WITH_NTFS_3G
libwim_la_SOURCES += src/ntfs-3g_apply.c \
neither of which is completely applicable to its use in the WIM format, and
the first of which contains multiple errors.
- There does not seem to be any official documentation for LZMS, so my comments
- and code in src/lzms-decompress.c may in fact be the best documentation
+ and code in src/lzms_decompress.c may in fact be the best documentation
available for this particular compression format.
The algorithms used by wimlib's compression and decompression codecs are
* input data is exhausted, the Huffman symbol is decoded as if the missing bits
* are all zeroes.
*
- * XXX: This is mostly duplicated in lzms_huffman_decode_symbol() in
- * lzms-decompress.c. */
+ * XXX: This is mostly duplicated in lzms_decode_huffman_symbol() in
+ * lzms_decompress.c. */
static inline u16
read_huffsym(struct input_bitstream *istream, const u16 decode_table[],
unsigned table_bits, unsigned max_codeword_len)
/*
- * lzms.h
+ * lzms_common.h
*
* Declarations shared between LZMS compression and decompression.
*/
-#ifndef _WIMLIB_LZMS_H
-#define _WIMLIB_LZMS_H
+#ifndef _LZMS_COMMON_H
+#define _LZMS_COMMON_H
#include "wimlib/compiler.h"
#include "wimlib/lzms_constants.h"
return prob;
}
-#endif /* _WIMLIB_LZMS_H */
+#endif /* _LZMS_COMMON_H */
/*
- * lzx.h
+ * lzx_common.h
*
* Declarations shared between LZX compression and decompression.
*/
-#ifndef _WIMLIB_LZX_H
-#define _WIMLIB_LZX_H
+#ifndef _LZX_COMMON_H
+#define _LZX_COMMON_H
#include "wimlib/assert.h"
#include "wimlib/bitops.h"
extern void
lzx_undo_e8_preprocessing(u8 *data, u32 size);
-#endif /* _WIMLIB_LZX_H */
+#endif /* _LZX_COMMON_H */
-#ifndef _WIMLIB_XPRESS_H
-#define _WIMLIB_XPRESS_H
+/*
+ * xpress_constants.h
+ *
+ * Constants for the XPRESS compression format.
+ */
-/* Constants for the XPRESS data compression format. See the comments in
- * xpress-decompress.c for more information about this format. */
+#ifndef _XPRESS_CONSTANTS_H
+#define _XPRESS_CONSTANTS_H
#define XPRESS_NUM_CHARS 256
#define XPRESS_NUM_SYMBOLS 512
#define XPRESS_MIN_MATCH_LEN 3
#define XPRESS_MAX_MATCH_LEN 65538
-#endif /* _WIMLIB_XPRESS_H */
+#endif /* _XPRESS_CONSTANTS_H */
#endif
#include "wimlib/endianness.h"
-#include "wimlib/lzms.h"
+#include "wimlib/lzms_common.h"
#include "wimlib/unaligned.h"
/* Table: offset slot => offset slot base value */
/*
- * lzms-compress.c
+ * lzms_compress.c
*
- * A compressor that produces output compatible with the LZMS compression format.
+ * A compressor for the LZMS compression format.
*/
/*
#include "wimlib/error.h"
#include "wimlib/lz_mf.h"
#include "wimlib/lz_repsearch.h"
-#include "wimlib/lzms.h"
+#include "wimlib/lzms_common.h"
#include "wimlib/unaligned.h"
#include "wimlib/util.h"
/*
- * lzms-decompress.c
+ * lzms_decompress.c
+ *
+ * A decompressor for the LZMS compression format.
*/
/*
#include "wimlib/decompressor_ops.h"
#include "wimlib/decompress_common.h"
#include "wimlib/error.h"
-#include "wimlib/lzms.h"
+#include "wimlib/lzms_common.h"
#include "wimlib/util.h"
/* The TABLEBITS values can be changed; they only affect decoding speed. */
#include "wimlib/bitops.h"
#include "wimlib/endianness.h"
-#include "wimlib/lzx.h"
+#include "wimlib/lzx_common.h"
#include "wimlib/unaligned.h"
#include "wimlib/util.h"
/*
- * lzx-compress.c
+ * lzx_compress.c
*
- * A compressor that produces output compatible with the LZX compression format.
+ * A compressor for the LZX compression format, as used in WIM files.
*/
/*
#include "wimlib/error.h"
#include "wimlib/lz_mf.h"
#include "wimlib/lz_repsearch.h"
-#include "wimlib/lzx.h"
+#include "wimlib/lzx_common.h"
#include "wimlib/util.h"
#include <string.h>
/*
- * lzx-decompress.c
+ * lzx_decompress.c
*
- * A very fast decompressor for LZX, as used in WIM files.
+ * A decompressor for the LZX compression format, as used in WIM files.
*/
/*
/*
* LZX is an LZ77 and Huffman-code based compression format that has many
* similarities to DEFLATE (the format used by zlib/gzip). The compression
- * ratio is as good or better than DEFLATE. See lzx-compress.c for a format
+ * ratio is as good or better than DEFLATE. See lzx_compress.c for a format
* overview, and see https://en.wikipedia.org/wiki/LZX_(algorithm) for a
* historical overview. Here I make some pragmatic notes.
*
#include "wimlib/decompressor_ops.h"
#include "wimlib/decompress_common.h"
#include "wimlib/error.h"
-#include "wimlib/lzx.h"
+#include "wimlib/lzx_common.h"
#include "wimlib/util.h"
#include <string.h>
block_type = bitstream_pop_bits(istream, 3);
/* Read the block size. This mirrors the behavior of
- * lzx_write_compressed_block() in lzx-compress.c; see that for more
+ * lzx_write_compressed_block() in lzx_compress.c; see that for more
* details. */
if (bitstream_pop_bits(istream, 1)) {
block_size = LZX_DEFAULT_BLOCK_SIZE;
/*
- * xpress-compress.c
+ * xpress_compress.c
*
* A compressor for the XPRESS compression format (Huffman variant).
*/
#include "wimlib/hc_matchfinder.h"
#include "wimlib/unaligned.h"
#include "wimlib/util.h"
-#include "wimlib/xpress.h"
+#include "wimlib/xpress_constants.h"
#if SUPPORT_NEAR_OPTIMAL_PARSING
/*
- * xpress-decompress.c
+ * xpress_decompress.c
*
- * A very fast decompressor for XPRESS (Huffman version).
+ * A decompressor for the XPRESS compression format (Huffman variant).
*/
/*
#include "wimlib/decompressor_ops.h"
#include "wimlib/decompress_common.h"
#include "wimlib/error.h"
-#include "wimlib/xpress.h"
+#include "wimlib/xpress_constants.h"
/* This value is chosen for fast decompression. */
#define XPRESS_TABLEBITS 12