u-boot/fs/erofs/decompress.h
Huang Jianan 65cb73057b fs/erofs: add lz4 decompression support
Support EROFS lz4 compressed files.

Signed-off-by: Huang Jianan <jnhuang95@gmail.com>
2022-03-15 16:19:29 -04:00

24 lines
521 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;
/* 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