Lines Matching refs:fourcc

69 		.fourcc		= V4L2_PIX_FMT_JPEG,
77 .fourcc = V4L2_PIX_FMT_RGB24,
88 .fourcc = V4L2_PIX_FMT_ARGB32,
99 .fourcc = V4L2_PIX_FMT_NV12,
110 .fourcc = V4L2_PIX_FMT_YUYV,
121 .fourcc = V4L2_PIX_FMT_YUV24,
132 .fourcc = V4L2_PIX_FMT_GREY,
381 f->pixelformat = mxc_formats[i].fourcc; in enum_fmt()
394 if (fmt->fourcc == pixelformat) in mxc_jpeg_find_format()
400 static enum mxc_jpeg_image_format mxc_jpeg_fourcc_to_imgfmt(u32 fourcc) in mxc_jpeg_fourcc_to_imgfmt() argument
402 switch (fourcc) { in mxc_jpeg_fourcc_to_imgfmt()
664 u32 fourcc, in mxc_jpeg_fixup_sof() argument
675 switch (fourcc) { in mxc_jpeg_fixup_sof()
706 u32 fourcc) in mxc_jpeg_fixup_sos() argument
711 switch (fourcc) { in mxc_jpeg_fixup_sos()
743 u32 fourcc, in mxc_jpeg_setup_cfg_stream() argument
754 if (fourcc == V4L2_PIX_FMT_RGB24 || in mxc_jpeg_setup_cfg_stream()
755 fourcc == V4L2_PIX_FMT_ARGB32) { in mxc_jpeg_setup_cfg_stream()
769 offset += mxc_jpeg_fixup_sof(sof, fourcc, w, h); in mxc_jpeg_setup_cfg_stream()
780 offset += mxc_jpeg_fixup_sos(sos, fourcc); in mxc_jpeg_setup_cfg_stream()
817 img_fmt = mxc_jpeg_fourcc_to_imgfmt(q_data_cap->fmt->fourcc); in mxc_jpeg_config_dec_desc()
877 q_data->fmt->fourcc, in mxc_jpeg_config_enc_desc()
901 img_fmt = mxc_jpeg_fourcc_to_imgfmt(q_data->fmt->fourcc); in mxc_jpeg_config_enc_desc()
1149 u32 fourcc = 0; in mxc_jpeg_get_image_format() local
1154 fourcc = mxc_formats[i].fourcc; in mxc_jpeg_get_image_format()
1157 if (fourcc == 0) { in mxc_jpeg_get_image_format()
1161 return fourcc; in mxc_jpeg_get_image_format()
1168 if (fourcc == V4L2_PIX_FMT_YUV24 || fourcc == V4L2_PIX_FMT_RGB24) { in mxc_jpeg_get_image_format()
1170 fourcc = V4L2_PIX_FMT_RGB24; in mxc_jpeg_get_image_format()
1172 fourcc = V4L2_PIX_FMT_YUV24; in mxc_jpeg_get_image_format()
1175 return fourcc; in mxc_jpeg_get_image_format()
1182 if (q->fmt->fourcc == V4L2_PIX_FMT_JPEG) { in mxc_jpeg_bytesperline()
1186 } else if (q->fmt->fourcc == V4L2_PIX_FMT_NV12) { in mxc_jpeg_bytesperline()
1204 if (q->fmt->fourcc == V4L2_PIX_FMT_JPEG) { in mxc_jpeg_sizeimage()
1218 if (q->fmt->fourcc == V4L2_PIX_FMT_NV12) in mxc_jpeg_sizeimage()
1230 u32 fourcc; in mxc_jpeg_parse() local
1290 fourcc = mxc_jpeg_get_image_format(dev, &header); in mxc_jpeg_parse()
1291 if (fourcc == 0) in mxc_jpeg_parse()
1304 q_data_cap->fmt = mxc_jpeg_find_format(ctx, fourcc); in mxc_jpeg_parse()
1323 (fourcc & 0xff), in mxc_jpeg_parse()
1324 (fourcc >> 8) & 0xff, in mxc_jpeg_parse()
1325 (fourcc >> 16) & 0xff, in mxc_jpeg_parse()
1326 (fourcc >> 24) & 0xff); in mxc_jpeg_parse()
1583 pix_mp->pixelformat = fmt->fourcc; in mxc_jpeg_try_fmt()
1645 u32 fourcc = f->fmt.pix_mp.pixelformat; in mxc_jpeg_try_fmt_vid_cap() local
1655 fmt = mxc_jpeg_find_format(ctx, fourcc); in mxc_jpeg_try_fmt_vid_cap()
1658 (fourcc & 0xff), in mxc_jpeg_try_fmt_vid_cap()
1659 (fourcc >> 8) & 0xff, in mxc_jpeg_try_fmt_vid_cap()
1660 (fourcc >> 16) & 0xff, in mxc_jpeg_try_fmt_vid_cap()
1661 (fourcc >> 24) & 0xff); in mxc_jpeg_try_fmt_vid_cap()
1676 u32 fourcc = f->fmt.pix_mp.pixelformat; in mxc_jpeg_try_fmt_vid_out() local
1686 fmt = mxc_jpeg_find_format(ctx, fourcc); in mxc_jpeg_try_fmt_vid_out()
1689 (fourcc & 0xff), in mxc_jpeg_try_fmt_vid_out()
1690 (fourcc >> 8) & 0xff, in mxc_jpeg_try_fmt_vid_out()
1691 (fourcc >> 16) & 0xff, in mxc_jpeg_try_fmt_vid_out()
1692 (fourcc >> 24) & 0xff); in mxc_jpeg_try_fmt_vid_out()
1803 pix_mp->pixelformat = q_data->fmt->fourcc; in mxc_jpeg_g_fmt_vid()