xref: /OK3568_Linux_fs/u-boot/drivers/video/drm/bmp_helper.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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