summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorRobert Morell <rmorell@nvidia.com>2011-03-17 17:56:49 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:48:13 -0800
commitd69bf1aa9ddf62411b4e964f69d9f7a4ffb91816 (patch)
treefd8782722c29bd42d90e7d6f87d463d1061862ab /include/video
parent627c235be502ea07cf66fac921af372e15164be9 (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> Rebase-Id: R848e901645aa49776d4dc41fa4210b6b594a8d84
Diffstat (limited to 'include/video')
-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;