[media] vivid-tpg: add helper functions for single buffer planar formats
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 7 Mar 2015 16:39:01 +0000 (13:39 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 23:37:26 +0000 (20:37 -0300)
commit4db22041892946348f98672a5524bdf2f18f66f5
tree67ede93888cb269852bda43537b1dd1b51c6b304
parent06d1f0c2eaaebe04fa3ea780ca37dcd6e05ade16
[media] vivid-tpg: add helper functions for single buffer planar formats

Add helpers functions to determine the line widths and image sizes
for planar formats that are stores in a single buffer.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-tpg.c
drivers/media/platform/vivid/vivid-tpg.h