rk3368 lcdc: overlay mode depend on screen color mode
[firefly-linux-kernel-4.4.55.git] / drivers / video / rockchip / bmp_helper.h
index 0df19380d065554de6b38e68219357a759dd115e..fd1ad43f6d71d4ddd2c5971dc503efd67601b29a 100644 (file)
@@ -41,8 +41,14 @@ typedef struct bmpinfoheader {
        unsigned int colorsimportant;
 }__attribute__((packed)) BITMAPINFOHEADER;
 
+#define BMP_RLE8_ESCAPE                0
+#define BMP_RLE8_EOL           0
+#define BMP_RLE8_EOBMP         1
+#define BMP_RLE8_DELTA         2
+
 #define range(x, min, max) ((x) < (min)) ? (min) : (((x) > (max)) ? (max) : (x))
 
-int datatobmp(void *__iomem *vaddr,int width, int height, u8 data_format,
-             void *data, void (*fn)(void *, void *, int));
+int bmpencoder(void *__iomem *vaddr,int width, int height, u8 data_format,
+              void *data, void (*fn)(void *, void *, int));
+int bmpdecoder(void *bmp_addr, void *dst, int *width, int *height, int *bits);
 #endif /* _BMP_HELPER_H_ */