diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-21 08:03:25 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-15 16:10:20 -0300 |
commit | 8929c96378a162263c8e3e547975e283dfd17e7f (patch) | |
tree | e5fad4df40a1e6848b370e34e9d072058c44ccde /include | |
parent | 4e0e620ce713893b2883522a16a71b5589e8e3db (diff) | |
download | kernel_goldelico_gta04-8929c96378a162263c8e3e547975e283dfd17e7f.zip kernel_goldelico_gta04-8929c96378a162263c8e3e547975e283dfd17e7f.tar.gz kernel_goldelico_gta04-8929c96378a162263c8e3e547975e283dfd17e7f.tar.bz2 |
[media] soc-camera: Add soc_mbus_image_size
The function returns the minimum size of an image for a given number of
bytes per line (as per the V4L2 specification), width and format.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/soc_mediabus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/soc_mediabus.h b/include/media/soc_mediabus.h index e18eed4..0dc6f46 100644 --- a/include/media/soc_mediabus.h +++ b/include/media/soc_mediabus.h @@ -99,6 +99,8 @@ const struct soc_mbus_pixelfmt *soc_mbus_find_fmtdesc( const struct soc_mbus_pixelfmt *soc_mbus_get_fmtdesc( enum v4l2_mbus_pixelcode code); s32 soc_mbus_bytes_per_line(u32 width, const struct soc_mbus_pixelfmt *mf); +s32 soc_mbus_image_size(const struct soc_mbus_pixelfmt *mf, + u32 bytes_per_line, u32 height); int soc_mbus_samples_per_pixel(const struct soc_mbus_pixelfmt *mf, unsigned int *numerator, unsigned int *denominator); unsigned int soc_mbus_config_compatible(const struct v4l2_mbus_config *cfg, |