u-boot/fs/erofs/decompress.h
Yifan Zhao 3a21e92fc2 fs/erofs: Introduce new features including ztailpacking, fragments and dedupe
This patch updates erofs driver code to catch up with the latest code of
erofs_utils (commit e4939f9eaa177e05d697ace85d8dc283e25dc2ed).

LZMA will be supported in the separate patch later.

Signed-off-by: Yifan Zhao <zhaoyifan@sjtu.edu.cn>
Reviewed-by: Huang Jianan <jnhuang95@gmail.com>
2023-07-17 15:38:11 -04:00

27 lines
604 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
#ifndef __EROFS_DECOMPRESS_H
#define __EROFS_DECOMPRESS_H
#include "internal.h"
struct z_erofs_decompress_req {
char *in, *out;
/*
* initial decompressed bytes that need to be skipped
* when finally copying to output buffer
*/
unsigned int decodedskip;
unsigned int inputsize, decodedlength;
/* cut point of interlaced uncompressed data */
unsigned int interlaced_offset;
/* indicate the algorithm will be used for decompression */
unsigned int alg;
bool partial_decoding;
};
int z_erofs_decompress(struct z_erofs_decompress_req *rq);
#endif