mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
aaa2975f2b
MicroLZMA is a yet another header format variant where the first byte of a raw LZMA stream (without the end of stream marker) has been replaced with a bitwise-negation of the lc/lp/pb properties byte. MicroLZMA was created to be used in EROFS but can be used by other things too where wasting minimal amount of space for headers is important. This is implemented using most of the LZMA2 code as is so the amount of new code is small. The API has a few extra features compared to the XZ decoder. On the other hand, the API lacks XZ_BUF_ERROR support which is important to take into account when using this API. MicroLZMA doesn't support BCJ filters. In theory they could be added later as there are many unused/reserved values for the first byte of the compressed stream but in practice it is somewhat unlikely to happen due to a few implementation reasons. Link: https://lore.kernel.org/r/20211010213145.17462-5-xiang@kernel.org Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
34 lines
855 B
C
34 lines
855 B
C
/*
|
|
* XZ decoder module information
|
|
*
|
|
* Author: Lasse Collin <lasse.collin@tukaani.org>
|
|
*
|
|
* This file has been put into the public domain.
|
|
* You can do whatever you want with this file.
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/xz.h>
|
|
|
|
EXPORT_SYMBOL(xz_dec_init);
|
|
EXPORT_SYMBOL(xz_dec_reset);
|
|
EXPORT_SYMBOL(xz_dec_run);
|
|
EXPORT_SYMBOL(xz_dec_end);
|
|
|
|
#ifdef CONFIG_XZ_DEC_MICROLZMA
|
|
EXPORT_SYMBOL(xz_dec_microlzma_alloc);
|
|
EXPORT_SYMBOL(xz_dec_microlzma_reset);
|
|
EXPORT_SYMBOL(xz_dec_microlzma_run);
|
|
EXPORT_SYMBOL(xz_dec_microlzma_end);
|
|
#endif
|
|
|
|
MODULE_DESCRIPTION("XZ decompressor");
|
|
MODULE_VERSION("1.1");
|
|
MODULE_AUTHOR("Lasse Collin <lasse.collin@tukaani.org> and Igor Pavlov");
|
|
|
|
/*
|
|
* This code is in the public domain, but in Linux it's simplest to just
|
|
* say it's GPL and consider the authors as the copyright holders.
|
|
*/
|
|
MODULE_LICENSE("GPL");
|