[media] vivid: add support for single buffer planar formats

Make vivid aware of the difference of planes and buffers. Note that
this does not yet add support for hor/vert downsampled formats.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
このコミットが含まれているのは:
Hans Verkuil
2015-03-09 12:03:52 -03:00
committed by Mauro Carvalho Chehab
コミット ddcaee9dd4
5個のファイルの変更105行の追加79行の削除

ファイルの表示

@@ -234,7 +234,7 @@ const struct vivid_fmt *vivid_get_format(struct vivid_dev *dev, u32 pixelformat)
for (k = 0; k < ARRAY_SIZE(vivid_formats); k++) {
fmt = &vivid_formats[k];
if (fmt->fourcc == pixelformat)
if (fmt->planes == 1 || dev->multiplanar)
if (fmt->buffers == 1 || dev->multiplanar)
return fmt;
}