• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/

Lines Matching refs:fmtd

932 		void *priv, struct v4l2_fmtdesc *fmtd)
934 switch (fmtd->index) {
936 fmtd->pixelformat = V4L2_PIX_FMT_RGB565;
937 strcpy(fmtd->description, "r5g6b5");
940 fmtd->pixelformat = V4L2_PIX_FMT_RGB565X;
941 strcpy(fmtd->description, "r5g6b5BE");
944 fmtd->pixelformat = V4L2_PIX_FMT_UYVY;
945 strcpy(fmtd->description, "yuv4:2:2");
948 fmtd->pixelformat = V4L2_PIX_FMT_SBGGR8;
949 strcpy(fmtd->description, "Raw bayer");
952 fmtd->pixelformat = V4L2_PIX_FMT_YUYV;
953 strcpy(fmtd->description, "yuv4:2:2");
1002 void *priv, struct v4l2_format *fmtd)
1005 switch (fmtd->fmt.pix.pixelformat) {
1016 if (fmtd->fmt.pix.width > stk_sizes[i].w)
1020 || (abs(fmtd->fmt.pix.width - stk_sizes[i-1].w)
1021 < abs(fmtd->fmt.pix.width - stk_sizes[i].w))) {
1022 fmtd->fmt.pix.height = stk_sizes[i-1].h;
1023 fmtd->fmt.pix.width = stk_sizes[i-1].w;
1024 fmtd->fmt.pix.priv = i - 1;
1026 fmtd->fmt.pix.height = stk_sizes[i].h;
1027 fmtd->fmt.pix.width = stk_sizes[i].w;
1028 fmtd->fmt.pix.priv = i;
1031 fmtd->fmt.pix.field = V4L2_FIELD_NONE;
1032 fmtd->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB;
1033 if (fmtd->fmt.pix.pixelformat == V4L2_PIX_FMT_SBGGR8)
1034 fmtd->fmt.pix.bytesperline = fmtd->fmt.pix.width;
1036 fmtd->fmt.pix.bytesperline = 2 * fmtd->fmt.pix.width;
1037 fmtd->fmt.pix.sizeimage = fmtd->fmt.pix.bytesperline
1038 * fmtd->fmt.pix.height;
1079 void *priv, struct v4l2_format *fmtd)
1092 ret = stk_vidioc_try_fmt_vid_cap(filp, priv, fmtd);
1097 dev->vsettings.palette = fmtd->fmt.pix.pixelformat;
1099 dev->frame_size = fmtd->fmt.pix.sizeimage;
1100 dev->vsettings.mode = stk_sizes[fmtd->fmt.pix.priv].m;