summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobert Morell <rmorell@nvidia.com>2011-03-17 17:56:49 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-08-22 16:51:57 -0700
commit6fc41689e062f630e7e369e7114de1704a371492 (patch)
tree540972c505789c0d2303cac0c71dd065d909e4e2 /include
parent41d4792d6190d73fdce2a0ef7d6de34094a94b3e (diff)
video: tegra: Allow fractional input rects
This change makes the input rect for Tegra windows be a 20.12 fixed-point number instead of an integer. This allows software to specify sub-pixel precision. bug 818525 Original-Change-Id: I130f63b68159ed896d1113ea537307997875ca40 Signed-off-by: Robert Morell <rmorell@nvidia.com> Reviewed-on: http://git-master/r/40526 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/video/tegra_dc_ext.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/video/tegra_dc_ext.h b/include/video/tegra_dc_ext.h
index 6f43ee689b26..2e89a12add3e 100644
--- a/include/video/tegra_dc_ext.h
+++ b/include/video/tegra_dc_ext.h
@@ -65,6 +65,10 @@ struct tegra_dc_ext_flip_windowattr {
__u32 stride;
__u32 stride_uv;
__u32 pixformat;
+ /*
+ * x, y, w, h are fixed-point: 20 bits of integer (MSB) and 12 bits of
+ * fractional (LSB)
+ */
__u32 x;
__u32 y;
__u32 w;