1. no dma alloc for rot buf every time which will cost time.
2. fix split mode condition.
3. export some functions.
This patch for common head file.
Signed-off-by: Jason Chen <b02280@freescale.com>
/*! @} */
/* IPU device */
+typedef enum {
+ RGB_CS,
+ YUV_CS,
+ NULL_CS
+} cs_t;
+
struct ipu_pos {
u32 x;
u32 y;
#define IPU_ALLOC _IOWR('I', 0x3, int)
#define IPU_FREE _IOW('I', 0x4, int)
+/* export functions */
+#ifdef __KERNEL__
+unsigned int fmt_to_bpp(unsigned int pixelformat);
+cs_t colorspaceofpixel(int fmt);
+int need_csc(int ifmt, int ofmt);
+
+int ipu_queue_task(struct ipu_task *task);
+int ipu_check_task(struct ipu_task *task);
+#endif
+
#endif