Lines Matching refs:sof
684 static int mxc_jpeg_fixup_sof(struct mxc_jpeg_sof *sof, in mxc_jpeg_fixup_sof() argument
690 sof->precision = 8; /* TODO allow 8/12 bit precision*/ in mxc_jpeg_fixup_sof()
691 sof->height = h; in mxc_jpeg_fixup_sof()
692 _bswap16(&sof->height); in mxc_jpeg_fixup_sof()
693 sof->width = w; in mxc_jpeg_fixup_sof()
694 _bswap16(&sof->width); in mxc_jpeg_fixup_sof()
698 sof->components_no = 3; in mxc_jpeg_fixup_sof()
699 sof->comp[0].v = 0x2; in mxc_jpeg_fixup_sof()
700 sof->comp[0].h = 0x2; in mxc_jpeg_fixup_sof()
703 sof->components_no = 3; in mxc_jpeg_fixup_sof()
704 sof->comp[0].v = 0x1; in mxc_jpeg_fixup_sof()
705 sof->comp[0].h = 0x2; in mxc_jpeg_fixup_sof()
710 sof->components_no = 3; in mxc_jpeg_fixup_sof()
713 sof->components_no = 4; in mxc_jpeg_fixup_sof()
716 sof->components_no = 1; in mxc_jpeg_fixup_sof()
719 sof_length = 8 + 3 * sof->components_no; in mxc_jpeg_fixup_sof()
720 sof->length = sof_length; in mxc_jpeg_fixup_sof()
721 _bswap16(&sof->length); in mxc_jpeg_fixup_sof()
775 struct mxc_jpeg_sof *sof; in mxc_jpeg_setup_cfg_stream() local
795 sof = (struct mxc_jpeg_sof *)(cfg + offset); in mxc_jpeg_setup_cfg_stream()
796 offset += mxc_jpeg_fixup_sof(sof, fourcc, w, h); in mxc_jpeg_setup_cfg_stream()
1252 struct mxc_jpeg_sof *sof, in mxc_jpeg_valid_comp_id() argument
1262 for (i = 0; i < sof->components_no; i++) in mxc_jpeg_valid_comp_id()
1263 if (sof->comp[i].id > MXC_JPEG_MAX_COMPONENTS) { in mxc_jpeg_valid_comp_id()
1266 i, sof->comp[i].id); in mxc_jpeg_valid_comp_id()
1270 for (i = 0; i < sof->components_no; i++) { in mxc_jpeg_valid_comp_id()
1273 sof->comp[i].id = i + 1; in mxc_jpeg_valid_comp_id()
1420 psof = (struct mxc_jpeg_sof *)header.sof.start; in mxc_jpeg_parse()