]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00160875-1 ipuv3 dev: low performance if enable rotation
authorJason Chen <b02280@freescale.com>
Thu, 27 Oct 2011 01:32:41 +0000 (09:32 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:55 +0000 (14:09 +0200)
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>
include/linux/ipu.h

index 17638ab151207aa3f11abf53bb86d6140b35edab..051624854558b9ec3f21c2b4c8507186caecd45c 100644 (file)
@@ -138,6 +138,12 @@ typedef enum {
 /*! @} */
 
 /* IPU device */
+typedef enum {
+       RGB_CS,
+       YUV_CS,
+       NULL_CS
+} cs_t;
+
 struct ipu_pos {
        u32 x;
        u32 y;
@@ -246,4 +252,14 @@ enum {
 #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