1 /* SPDX-License-Identifier: GPL-2.0+ */
2 #ifndef __EROFS_DECOMPRESS_H
3 #define __EROFS_DECOMPRESS_H
7 struct z_erofs_decompress_req {
11 * initial decompressed bytes that need to be skipped
12 * when finally copying to output buffer
14 unsigned int decodedskip;
15 unsigned int inputsize, decodedlength;
17 /* cut point of interlaced uncompressed data */
18 unsigned int interlaced_offset;
20 /* indicate the algorithm will be used for decompression */
22 bool partial_decoding;
25 int z_erofs_decompress(struct z_erofs_decompress_req *rq);