1 /* 2 * (C) Copyright 2008-2017 Fuzhou Rockchip Electronics Co., Ltd 3 * Author: Mark Yao <mark.yao@rock-chips.com> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8 #ifndef _BMP_HELPER_H_ 9 #define _BMP_HELPER_H_ 10 11 #define BMP_RLE8_ESCAPE 0 12 #define BMP_RLE8_EOL 0 13 #define BMP_RLE8_EOBMP 1 14 #define BMP_RLE8_DELTA 2 15 16 #define range(x, min, max) ((x) < (min)) ? (min) : (((x) > (max)) ? (max) : (x)) 17 18 int bmpdecoder(void *bmp_addr, void *dst, int dst_bpp); 19 #endif /* _BMP_HELPER_H_ */ 20