summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-12-03 00:16:50 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-12-03 00:16:50 +0100
commit53e3741023874f30f6fb4eaa28e89ee9bd2ce705 (patch)
tree119adb7808d378a614764de756738abf62692b51 /yavta.c
parent975e8df380c2dd42dce644a056c326784c204f23 (diff)
Add support for the V4L2_PIX_FMT_SGRBG12 format
The format isn't available in the mainline kernel yet, so guard it with conditional compilation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/yavta.c b/yavta.c
index 17a4af2..3db1e5b 100644
--- a/yavta.c
+++ b/yavta.c
@@ -1053,6 +1053,10 @@ int main(int argc, char *argv[])
pixelformat = V4L2_PIX_FMT_SGRBG10DPCM8;
else if (strcasecmp(optarg, "SGRBG10") == 0)
pixelformat = V4L2_PIX_FMT_SGRBG10;
+#ifdef V4L2_PIX_FMT_SGRBG12
+ else if (strcasecmp(optarg, "SGRBG12") == 0)
+ pixelformat = V4L2_PIX_FMT_SGRBG12;
+#endif
else if (strcasecmp(optarg, "DV") == 0)
pixelformat = V4L2_PIX_FMT_DV;
else {