]> git.ipfire.org Git - thirdparty/u-boot.git/blame - fs/erofs/decompress.h
fs/erofs: Introduce new features including ztailpacking, fragments and dedupe
[thirdparty/u-boot.git] / fs / erofs / decompress.h
CommitLineData
65cb7305
HJ
1/* SPDX-License-Identifier: GPL-2.0+ */
2#ifndef __EROFS_DECOMPRESS_H
3#define __EROFS_DECOMPRESS_H
4
5#include "internal.h"
6
7struct z_erofs_decompress_req {
8 char *in, *out;
9
10 /*
11 * initial decompressed bytes that need to be skipped
12 * when finally copying to output buffer
13 */
14 unsigned int decodedskip;
15 unsigned int inputsize, decodedlength;
16
3a21e92f
YZ
17 /* cut point of interlaced uncompressed data */
18 unsigned int interlaced_offset;
19
65cb7305
HJ
20 /* indicate the algorithm will be used for decompression */
21 unsigned int alg;
22 bool partial_decoding;
23};
24
25int z_erofs_decompress(struct z_erofs_decompress_req *rq);
26
27#endif