Lines Matching refs:fmtd
2510 struct v4l2_fmtdesc fmtd;
2512 if (copy_from_user(&fmtd, arg, sizeof(fmtd)))
2515 if (fmtd.type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
2518 if (fmtd.index == 0) {
2519 strcpy(fmtd.description, "bayer rgb");
2520 fmtd.pixelformat = V4L2_PIX_FMT_SBGGR8;
2521 } else if (fmtd.index == 1) {
2526 strcpy(fmtd.description, "compressed");
2527 fmtd.pixelformat = V4L2_PIX_FMT_SN9C10X;
2531 strcpy(fmtd.description, "JPEG");
2532 fmtd.pixelformat = V4L2_PIX_FMT_JPEG;
2535 fmtd.flags = V4L2_FMT_FLAG_COMPRESSED;
2539 fmtd.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
2540 memset(&fmtd.reserved, 0, sizeof(fmtd.reserved));
2542 if (copy_to_user(arg, &fmtd, sizeof(fmtd)))