From 71ffd6bf71632a034081e245152912570689f954 Mon Sep 17 00:00:00 2001 From: Martin Hostettler Date: Fri, 21 Jan 2011 01:14:47 +0100 Subject: Add support for GREY/Y8 format --- yavta.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yavta.c') 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) -- cgit v1.2.3