media: v4l2-rect.h: add position and equal helpers
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 28 Jun 2018 16:20:37 +0000 (12:20 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Sep 2018 17:25:41 +0000 (13:25 -0400)
commite62fdbb24c342f78e431e05925097165cc0e05e9
treeef0d2e85a16d142616e855d0c5d36f7451379e9c
parent8a7441baccd4ce85e34a0a500824900d2b58a4b0
media: v4l2-rect.h: add position and equal helpers

Add two helper functions to check if two rectangles have the same
position (top/left) and if two rectangles equals (same size and
same position).

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
include/media/v4l2-rect.h