summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlberto Panizzo <maramaopercheseimorto@gmail.com>2011-01-12 11:16:19 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-21 23:32:13 (GMT)
commit48a3c77338d725d4976fa792d822eb940ce5c296 (patch)
tree908ff25858dbed62cb546139463507d471b5e609 /include
parent7fdbd85bce033e2d0f74e5d326ab43906653cb81 (diff)
downloadlinux-48a3c77338d725d4976fa792d822eb940ce5c296.tar.xz
[media] V4L: soc_mediabus: add a method to obtain the number of samples per pixel
Add a function to calculate the number of samples on the media-bus, required to retrieve one pixel of a certain format. Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/soc_mediabus.h b/include/media/soc_mediabus.h
index 037cd7b..f5522b3 100644
--- a/include/media/soc_mediabus.h
+++ b/include/media/soc_mediabus.h
@@ -61,5 +61,6 @@ struct soc_mbus_pixelfmt {
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);
+int soc_mbus_samples_per_pixel(const struct soc_mbus_pixelfmt *mf);
#endif