summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
authorMartin Hostettler <martin@neutronstar.dyndns.org>2011-01-21 01:14:47 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-01-23 01:49:55 +0100
commit71ffd6bf71632a034081e245152912570689f954 (patch)
tree15e053047a2617be089bf2a6050745b16469e998 /yavta.c
parentc494ceac5bccb80fb7bca7a81d3c719744a55371 (diff)
Add support for GREY/Y8 format
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/yavta.c b/yavta.c
index a1e32f6..e25013b 100644
--- a/yavta.c
+++ b/yavta.c
@@ -1046,6 +1046,8 @@ int main(int argc, char *argv[])
pixelformat = V4L2_PIX_FMT_UYVY;
else if (strcasecmp(optarg, "Y16") == 0)
pixelformat = V4L2_PIX_FMT_Y16;
+ else if (strcasecmp(optarg, "Y8") == 0)
+ pixelformat = V4L2_PIX_FMT_GREY;
else if (strcasecmp(optarg, "SGRBG10_DPMC8") == 0)
pixelformat = V4L2_PIX_FMT_SGRBG10DPCM8;
else if (strcasecmp(optarg, "SGRBG10") == 0)