diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-12-03 00:16:50 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-12-03 00:16:50 +0100 |
commit | 53e3741023874f30f6fb4eaa28e89ee9bd2ce705 (patch) | |
tree | 119adb7808d378a614764de756738abf62692b51 | |
parent | 975e8df380c2dd42dce644a056c326784c204f23 (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>
-rw-r--r-- | yavta.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 { |