summaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorSteve Longerbeam <slongerbeam@gmail.com>2014-06-25 18:05:37 -0700
committerPhilipp Zabel <p.zabel@pengutronix.de>2014-09-02 14:55:46 +0200
commitf835f386a119c3f78f5acb93e86a4f025211739a (patch)
tree25b664ab16429566cf5367a3c0de209157fabef9 /include/video
parentae0e9708b30b3eebe5a58e4d055eb49a73d641dd (diff)
downloadlinux-stable-f835f386a119c3f78f5acb93e86a4f025211739a.tar.gz
linux-stable-f835f386a119c3f78f5acb93e86a4f025211739a.tar.bz2
linux-stable-f835f386a119c3f78f5acb93e86a4f025211739a.zip
gpu: ipu-v3: Add rotation mode conversion utilities
Add two functions: - ipu_degrees_to_rot_mode(): converts a degrees, hflip, and vflip setting to an IPU rotation mode. - ipu_rot_mode_to_degrees(): converts an IPU rotation mode with given hflip and vflip settings to degrees. Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/imx-ipu-v3.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/video/imx-ipu-v3.h b/include/video/imx-ipu-v3.h
index 7c97ccaf39f6..3562698528bd 100644
--- a/include/video/imx-ipu-v3.h
+++ b/include/video/imx-ipu-v3.h
@@ -301,6 +301,10 @@ int ipu_smfc_set_watermark(struct ipu_smfc *smfc, u32 set_level, u32 clr_level);
enum ipu_color_space ipu_drm_fourcc_to_colorspace(u32 drm_fourcc);
enum ipu_color_space ipu_pixelformat_to_colorspace(u32 pixelformat);
enum ipu_color_space ipu_mbus_code_to_colorspace(u32 mbus_code);
+int ipu_degrees_to_rot_mode(enum ipu_rotate_mode *mode, int degrees,
+ bool hflip, bool vflip);
+int ipu_rot_mode_to_degrees(int *degrees, enum ipu_rotate_mode mode,
+ bool hflip, bool vflip);
struct ipu_client_platformdata {
int csi;